aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/scripttempl/pe.sc2
-rw-r--r--ld/scripttempl/pep.sc2
3 files changed, 11 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4a93d2c..cd88318 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2009-11-25 Kai Tietz <kai.tietz@onevision.com>
+
+ * scripttempl/pe.sc: (.note.GNU-stack): Mark as discardable.
+ (.gnu.lto_*): Likewise.
+ * scripttempl/pep.sc: (.note.GNU-stack): Mark as discardable.
+ (.gnu.lto_*): Likewise.
+
2009-11-23 Paul Brook <paul@codesourcery.com>
* ldexp.c: Copy symbol type for simple assignments.
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index 0d59aa0..f3cbe25 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -139,6 +139,8 @@ SECTIONS
*(.debug\$T)
*(.debug\$F)
*(.drectve)
+ ${RELOCATING+ *(.note.GNU-stack)}
+ ${RELOCATING+ *(.gnu.lto_*)}
}
.idata ${RELOCATING+BLOCK(__section_alignment__)} :
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index c6eb06c..7134a4e 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -140,6 +140,8 @@ SECTIONS
*(.debug\$T)
*(.debug\$F)
*(.drectve)
+ ${RELOCATING+ *(.note.GNU-stack)}
+ ${RELOCATING+ *(.gnu.lto_*)}
}
.idata ${RELOCATING+BLOCK(__section_alignment__)} :