[Bug lto/84847] [8 Regression] Incompatibility between early LTO debug and "-Wl,--gc-sections" leads to corrupt DWARF debuginfo

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 13 14:48:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84847

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
   Target Milestone|---                         |8.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note this is clearly a binutils bug, not a GCC one.  Note I think we cannot
work around this ld bug in GCC.

The 20882 workaround cannot be removed from prettyprinters.exp when using
binutils 2.29.1.  I then still get

                === libstdc++ Summary ===

# of expected passes            270
# of unsupported tests          14

instead of
                === libstdc++ Summary ===

# of expected passes            512

errors are like


Dwarf Error: could not find abbrev number 100 [in module
/tmp/obj/x86_64-pc-linux-gnu/libstdc++-v3/testsuite/48362.exe]^M
skipping: Dwarf Error: could not find abbrev number 100 [in module
/tmp/obj/x86_64-pc-linux-gnu/libstdc++-v3/testsuite/48362.exe]^M
48362.gdb:5: Error in sourced command file:^M
No symbol table is loaded.  Use the "file" command.^M
skipping: 48362.gdb:5: Error in sourced command file:^M
skipping: No symbol table is loaded.  Use the "file" command.^M
UNSUPPORTED: libstdc++-prettyprinters/48362.cc


More information about the Gcc-bugs mailing list