]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: Pass -Wl,-z,lazy to compiler for i386 lazy binding tests
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Mar 2025 04:44:11 +0000 (12:44 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Mar 2025 04:50:54 +0000 (12:50 +0800)
commit78d7038b1579733dafd3e0541444f7626cf24a87
tree8d65a0a51524dec6fbfb09d89a511436bdcd177e
parentaa2cd0e39dc81b28ba7c934faac18bd4d8287450
ld: Pass -Wl,-z,lazy to compiler for i386 lazy binding tests

Pass -Wl,-z,lazy to compiler for i386 tests which require lazy binding
to support compilers which default to non-lazy binding.

PR ld/32762
* testsuite/ld-i386/i386.exp: Pass -Wl,-z,lazy for
"Build ifunc-1a with PIE -z ibtplt" test.
* testsuite/ld-i386/no-plt.exp: Pass -Wl,-z,lazy for
"Build libno-plt-1b.so", "No PLT (dynamic 1a)",
"No PLT (dynamic 1b)", "No PLT (dynamic 1c)",
"No PLT (PIE 1e)", "No PLT (PIE 1f)", "No PLT (PIE 1g)" tests.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/no-plt.exp