aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-27 05:13:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-07-27 05:13:55 -0700
commitc4972ed6029abb1a56eeafe144000031d902f074 (patch)
treeea83d90a86964c0eab320eeec46860866adf1ea5 /ld/testsuite/ld-elfvers
parente10461aebd2c9165c168583e70e7901e962ed1bb (diff)
downloadgdb-c4972ed6029abb1a56eeafe144000031d902f074.zip
gdb-c4972ed6029abb1a56eeafe144000031d902f074.tar.gz
gdb-c4972ed6029abb1a56eeafe144000031d902f074.tar.bz2
Pass $PLT_CFLAGS to build_binary
Some linker symbol version tests without PIC expect PLT. This patch adds $PLT_CFLAGS to CFLAGS. * ld-elfvers/vers.exp (build_vers_lib_no_pic): Pass $PLT_CFLAGS to build_binary.
Diffstat (limited to 'ld/testsuite/ld-elfvers')
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 2482809..0c3e99f 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -575,7 +575,9 @@ proc build_executable { test source libname other mapfile verexp versymexp symex
proc build_vers_lib_no_pic { test source libname other mapfile verexp versymexp symexp } {
global shared
- build_binary $shared "" $test $source $libname $other $mapfile $verexp $versymexp $symexp ""
+ # Make sure that PLT is used since PLT is expected.
+ global PLT_CFLAGS
+ build_binary $shared $PLT_CFLAGS $test $source $libname $other $mapfile $verexp $versymexp $symexp ""
}
proc build_vers_lib_pic { test source libname other mapfile verexp versymexp symexp } {