This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld-plugin/pr12982
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 21 May 2013 16:43:58 +0930
- Subject: ld-plugin/pr12982
The test makes a lot of assumptions about the target compiler and
library files, in particular that .note.GNU-stack is present in object
files. This patch allows the test to pass on targets that default to
a non-exec stack, and thus do not need GNU_STACK to be present.
* ld-plugin/pr12982.d: Fail if RWE GNU_STACK present.
Index: ld/testsuite/ld-plugin/pr12982.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-plugin/pr12982.d,v
retrieving revision 1.1
diff -u -p -r1.1 pr12982.d
--- ld/testsuite/ld-plugin/pr12982.d 7 Dec 2012 19:23:50 -0000 1.1
+++ ld/testsuite/ld-plugin/pr12982.d 21 May 2013 06:12:53 -0000
@@ -1,3 +1,4 @@
+#failif
#...
-[ \t]+GNU_STACK[ \t]+0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +RW +0x[0-9a-f]+
+ +GNU_STACK .* RWE .*
#pass
--
Alan Modra
Australia Development Lab, IBM