This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Pass $PLT_CFLAGS to build_binary


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c4972ed6029abb1a56eeafe144000031d902f074

commit c4972ed6029abb1a56eeafe144000031d902f074
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 27 05:13:55 2015 -0700

    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.

Diff:
---
 ld/testsuite/ChangeLog           | 5 +++++
 ld/testsuite/ld-elfvers/vers.exp | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index a81149c..b2e85ed 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,10 @@
 2015-07-27  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* ld-elfvers/vers.exp (build_vers_lib_no_pic): Pass $PLT_CFLAGS
+	to build_binary.
+
+2015-07-27  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* config/default.exp (PLT_CFLAGS): New.
 
 2015-07-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
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 } {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]