diff --git a/c/src/lib/libbsp/sparc64/ChangeLog b/c/src/lib/libbsp/sparc64/ChangeLog index f469cc87ee..69dc3d6607 100644 --- a/c/src/lib/libbsp/sparc64/ChangeLog +++ b/c/src/lib/libbsp/sparc64/ChangeLog @@ -1,3 +1,9 @@ +2011-12-12 Gedare Bloom + + PR bsps/1988 + * shared/startup/linkcmds: Relocate .init and .fini sections closer to + .text. + 2011-11-06 Gedare Bloom * shared/console/conscfg.c: Whitespace and style fixes. diff --git a/c/src/lib/libbsp/sparc64/shared/startup/linkcmds b/c/src/lib/libbsp/sparc64/shared/startup/linkcmds index 0cf83ff30f..0a05be1e2e 100644 --- a/c/src/lib/libbsp/sparc64/shared/startup/linkcmds +++ b/c/src/lib/libbsp/sparc64/shared/startup/linkcmds @@ -94,6 +94,9 @@ SECTIONS *(BOOTSTRAP); *(.text*) + KEEP (*(.init)) + KEEP (*(.fini)) + /* * Special FreeBSD sysctl sections. */ @@ -142,17 +145,12 @@ SECTIONS *(.gnu.linkonce.r*) _erodata = ALIGN( 0x10 ) ; - etext = ALIGN(2); - _etext = . ; - - *(.init) - PROVIDE (_fini = .); - KEEP (*(.fini)) *(.lit) *(.shdata) . = ALIGN (16); _endtext = . ; + _etext = . ; } > ram .data : AT (ADDR (.text) + SIZEOF (.text))