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 /bfd | |
parent | a71501e25ff14918d7876f4905be0df9dd3ae29a (diff) | |
download | gdb-6955136728a68365bbb5e6e1327dff1654b2a0ca.zip gdb-6955136728a68365bbb5e6e1327dff1654b2a0ca.tar.gz gdb-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 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elflink.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d65c56d..f76b7a1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2021-02-03 Alan Modra <amodra@gmail.com> + + PR 27311 + * elflink.c (_bfd_elf_add_default_symbol): Clear override when + undecorated symbol will have a different version. + 2021-02-02 Alan Modra <amodra@gmail.com> PR 27311 diff --git a/bfd/elflink.c b/bfd/elflink.c index 7ac38ca..5af32ef 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -1946,12 +1946,16 @@ _bfd_elf_add_default_symbol (bfd *abfd, if (hi->verinfo.vertree != NULL && hide) { (*bed->elf_backend_hide_symbol) (info, hi, TRUE); + *override = FALSE; goto nondefault; } } if (hi->verinfo.vertree != NULL && strcmp (p + 1 + (p[1] == '@'), hi->verinfo.vertree->name) != 0) - goto nondefault; + { + *override = FALSE; + goto nondefault; + } } if (!*override) |