* scripttempl/elf.sc: Keep .preinit_array, .init_array and
authorPaul Brook <paul@codesourcery.com>
Fri, 24 Sep 2004 11:43:34 +0000 (11:43 +0000)
committerPaul Brook <paul@codesourcery.com>
Fri, 24 Sep 2004 11:43:34 +0000 (11:43 +0000)
.fini_array sections.

ld/ChangeLog
ld/scripttempl/elf.sc

index 2d4df31c6b056f15889d28404939be0bb9c99fc8..218a3046e248747d200b6a7dd2acb43d1958eccb 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-24  Paul Brook  <paul@codeosurcery.com>
+
+       * scripttempl/elf.sc: Keep .preinit_array, .init_array and
+       .fini_array sections.
+
 2004-09-19  Andreas Schwab  <schwab@suse.de>
 
        * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
index 1e857773dc3de6d1a4bc949e7bfe74588811e3b2..245ab030bd89304f8838c8443d9b3b71cefba7f8 100644 (file)
@@ -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}}
This page took 0.027235 seconds and 4 git commands to generate.