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.
This commit is contained in:
parent
e10461aebd
commit
c4972ed602
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -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 } {
|
||||
|
|
Loading…
Reference in a new issue