aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2000-04-13 23:38:46 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2000-04-13 23:38:46 +0000
commit4ab10e93d6f65abac0857f26c8b1431cc5f7f5f9 (patch)
treeedfad9970be5601d5cd7dcc3311c8072cba66797 /ld
parent6c86c54107d273d67b175ff61337ac97567a7786 (diff)
downloadgdb-4ab10e93d6f65abac0857f26c8b1431cc5f7f5f9.zip
gdb-4ab10e93d6f65abac0857f26c8b1431cc5f7f5f9.tar.gz
gdb-4ab10e93d6f65abac0857f26c8b1431cc5f7f5f9.tar.bz2
Correct previous misapplied patch.
Diffstat (limited to 'ld')
-rw-r--r--ld/scripttempl/elf.sc19
1 files changed, 9 insertions, 10 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 3841a4a..b650073 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -124,6 +124,8 @@ SECTIONS
.gnu.version_d ${RELOCATING-0} : { *(.gnu.version_d) }
.gnu.version_r ${RELOCATING-0} : { *(.gnu.version_r) }
+ .rel.init ${RELOCATING-0} : { *(.rel.init) }
+ .rela.init ${RELOCATING-0} : { *(.rela.init) }
.rel.text ${RELOCATING-0} :
{
*(.rel.text)
@@ -136,8 +138,6 @@ SECTIONS
${RELOCATING+*(.rela.text.*)}
${RELOCATING+*(.rela.gnu.linkonce.t*)}
}
- .rel.init ${RELOCATING-0} : { *(.rel.init) }
- .rela.init ${RELOCATING-0} : { *(.rela.init) }
.rel.fini ${RELOCATING-0} : { *(.rel.fini) }
.rela.fini ${RELOCATING-0} : { *(.rela.fini) }
.rel.rodata ${RELOCATING-0} :
@@ -196,9 +196,14 @@ SECTIONS
.rela.plt ${RELOCATING-0} : { *(.rela.plt) }
${OTHER_PLT_RELOC_SECTIONS}
+ .init ${RELOCATING-0} :
+ {
+ ${INIT_START}
+ KEEP (*(.init))
+ ${INIT_END}
+ } =${NOP-0}
+
${DATA_PLT-${BSS_PLT-${PLT}}}
- /* .text should be before .init and so on, so that -Ttext=0x1234
- will work. */
.text ${RELOCATING-0} :
{
${RELOCATING+${TEXT_START_SYMBOLS}}
@@ -210,12 +215,6 @@ SECTIONS
${RELOCATING+*(.gnu.linkonce.t*)}
${RELOCATING+${OTHER_TEXT_SECTIONS}}
} =${NOP-0}
- .init ${RELOCATING-0} :
- {
- ${INIT_START}
- KEEP (*(.init))
- ${INIT_END}
- } =${NOP-0}
.fini ${RELOCATING-0} :
{
${FINI_START}