[PATCH] elf: Don't set version info on unversioned symbols

H.J. Lu hjl.tools@gmail.com
Sun Sep 19 14:38:14 GMT 2021


On Sun, Sep 19, 2021 at 12:11 AM Alan Modra <amodra@gmail.com> wrote:
>
> On Sat, Sep 18, 2021 at 04:08:34PM -0700, H.J. Lu via Binutils wrote:
> > bfd/
> >
> >       PR ld/28348
> >       * elflink.c (elf_link_add_object_symbols): Don't set version info
> >       on unversioned symbols.
> >
> > ld/
> >
> >       PR ld/28348
> >       * testsuite/ld-elf/pr28348.rd: New file.
> >       * testsuite/ld-elf/pr28348.t: Likewise.
> >       * testsuite/ld-elf/pr28348a.c: Likewise.
> >       * testsuite/ld-elf/pr28348b.c: Likewise.
> >       * testsuite/ld-elf/pr28348c.c: Likewise.
> >       * testsuite/ld-elf/shared.exp: Run PR ld/28348 tests.
>
> OK with pr28348.rd tweaked to also match alpha-linux readelf output
>      5: 00000001200007d0     4 FUNC    WEAK   DEFAULT [NOPV]    13 foo
>

This is what I checked in.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0001-elf-Don-t-set-version-info-on-unversioned-symbols.patch
Type: text/x-patch
Size: 4520 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210919/5e690abb/attachment.bin>


More information about the Binutils mailing list