* scripttempl/pe.sc: Don't include .gcc_except_table and
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 12 Jul 2007 12:57:02 +0000 (12:57 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Thu, 12 Jul 2007 12:57:02 +0000 (12:57 +0000)
.eh_frame on partial links.
* scripttempl/pep.sc: Likewise.

ld/ChangeLog
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc

index 0d1bcc7..7b9a1f8 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * scripttempl/pe.sc: Don't include .gcc_except_table and
+       .eh_frame on partial links.
+       * scripttempl/pep.sc: Likewise.
+
 2007-07-12  Alan Modra  <amodra@bigpond.net.au>
 
        PR 4782
index c9931b5..c9eb16f 100644 (file)
@@ -71,7 +71,7 @@ SECTIONS
     /* ??? Why is .gcc_exc here?  */
     ${RELOCATING+ *(.gcc_exc)}
     ${RELOCATING+PROVIDE (etext = .);}
-    *(.gcc_except_table)
+    ${RELOCATING+ *(.gcc_except_table)}
   }
 
   /* The Cygwin32 library uses a section to avoid copying certain data
@@ -95,7 +95,7 @@ SECTIONS
   {
     *(.rdata)
     ${R_RDATA}
-    *(.eh_frame)
+    ${RELOCATING+ *(.eh_frame)}
     ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;}
     ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;}
     *(.rdata_runtime_pseudo_reloc)
index edad5ee..7237832 100644 (file)
@@ -71,7 +71,7 @@ SECTIONS
     /* ??? Why is .gcc_exc here?  */
     ${RELOCATING+ *(.gcc_exc)}
     ${RELOCATING+PROVIDE (etext = .);}
-    *(.gcc_except_table)
+    ${RELOCATING+ *(.gcc_except_table)}
   }
 
   /* The Cygwin32 library uses a section to avoid copying certain data
@@ -95,7 +95,7 @@ SECTIONS
   {
     *(.rdata)
     ${R_RDATA}
-    *(.eh_frame)
+    ${RELOCATING+ *(.eh_frame)}
     ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;}
     ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;}
     *(.rdata_runtime_pseudo_reloc)