From 83a234185206fff55520c396f6f10d3786ce5c12 Mon Sep 17 00:00:00 2001 From: Yufeng Zhang Date: Fri, 14 Dec 2012 11:58:59 +0000 Subject: [PATCH] ld/testsuite/ 2012-12-13 Yufeng Zhang * ld-elf/indirect.exp: Disable if -shared is not supported. * lib/ld-lib.exp (check_shared_lib_support): Add aarch64*-*-elf and arm*-*-elf to the exclude list. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/indirect.exp | 6 ++++++ ld/testsuite/lib/ld-lib.exp | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 994ee04e14..42ba29b152 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-12-14 Yufeng Zhang + + * ld-elf/indirect.exp: Disable if -shared is not supported. + * lib/ld-lib.exp (check_shared_lib_support): Add aarch64*-*-elf and + arm*-*-elf to the exclude list. + 2012-12-13 H.J. Lu PR ld/14956 diff --git a/ld/testsuite/ld-elf/indirect.exp b/ld/testsuite/ld-elf/indirect.exp index 165f89ac5a..07df2ccd5e 100644 --- a/ld/testsuite/ld-elf/indirect.exp +++ b/ld/testsuite/ld-elf/indirect.exp @@ -26,6 +26,12 @@ if ![is_elf_format] { return } +# Skip target where -shared is not supported + +if ![check_shared_lib_support] { + return +} + # Check if compiler works if { [which $CC] == 0 } { return diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 5f49e74f9d..a3ff2e32e2 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1555,7 +1555,9 @@ proc check_gc_sections_available { } { # Only used and accurate for ELF targets at the moment proc check_shared_lib_support { } { - if {![istarget arc-*-*] + if {![istarget aarch64*-*-elf] + && ![istarget arc-*-*] + && ![istarget arm*-*-elf] && ![istarget avr-*-*] && ![istarget cr16-*-*] && ![istarget cris*-*-*] -- 2.34.1