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".
This commit is contained in:
H.J. Lu 2011-07-14 14:54:53 +00:00
parent f33cfcaa37
commit 3b80b9cef9
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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"