bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/25236] common symbol: don't consider definitions in shared objec


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/25236] common symbol: don't consider definitions in shared objects
Date: Sat, 07 Dec 2019 05:52:15 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25236

--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5fa370e437f39bf73a133cc84c4e6329943522bf

commit 5fa370e437f39bf73a133cc84c4e6329943522bf
Author: Alan Modra <address@hidden>
Date:   Fri Dec 6 11:21:45 2019 +1030

    PR25236, common sym versioning

    In cases where a relocatable object file has a common symbol, no other
    file has a definition, and there is a matching common symbol found in
    a shared library then ld will output a definition using the largest of
    size and alignment for the commons.  This patch fixes a bug in ld that
    ignored common symbols when assigning versions, resulting in such
    symbols being given VER_NDX_LOCAL versions.

        PR 25236
        * elflink.c (_bfd_elf_link_assign_sym_version): Assign versions
        for ELF_COMMON_DEF_P symbols.
        (elf_link_output_extsym, _bfd_elf_add_default_symbol): Adjust to
        suit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]