aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-07-14 14:54:53 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-07-14 14:54:53 +0000
commit3b80b9cef917b0470f3a15816add26ff077e805d (patch)
treee4df81ff17741a02d880f8cfec005373f1ea6819 /ld
parentf33cfcaa37f068c113af97e9029bf3cdd55f2d56 (diff)
downloadgdb-3b80b9cef917b0470f3a15816add26ff077e805d.zip
gdb-3b80b9cef917b0470f3a15816add26ff077e805d.tar.gz
gdb-3b80b9cef917b0470f3a15816add26ff077e805d.tar.bz2
Also check ignored "-z relro".
2011-07-14 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/binutils.exp (binutils_test): Also check ignored "-z relro".
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/binutils.exp3
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index ee6987fa..bc01d77 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elf/binutils.exp (binutils_test): Also check ignored
+ "-z relro".
+
2011-07-14 Alan Modra <amodra@gmail.com>
* ld-scripts/section-flags.exp: Pass --local-store 0:0 for
diff --git a/ld/testsuite/ld-elf/binutils.exp b/ld/testsuite/ld-elf/binutils.exp
index 380bd26..382d50f 100644
--- a/ld/testsuite/ld-elf/binutils.exp
+++ b/ld/testsuite/ld-elf/binutils.exp
@@ -53,7 +53,8 @@ proc binutils_test { prog_name ld_options test } {
if { ![ld_simple_link $ld tmpdir/$test "$ld_options tmpdir/$test.o"] } {
if { [string match "*not supported*" $link_output]
- || [string match "*unrecognized option*" $link_output] } {
+ || [string match "*unrecognized option*" $link_output]
+ || [string match "*-z relro ignored*" $link_output] } {
unsupported "$ld_options is not supported by this target"
} else {
unresolved "$test_name"