From 4ab10e93d6f65abac0857f26c8b1431cc5f7f5f9 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Thu, 13 Apr 2000 23:38:46 +0000 Subject: [PATCH] Correct previous misapplied patch. --- ld/scripttempl/elf.sc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 3841a4ae70d..b650073e00f 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} -- 2.30.2