From e17789bf3d50a9f8f21e975dd6b079ec078f5ab4 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Mon, 12 Dec 2011 18:52:18 +0000 Subject: [PATCH] 2011-12-12 Gedare Bloom PR bsps/1988 * shared/startup/linkcmds: Relocate .init and .fini sections closer to .text. --- c/src/lib/libbsp/sparc64/ChangeLog | 6 ++++++ c/src/lib/libbsp/sparc64/shared/startup/linkcmds | 10 ++++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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))