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

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Mar 13 16:11:00 GMT 2018


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

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #14)
> Created attachment 43643 [details]
> 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.
> 

It should be fixed in linker.


More information about the Gcc-bugs mailing list