mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
This commit is contained in:
parent
61250f78c4
commit
19a227ee35
1 changed files with 4 additions and 0 deletions
|
|
@ -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 :
|
||||
|
|
|
|||
Loading…
Reference in a new issue