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: hjl.tools at gmail dot com
Subject: [Bug gas/27193] Linkonce section with unused section symbols won't match comdat section without unused section symbols
Date: Sun, 17 Jan 2021 02:44:17 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|GCC trunk unable to         |Linkonce section with
                   |bootstrap with Binutils     |unused section symbols
                   |Trunk                       |won't match comdat section
                   |                            |without unused section
                   |                            |symbols

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
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.

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