Add $PLT_CFLAGS to -fPIC for run_cc_link_tests
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 27 Jul 2015 12:15:48 +0000 (05:15 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 27 Jul 2015 12:15:48 +0000 (05:15 -0700)
commitea9fb8b3e9f9624262984ad402f2aac34c65534d
tree74e13647e8ac033745c4e9fe91a6f23ffb43eb4b
parentfaebca0390ceef085f383d42423e14079dcd0a48
Add $PLT_CFLAGS to -fPIC for run_cc_link_tests

Some x86 linker tests expect PLT.  This patch adds $PLT_CFLAGS to -fPIC
for run_cc_link_tests.

* ld-i386/i386.exp (run_cc_link_tests): Add $PLT_CFLAGS to
-fPIC if needed.
* ld-x86-64/mpx.exp (run_cc_link_tests): Likewise.
* ld-x86-64/x86-64.exp (run_cc_link_tests): Likewise.
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-x86-64/mpx.exp
ld/testsuite/ld-x86-64/x86-64.exp