diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-07-14 14:49:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-07-14 14:49:37 +0000 |
commit | d44976c9770359d74277c472f76d9fa019620c89 (patch) | |
tree | 3e566ab624375cb4cc7988bb383d8113015325c7 | |
parent | 2d07dfae310a942c460ba9ffc3182ba06ccf4b47 (diff) | |
download | gdb-d44976c9770359d74277c472f76d9fa019620c89.zip gdb-d44976c9770359d74277c472f76d9fa019620c89.tar.gz gdb-d44976c9770359d74277c472f76d9fa019620c89.tar.bz2 |
Skip relro tests on ia64.
2011-07-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/binutils.exp: Skip relro tests on ia64.
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/binutils.exp | 22 |
2 files changed, 20 insertions, 6 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index ee6987fa..b0015ab 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-07-14 H.J. Lu <hongjiu.lu@intel.com> + + * ld-elf/binutils.exp: Skip relro tests on ia64. + 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..518a02d 100644 --- a/ld/testsuite/ld-elf/binutils.exp +++ b/ld/testsuite/ld-elf/binutils.exp @@ -104,11 +104,19 @@ binutils_test strip "-shared" maxpage1 binutils_test objcopy "" maxpage1 binutils_test objcopy "-shared" maxpage1 -binutils_test strip "-z relro" relro1 -binutils_test strip "-z relro -shared" relro1 -binutils_test objcopy "-z relro" relro1 -binutils_test objcopy "-z relro -shared" relro1 -if { ([istarget "i?86-*-elf*"] +if { [istarget "ia64-*-*"] } { + set relotest no +} else { + set relotest yes +} + +if { $relotest == "yes" } { + binutils_test strip "-z relro" relro1 + binutils_test strip "-z relro -shared" relro1 + binutils_test objcopy "-z relro" relro1 + binutils_test objcopy "-z relro -shared" relro1 +} +if { ([istarget "i?86-*-elf*"] || (([istarget "i?86-*-linux*"] || [istarget "i?86-*-gnu*"]) && ![istarget "*-*-*aout*"] @@ -137,6 +145,8 @@ set tls_opts { foreach testitem $tls_tests { foreach testopt $tls_opts { - binutils_test objcopy $testopt $testitem + if { ($relotest == "yes" || ![regexp "\-z relro" "$testopt"]) } { + binutils_test objcopy $testopt $testitem + } } } |