[Bug lto/93966] [9/10 Regression] -fcf-protection -flto -g don't work togeter
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 2 08:24:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93966
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |9.3
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Isn't this a linker bug? There's no code sections in the debug object.
Also you need to provide -fcf-protection at compile-time as well, not
only at link-time (technically only at compile-time). Otherwise success
is not guaranteed.
I'm not aware why it should work with GCC 8 btw.
More information about the Gcc-bugs
mailing list