diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2023-08-07 10:23:16 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2023-08-14 08:43:01 -0700 |
commit | 51dd9e7c4cab13748f31f6575aed0672f03d6710 (patch) | |
tree | d2254d905067b7f88715a225af54dafb72765d1b /ld | |
parent | 9381cdb1fb820d8a83dc7de8179e4a1a806011c6 (diff) | |
download | fsf-binutils-gdb-51dd9e7c4cab13748f31f6575aed0672f03d6710.zip fsf-binutils-gdb-51dd9e7c4cab13748f31f6575aed0672f03d6710.tar.gz fsf-binutils-gdb-51dd9e7c4cab13748f31f6575aed0672f03d6710.tar.bz2 |
ld: Build libpr23169a.so with -z lazy
pr23169b test only works with lazy binding. To work with linker which
disables lazy binding by default, build pr23169b binaries with -z lazy.
PR ld/30698
* ld-ifunc/ifunc.exp: Build pr23169b binaries with -z lazy.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp index edabcc3..2bf656e 100644 --- a/ld/testsuite/ld-ifunc/ifunc.exp +++ b/ld/testsuite/ld-ifunc/ifunc.exp @@ -604,7 +604,7 @@ run_cc_link_tests [list \ ] \ [list \ "Build libpr23169a.so" \ - "-shared" \ + "-shared -Wl,-z,lazy" \ "-fPIC -O2 -g" \ { pr23169a.c } \ {} \ @@ -751,7 +751,7 @@ run_ld_link_exec_tests [list \ ] \ [list \ "Run pr23169b" \ - "-pie -Wl,--no-as-needed tmpdir/libpr23169a.so" \ + "-pie -Wl,--no-as-needed,-z,lazy tmpdir/libpr23169a.so" \ "" \ { pr23169b.c pr23169c.c } \ "pr23169b" \ |