Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2019 13:14:53 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344252 - head/sys/conf
Message-ID:  <201902181314.x1IDErbM091674@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Mon Feb 18 13:14:53 2019
New Revision: 344252
URL: https://svnweb.freebsd.org/changeset/base/344252

Log:
  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.
  
  Submitted by:	"J.R.T. Clarke" <jrtc4@cam.ac.uk>
  Differential Revision:	https://reviews.freebsd.org/D18429

Modified:
  head/sys/conf/ldscript.riscv

Modified: head/sys/conf/ldscript.riscv
==============================================================================
--- head/sys/conf/ldscript.riscv	Mon Feb 18 10:51:27 2019	(r344251)
+++ head/sys/conf/ldscript.riscv	Mon Feb 18 13:14:53 2019	(r344252)
@@ -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?201902181314.x1IDErbM091674>