bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/27193] Linkonce section with unused section symbols won't match


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/27193] Linkonce section with unused section symbols won't match comdat section without unused section symbols
Date: Mon, 18 Jan 2021 04:06:03 +0000

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

--- Comment #10 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:

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

commit 994b25132814f4c2be93ce53a616a74139c4cf3c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Jan 17 20:01:16 2021 -0800

    ld/elf: Ignore section symbols when matching linkonce with comdat

    When deciding if a single member comdat group section in file FOO should
    be discarded by a linkonce section in file BAR, we check if 2 sections
    define the same set of local and global symbols.  When only one of the
    files doesn't contain the unused section symbols in the symbol table,
    such as object files generated by clang or GNU assembler with

    commit d1bcae833b32f1408485ce69f844dcd7ded093a8
    Author: H.J. Lu <hjl.tools@gmail.com>
    Date:   Thu Jan 7 06:42:00 2021 -0800

        ELF: Don't generate unused section symbols

    the check will fail since one file has the extra unused section symbols.
    We should ignore both undefined and section symbols in the symbol table
    when making such a decision.

    bfd/

            PR ld/27193
            * elflink.c (elf_create_symbuf): Also ignore section symbols.

    ld/

            PR ld/27193
            * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
            * testsuite/ld-i386/pr27193.dd: New file.
            * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
            * testsuite/ld-i386/pr27193b.s: Likewise.

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