Author: mhorne
Date: Sun Jun 28 17:45:13 2020
New Revision: 362729
URL: https://svnweb.freebsd.org/changeset/base/362729

Log:
  MFC r361402:
  
  Simplify the RISC-V kernel linker invocation

Modified:
  stable/12/sys/conf/Makefile.riscv
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/conf/Makefile.riscv
==============================================================================
--- stable/12/sys/conf/Makefile.riscv   Sun Jun 28 17:43:48 2020        
(r362728)
+++ stable/12/sys/conf/Makefile.riscv   Sun Jun 28 17:45:13 2020        
(r362729)
@@ -35,12 +35,7 @@ INCLUDES+= -I$S/contrib/libfdt
 # We set this value using --defsym rather than hardcoding it in ldscript.riscv
 # so that different kernel configs can override the load address.
 KERNEL_LMA?=   0x80200000
-
-SYSTEM_LD= @${LD} -N -m ${LD_EMULATION} -Bdynamic -T ${LDSCRIPT} ${_LDFLAGS} \
-       --no-warn-mismatch --warn-common --export-dynamic \
-       --defsym='kernel_lma=${KERNEL_LMA}' \
-       --dynamic-linker /red/herring \
-       -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
+LDFLAGS+= --defsym='kernel_lma=${KERNEL_LMA}'
 
 .if !empty(DDB_ENABLED)
 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to