diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-10-07 19:55:47 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-10-07 19:55:47 +0000 |
commit | a130722b038febce99d75e2d0ada76e54eb4cbcb (patch) | |
tree | b605cfd1fb39a89c0d4d526380b3efb33bbd7d72 /ld/testsuite/ld-elf/elf.exp | |
parent | 4c38200f7dda423c701d01639596df606b96433c (diff) | |
download | binutils-gdb-a130722b038febce99d75e2d0ada76e54eb4cbcb.tar.gz |
Run --gc-sections tests only if supported.
2011-10-07 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections
is available.
Diffstat (limited to 'ld/testsuite/ld-elf/elf.exp')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 866c86682ec..b993c965f36 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -138,9 +138,11 @@ if ![isnative] { return } -run_cc_link_tests { - {"PR ld/13195" "-Wl,--gc-sections" "" - {pr13195.c} {} "pr13195"} +if [check_gc_sections_available] { + run_cc_link_tests { + {"PR ld/13195" "-Wl,--gc-sections" "" + {pr13195.c} {} "pr13195"} + } } set array_tests { |