diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-30 11:46:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-30 11:46:21 +0000 |
commit | dc104a4039397056fc276d4f9a14d28b1405ae95 (patch) | |
tree | 8bea1c7c5d678b78190211d263c069aa5fdb66c4 /c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds | |
parent | Used shared sbrk.c. (diff) | |
download | rtems-dc104a4039397056fc276d4f9a14d28b1405ae95.tar.bz2 |
Updated to current source and removed warnings.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds')
-rw-r--r-- | c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds | 77 |
1 files changed, 43 insertions, 34 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds b/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds index 80b586dbad..9a33355599 100644 --- a/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds @@ -50,16 +50,16 @@ SECTIONS *(.descriptors) /* .gnu.warning sections are handled specially by elf32.em. */ *(.gnu.warning) - } =0 - .init : { *(.init) } =0 - .fini : { *(.fini) } =0 - .rodata : { *(.rodata) } - .rodata1 : { *(.rodata1) } + } >RAM + .init : { *(.init) } >RAM + .fini : { *(.fini) } >RAM + .rodata : { *(.rodata) } >RAM + .rodata1 : { *(.rodata1) } >RAM _etext = .; PROVIDE (etext = .); PROVIDE (__SDATA2_START__ = .); - .sdata2 : { *(.sdata2) } - .sbss2 : { *(.sbss2) } + .sdata2 : { *(.sdata2) } >RAM + .sbss2 : { *(.sbss2) } >RAM PROVIDE (__SBSS2_END__ = .); /* 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 @@ -81,44 +81,53 @@ SECTIONS { *(.data) CONSTRUCTORS - } + } >RAM PROVIDE (__EXCEPT_START__ = .); - .gcc_except_table : { *(.gcc_except_table) } + .gcc_except_table : { *(.gcc_except_table) } >RAM PROVIDE (__EXCEPT_END__ = .); - .data1 : { *(.data1) } - .got1 : { *(.got1) } - .dynamic : { *(.dynamic) } + .data1 : { *(.data1) } >RAM + .got1 : { *(.got1) } >RAM + .dynamic : { *(.dynamic) } >RAM /* 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) } - PROVIDE (__GOT2_END__ = .); - PROVIDE (__CTOR_LIST__ = .); - .ctors : { *(.ctors) } - PROVIDE (__CTOR_END__ = .); - PROVIDE (__DTOR_LIST__ = .); - .dtors : { *(.dtors) } - PROVIDE (__DTOR_END__ = .); - PROVIDE (_FIXUP_START_ = .); - .fixup : { *(.fixup) } - PROVIDE (_FIXUP_END_ = .); - PROVIDE (__FIXUP_END__ = .); - PROVIDE (_GOT2_END_ = .); - PROVIDE (_GOT_START_ = .); + PROVIDE (_GOT2_START_ = .); + PROVIDE (__GOT2_START__ = .); + .got2 : { *(.got2) } >RAM + PROVIDE (_GOT2_END_ = .); + PROVIDE (__GOT2_END__ = .); + + PROVIDE (__CTOR_LIST__ = .); + .ctors : { *(.ctors) } >RAM + PROVIDE (__CTOR_END__ = .); + + PROVIDE (__DTOR_LIST__ = .); + .dtors : { *(.dtors) } >RAM + PROVIDE (__DTOR_END__ = .); + + PROVIDE (_FIXUP_START_ = .); + PROVIDE (__FIXUP_START__ = .); + .fixup : { *(.fixup) } >RAM + PROVIDE (_FIXUP_END_ = .); + PROVIDE (__FIXUP_END__ = .); + + PROVIDE (_GOT2_END_ = .); + PROVIDE (_GOT_START_ = .); s.got = .; - .got : { *(.got) } - .got.plt : { *(.got.plt) } - PROVIDE (_GOT_END_ = .); - PROVIDE (__GOT_END__ = .); + .got : { *(.got) } >RAM + .got.plt : { *(.got.plt) } >RAM + PROVIDE (_GOT_END_ = .); + PROVIDE (__GOT_END__ = .); + /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so we can shorten the on-disk segment size. */ PROVIDE (__SDATA_START__ = .); - .sdata : { *(.sdata) } + .sdata : { *(.sdata) } >RAM _edata = .; PROVIDE (edata = .); + PROVIDE (RAM_END = 4M); .sbss : { @@ -126,7 +135,7 @@ SECTIONS *(.sbss) *(.scommon) PROVIDE (__sbss_end = .); - } + } >RAM PROVIDE (__SBSS_END__ = .); .bss : { @@ -134,7 +143,7 @@ SECTIONS *(.dynbss) *(.bss) *(COMMON) - } + } >RAM . = ALIGN(8) + 0x8000; PROVIDE (__stack = .); _end = . ; |