summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-22 04:44:03 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-07-22 04:44:33 -0700
commit2ceac9a8a5e208d4aa4824b2fb67e83ceaa19fe0 (patch)
treeb2324036b5cf60cd69dc7ff3608c7dcfca7b3dff /ld/testsuite/ld-elfvers/vers.exp
parent7d066bc6aa8c4cf04b2b75e3a1a65a3aae791bce (diff)
downloadbinutils-gdb-2ceac9a8a5e208d4aa4824b2fb67e83ceaa19fe0.tar.gz
Add ld-elfvers/vers-gold.expusers/hjl/gold-test
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers.exp')
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp15
1 files changed, 13 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 24828098098..b1d5ec6ec25 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -105,6 +105,17 @@ case $target_triplet in {
default { set as_options "" }
}
+global test_gold
+if { [info exists test_gold] && $test_gold == yes } then {
+ if { ![info exists gold] } then {
+ unsupported "gold symbol version tests"
+ return
+ }
+ set linker "$gold"
+} else {
+ set linker "$ld"
+}
+
proc test_ar { test lib object expect } {
global ar
global nm
@@ -502,7 +513,7 @@ proc objdump_versionstuff { objdump object expectfile } {
}
proc build_binary { shared pic test source libname other mapfile verexp versymexp symexp ldargs } {
- global ld
+ global linker
global srcdir
global subdir
global exec_output
@@ -538,7 +549,7 @@ proc build_binary { shared pic test source libname other mapfile verexp versymex
set script_arg "$script $srcdir/$subdir/$mapfile"
}
- if {![ld_simple_link $ld $tmpdir/$libname.so "$shared $tmpdir/$libname.o $other_lib $script_arg $ldargs"]} {
+ if {![ld_simple_link $linker $tmpdir/$libname.so "$shared $tmpdir/$libname.o $other_lib $script_arg $ldargs"]} {
fail "$test"
return
}