This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/84847] [8 Regression] Incompatibility between early LTO debug and "-Wl,--gc-sections" leads to corrupt DWARF debuginfo
- From: "nickc at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Mar 2018 16:03:41 +0000
- Subject: [Bug lto/84847] [8 Regression] Incompatibility between early LTO debug and "-Wl,--gc-sections" leads to corrupt DWARF debuginfo
- Auto-submitted: auto-generated
- References: <bug-84847-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84847
--- Comment #14 from Nick Clifton <nickc at gcc dot gnu.org> ---
Created attachment 43643
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43643&action=edit
Proposed patch
Hi Guys.
Here is a possible patch, although it is a bit hackish.
Richard might not like it because it changes gcc/lto-wrapper.c rather than
the linker, but I honestly think that the linker is doing the right thing
in this case.
Cheers
Nick