* scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Jun 2004 16:39:17 +0000 (16:39 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 15 Jun 2004 16:39:17 +0000 (16:39 +0000)
.gcc_except_table output sections lost accidentally with
-z relro patch.

ld/ChangeLog
ld/scripttempl/elf.sc

index b423b74ad6a169478b01e94cd0616bf423ea8094..f64974b486f45ccc98c351874c41c3c2796b2c30 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-15  Jakub Jelinek  <jakub@redhat.com>
+
+       * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
+       .gcc_except_table output sections lost accidentally with
+       -z relro patch.
+
 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
 
        * ldwrite.c (build_link_order): Use bfd_get_section_size
index 4d0279c73d818ffd8b707d52b3088c720a607b85..93d849eab55c1a0f1b517e2707ec395f992a185f 100644 (file)
@@ -312,7 +312,7 @@ cat <<EOF
   ${OTHER_READONLY_SECTIONS}
   .eh_frame_hdr : { *(.eh_frame_hdr) }
   .eh_frame     ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) }
-  .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { *(.gcc_except_table) }
+  .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
 
   /* Adjust the address for the data segment.  We want to adjust up to
      the same address within the page on the next page up.  */
@@ -322,7 +322,7 @@ cat <<EOF
 
   /* Exception handling  */
   .eh_frame     ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
-  .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { *(.gcc_except_table) }
+  .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
 
   /* Thread Local Storage sections  */
   .tdata       ${RELOCATING-0} : { *(.tdata${RELOCATING+ .tdata.* .gnu.linkonce.td.*}) }
This page took 0.028366 seconds and 4 git commands to generate.