diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-03 10:57:12 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-03 13:09:47 +1030 |
commit | 6955136728a68365bbb5e6e1327dff1654b2a0ca (patch) | |
tree | c52f47d2261eec78034e0c89952a8d64a2603965 /ld/testsuite | |
parent | a71501e25ff14918d7876f4905be0df9dd3ae29a (diff) | |
download | binutils-6955136728a68365bbb5e6e1327dff1654b2a0ca.zip binutils-6955136728a68365bbb5e6e1327dff1654b2a0ca.tar.gz binutils-6955136728a68365bbb5e6e1327dff1654b2a0ca.tar.bz2 |
PR27311 again, ld.bfd (symbol from plugin): undefined reference
bfd/
PR 27311
* elflink.c (_bfd_elf_add_default_symbol): Clear override when
undecorated symbol will have a different version.
ld/
* testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
Link with --as-needed.
Diffstat (limited to 'ld/testsuite')
-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 9d3ace6..45b47d7 100644 --- a/ld/testsuite/ld-ifunc/ifunc.exp +++ b/ld/testsuite/ld-ifunc/ifunc.exp @@ -397,7 +397,7 @@ run_cc_link_tests [list \ ] \ [list \ "Build libpr16467b.so" \ - "-shared tmpdir/pr16467b.o tmpdir/libpr16467a.so \ + "-shared -Wl,--as-needed tmpdir/pr16467b.o tmpdir/libpr16467a.so \ -Wl,--version-script=pr16467b.map" \ "-fPIC" \ { dummy.c } \ @@ -422,7 +422,7 @@ run_cc_link_tests [list \ ] \ [list \ "Build libpr16467bn.so" \ - "-shared tmpdir/pr16467b.o tmpdir/libpr16467an.so \ + "-shared -Wl,--as-needed tmpdir/pr16467b.o tmpdir/libpr16467an.so \ -Wl,--version-script=pr16467b.map" \ "-fPIC" \ { dummy.c } \ |