svn commit: r348614 - stable/12/sys/conf

Ruslan Bukin br at FreeBSD.org
Tue Jun 4 15:13:49 UTC 2019


Author: br
Date: Tue Jun  4 15:13:48 2019
New Revision: 348614
URL: https://svnweb.freebsd.org/changeset/base/348614

Log:
  MFC r344252:
  
  Avoid orphan sections between __bss_start and .(s)bss.
  
  Ensure __bss_start is associated with the next section
  in case orphan sections are placed directly after .sdata,
  as has been seen to happen with LLD.
  
  Sponsored by:	DARPA, AFRL

Modified:
  stable/12/sys/conf/ldscript.riscv

Modified: stable/12/sys/conf/ldscript.riscv
==============================================================================
--- stable/12/sys/conf/ldscript.riscv	Tue Jun  4 15:11:14 2019	(r348613)
+++ stable/12/sys/conf/ldscript.riscv	Tue Jun  4 15:13:48 2019	(r348614)
@@ -87,6 +87,10 @@ SECTIONS
   .sdata     : { *(.sdata) }
   _edata  =  .;
   PROVIDE (edata = .);
+  /* Ensure __bss_start is associated with the next section in case orphan
+     sections are placed directly after .sdata, as has been seen to happen with
+     LLD.  */
+  . = .;
   __bss_start = .;
   .sbss      : { *(.sbss) *(.scommon) }
   .bss       :


More information about the svn-src-stable mailing list