aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-06-18 16:42:23 +0930
committerAlan Modra <amodra@gmail.com>2018-06-18 22:00:32 +0930
commit77236b8349e95c869179b1efa4e6c2ee5c878141 (patch)
treeb697ec192ca4ac488b0343f8824d0f4c657e95fc /ld/testsuite/lib/ld-lib.exp
parentAdd support for the TLV relocation generated by LLVM for x86_64 MACH-O targets. (diff)
downloadbinutils-gdb-77236b8349e95c869179b1efa4e6c2ee5c878141.tar.gz
binutils-gdb-77236b8349e95c869179b1efa4e6c2ee5c878141.tar.bz2
binutils-gdb-77236b8349e95c869179b1efa4e6c2ee5c878141.zip
Build ifunc tests when non-native
Plus a number of fixes to the pr23169 tests. * testsuite/lib/ld-lib.exp (check_ifunc_available): Pass without running executable when non-native. (check_ifunc_attribute_available): Likewise. * testsuite/ld-ifunc/pr23169a.rd: Remove extraneous lines. Match st_other strings. Pass when func is an ifunc. * testsuite/ld-ifunc/pr23169b.rd: Remove extraneous lines. Correct reloc regexp. Correct match-anything line. * testsuite/ld-ifunc/pr23169c.rd: Remove extraneous lines. Match st_other strings.
Diffstat (limited to 'ld/testsuite/lib/ld-lib.exp')
-rw-r--r--ld/testsuite/lib/ld-lib.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 41689333a6f..cfbefe9028e 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -2137,7 +2137,7 @@ proc check_ifunc_available { } {
set src [remote_download host $src]
}
set ifunc_available_saved [run_host_cmd_yesno "$CC" "$flags $src -o $output"]
- if { $ifunc_available_saved == 1 } {
+ if { [isnative] && $ifunc_available_saved == 1 } {
set ifunc_available_saved [run_host_cmd_yesno "$output" ""]
}
remote_file host delete $src
@@ -2184,7 +2184,7 @@ proc check_ifunc_attribute_available { } {
set src [remote_download host $src]
}
set ifunc_attribute_available_saved [run_host_cmd_yesno "$CC" "$flags $src -o $output"]
- if { $ifunc_attribute_available_saved == 1 } {
+ if { [isnative] && $ifunc_attribute_available_saved == 1 } {
set ifunc_attribute_available_saved [run_host_cmd_yesno "$output" ""]
}
remote_file host delete $src