From: H.J. Lu Date: Mon, 27 Jul 2015 12:13:55 +0000 (-0700) Subject: Pass $PLT_CFLAGS to build_binary X-Git-Tag: users/hjl/linux/release/2.25.51.0.4~1^2~57^2~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4972ed6029abb1a56eeafe144000031d902f074;p=thirdparty%2Fbinutils-gdb.git 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 --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index a81149cb0a5..b2e85ed6fdf 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-27 H.J. Lu + + * ld-elfvers/vers.exp (build_vers_lib_no_pic): Pass $PLT_CFLAGS + to build_binary. + 2015-07-27 H.J. Lu * config/default.exp (PLT_CFLAGS): New. diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 24828098098..0c3e99fab57 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 } {