bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/17550] Section groups (comdat/linkonce) create undefined symbols


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/17550] Section groups (comdat/linkonce) create undefined symbols unnecessarily
Date: Fri, 06 May 2016 16:47:54 +0000

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

--- Comment #2 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 <address@hidden>:

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

commit 97196564c7e981bab7b968e19b171c5dfcb28c3c
Author: H.J. Lu <address@hidden>
Date:   Fri May 6 09:46:34 2016 -0700

    Strip global symbol defined in discarded section

    When a global symbol is defined in COMDAT group, we shouldn't leave an
    undefined symbol in symbol table when the symbol section is discarded
    unless there is a reference to the symbol outside of COMDAT group.

    bfd/

        PR ld/17550
        * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
        documenting that indx == -3 if symbol is defined in a discarded
        section.
        * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
        symbol is defined in a discarded section.
        (elf_link_output_extsym): Strip a global symbol defined in a
        discarded section.

    ld/

        PR ld/17550
        * testsuite/ld-elf/pr17550-1.s: New file.
        * testsuite/ld-elf/pr17550-2.s: Likewise.
        * testsuite/ld-elf/pr17550-3.s: Likewise.
        * testsuite/ld-elf/pr17550-4.s: Likewise.
        * testsuite/ld-elf/pr17550a.d: Likewise.
        * testsuite/ld-elf/pr17550b.d: Likewise.
        * testsuite/ld-elf/pr17550c.d: Likewise.
        * testsuite/ld-elf/pr17550d.d: 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]