[Top][All Lists]

[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


--- 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>:


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

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]