bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/32506] removed functions showing up in objdump listing and


From: rguenth at gcc dot gnu.org
Subject: [Bug binutils/32506] removed functions showing up in objdump listing and gdb
Date: Tue, 07 Jan 2025 08:41:30 +0000

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
It seems to be a design decision for --gc-sections to ignore uses in debug info
relocations.  The alternative would be to not GC sections that are still
referenced from debug info or to remove debug info alltogether once any
referenced section is removed (debug info after all is not "used").

The other alternative is to try produce multiple DWARF CUs from the compiler,
one for each text section emitted.  You can possibly "emulate" this by
compiling each TU with LTO and link it with -flinker-output=nolto-rel
-flto-partition=max and hack lto-wrapper (from GCC) to _not_ partially
link the LTRANS objects but put them into an archive.  That would get you
-ffunction-sections by means of one object file per function (each with
separate debug info).

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