diff options
author | Gedare Bloom <gedare@rtems.org> | 2011-12-12 18:52:18 +0000 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2011-12-12 18:52:18 +0000 |
commit | e17789bf3d50a9f8f21e975dd6b079ec078f5ab4 (patch) | |
tree | 3a2b9a1c919ef2586b4dfb2fc33165bf041f316e | |
parent | b1345b24942f10ce3f3a4363ab289cf692a5c450 (diff) |
2011-12-12 Gedare Bloom <gedare@rtems.org>
PR bsps/1988
* shared/startup/linkcmds: Relocate .init and .fini sections closer to
.text.
-rw-r--r-- | c/src/lib/libbsp/sparc64/ChangeLog | 6 | ||||
-rw-r--r-- | 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 <gedare@rtems.org> + + PR bsps/1988 + * shared/startup/linkcmds: Relocate .init and .fini sections closer to + .text. + 2011-11-06 Gedare Bloom <gedare@rtems.org> * 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)) |