summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 16:49:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 16:49:28 +0000
commitfad4a52be57553acad94466a0fe9f4bf5abe90eb (patch)
tree40b601ec24fb73c898c390b2dab5cf9afa10830a /c
parent2002-12-08 Greg Menke <gregory.menke@gsfc.nasa.gov> (diff)
downloadrtems-fad4a52be57553acad94466a0fe9f4bf5abe90eb.tar.bz2
2002-12-08 Greg Menke <gregory.menke@gsfc.nasa.gov>
* startup/linkcmds: Shifted .init, .fini to match better with crtbegin/crtend linking.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/motorola_powerpc/startup/linkcmds29
2 files changed, 17 insertions, 17 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog b/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
index a87eb72beb..bbbb7e5aa0 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-08 Greg Menke <gregory.menke@gsfc.nasa.gov>
+
+ * startup/linkcmds: Shifted .init, .fini to match better with
+ crtbegin/crtend linking.
+
2002-12-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* bootloader/Makefile.am: Don't include @RTEMS_BSP@.cfg.
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/startup/linkcmds b/c/src/lib/libbsp/powerpc/motorola_powerpc/startup/linkcmds
index 93a78b06be..1ea3433157 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/startup/linkcmds
@@ -52,6 +52,9 @@ SECTIONS
.rela.sbss : { *(.rela.sbss) } > CODE
.rela.sdata2 : { *(.rela.sdata2) } > CODE
.rela.sbss2 : { *(.rela.sbss2) } > CODE
+
+ .init : { _init = .; KEEP(*(.init)) } > CODE
+
.text :
{
*(.text)
@@ -59,14 +62,15 @@ SECTIONS
*(.gnu.warning)
*(.gnu.linkonce.t*)
} > CODE
- .init : { _init = .; KEEP(*(.init)) } >CODE
- .fini : { _fini = .; KEEP(*(.fini)) } >CODE
- .rodata : { *(.rodata*) *(.gnu.linkonce.r*) } > CODE
- .rodata1 : { *(.rodata1) } > CODE
- .eh_frame : { *.(eh_frame) } >CODE
+
+ .fini : { _fini = .; KEEP(*(.fini)) } > CODE
+
_etext = .;
PROVIDE (etext = .);
+ .rodata : { *(.rodata*) *(.gnu.linkonce.r*) } > CODE
+ .rodata1 : { *(.rodata1) } > CODE
+
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x10000) + (. & (0x10000 - 1));
@@ -87,6 +91,8 @@ SECTIONS
.sdata2 : { *(.sdata2) *(.gnu.linkonce.s2.*) } >CODE
.sbss2 : { *(.sbss2) *(.gnu.linkonce.sb2.*) } >CODE
+ .eh_frame : { *.(eh_frame) } >CODE
+
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. It would
be more correct to do this:
@@ -113,23 +119,12 @@ SECTIONS
.gcc_except_table : { *(.gcc_except_table) } > CODE
PROVIDE (__EXCEPT_END__ = .);
.got1 : { *(.got1) } > CODE
- .dynamic : { *(.dynamic) } > CODE
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
get relocated with -mrelocatable. Also put in the .fixup pointers.
The current compiler no longer needs this, but keep it around for 2.7.2 */
PROVIDE (_GOT2_START_ = .);
.got2 : { *(.got2) } > CODE
-
-
-/* removed 11/14, gregm
- PROVIDE (__CTOR_LIST__ = .);
- .ctors : { *(.ctors) } > CODE
- PROVIDE (__CTOR_END__ = .);
- PROVIDE (__DTOR_LIST__ = .);
- .dtors : { *(.dtors) } > CODE
- PROVIDE (__DTOR_END__ = .);
-*/
-
+ .dynamic : { *(.dynamic) } > CODE
.ctors :
{