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