aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-04-09 18:23:54 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-04-09 18:23:54 +0000
commit28ad0357c60b45413199be58da0868d106c0d26a (patch)
tree08ec7a1c101802ba0225cc3313d0350fffaf72b1 /ld/scripttempl
parent7ec9d82515b35f7861c26076e86db48c5e14e65c (diff)
downloadgdb-28ad0357c60b45413199be58da0868d106c0d26a.zip
gdb-28ad0357c60b45413199be58da0868d106c0d26a.tar.gz
gdb-28ad0357c60b45413199be58da0868d106c0d26a.tar.bz2
Put .init/.fini in correct places.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elfppc.sc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/scripttempl/elfppc.sc b/ld/scripttempl/elfppc.sc
index bc2105c..ac1027b 100644
--- a/ld/scripttempl/elfppc.sc
+++ b/ld/scripttempl/elfppc.sc
@@ -67,7 +67,6 @@ SECTIONS
.rela.sbss ${RELOCATING-0} : { *(.rela.sbss2) }
.rela.sdata2 ${RELOCATING-0} : { *(.rela.sdata2) }
.rela.sbss2 ${RELOCATING-0} : { *(.rela.sbss2) }
- .init ${RELOCATING-0} : { *(.init) } =${NOP-0}
${DATA_PLT-${PLT}}
.text ${RELOCATING-0} :
{
@@ -76,11 +75,12 @@ SECTIONS
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
} =${NOP-0}
- ${RELOCATING+_etext = .;}
- ${RELOCATING+PROVIDE (etext = .);}
- .fini ${RELOCATING-0} : { *(.fini) } =${NOP-0}
+ .init ${RELOCATING-0} : { *(.init) } =${NOP-0}
+ .fini ${RELOCATING-0} : { *(.fini) } =${NOP-0}
.rodata ${RELOCATING-0} : { *(.rodata) }
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
+ ${RELOCATING+_etext = .;}
+ ${RELOCATING+PROVIDE (etext = .);}
${CREATE_SHLIB-${SDATA2}}
${CREATE_SHLIB-${SBSS2}}
${RELOCATING+${OTHER_READONLY_SECTIONS}}