Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/ldscript.riscv
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | SECTIONS | ||||
.dynamic : { *(.dynamic) } | .dynamic : { *(.dynamic) } | ||||
/* We want the small data sections together, so single-instruction offsets | /* We want the small data sections together, so single-instruction offsets | ||||
can access them all, and initialized data all before uninitialized, so | can access them all, and initialized data all before uninitialized, so | ||||
we can shorten the on-disk segment size. */ | we can shorten the on-disk segment size. */ | ||||
. = ALIGN(8); | . = ALIGN(8); | ||||
.sdata : { *(.sdata) } | .sdata : { *(.sdata) } | ||||
_edata = .; | _edata = .; | ||||
PROVIDE (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 = .; | __bss_start = .; | ||||
.sbss : { *(.sbss) *(.scommon) } | .sbss : { *(.sbss) *(.scommon) } | ||||
.bss : | .bss : | ||||
{ | { | ||||
*(.dynbss) | *(.dynbss) | ||||
*(.bss) | *(.bss) | ||||
*(COMMON) | *(COMMON) | ||||
} | } | ||||
Show All 38 Lines |