aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2004-09-24 11:43:34 +0000
committerPaul Brook <paul@codesourcery.com>2004-09-24 11:43:34 +0000
commit7b89fa29db903c2441d3f8ab27cf85e719e63594 (patch)
treeb8b76d4fa1c28661fb0cdff08d03fe206779de42 /ld/scripttempl
parent3f2c7a45bef8a2fc147186f0b247c2a2a4ab1eae (diff)
downloadfsf-binutils-gdb-7b89fa29db903c2441d3f8ab27cf85e719e63594.zip
fsf-binutils-gdb-7b89fa29db903c2441d3f8ab27cf85e719e63594.tar.gz
fsf-binutils-gdb-7b89fa29db903c2441d3f8ab27cf85e719e63594.tar.bz2
* scripttempl/elf.sc: Keep .preinit_array, .init_array and
.fini_array sections.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf.sc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 1e85777..245ab03 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -335,15 +335,15 @@ cat <<EOF
be empty, which isn't pretty. */
${RELOCATING+. = ALIGN(${ALIGNMENT});}
${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_start = .);}}
- .preinit_array ${RELOCATING-0} : { *(.preinit_array) }
+ .preinit_array ${RELOCATING-0} : { KEEP (*(.preinit_array)) }
${RELOCATING+${CREATE_SHLIB-PROVIDE (__preinit_array_end = .);}}
${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_start = .);}}
- .init_array ${RELOCATING-0} : { *(.init_array) }
+ .init_array ${RELOCATING-0} : { KEEP (*(.init_array)) }
${RELOCATING+${CREATE_SHLIB-PROVIDE (__init_array_end = .);}}
${RELOCATING+${CREATE_SHLIB-PROVIDE (__fini_array_start = .);}}
- .fini_array ${RELOCATING-0} : { *(.fini_array) }
+ .fini_array ${RELOCATING-0} : { KEEP (*(.fini_array)) }
${RELOCATING+${CREATE_SHLIB-PROVIDE (__fini_array_end = .);}}
${RELOCATING+${CTOR}}