From: H.J. Lu Date: Fri, 7 Oct 2011 19:55:47 +0000 (+0000) Subject: Run --gc-sections tests only if supported. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a130722b038febce99d75e2d0ada76e54eb4cbcb;p=binutils-gdb.git Run --gc-sections tests only if supported. 2011-10-07 H.J. Lu * ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections is available. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b59aed7dc35..592e7e3d432 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-10-07 H.J. Lu + + * ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections + is available. + 2011-10-06 Alan Modra * ld-plugin/plugin-1.d, * ld-plugin/plugin-2.d, * ld-plugin/plugin-3.d, 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 {