Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2019 15:13:49 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348614 - stable/12/sys/conf
Message-ID:  <201906041513.x54FDnaA027551@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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       :



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906041513.x54FDnaA027551>