[Bug lto/93966] [9/10 Regression] -fcf-protection -flto -g don't work togeter
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 2 11:39:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93966
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to rguenther@suse.de from comment #7)
> >
> > It is because GCC 8 doesn't have early LTO debug.
>
> It does but section copying has been made more explicit about notes
> only in GCC 9 it seems.
GCC 8 has the same bug:
[hjl@gnu-cfl-2 tmp]$ /usr/gcc-8.2.1-x32/bin/gcc -flto -c -fcf-protection x.c -g
[hjl@gnu-cfl-2 tmp]$ /usr/gcc-8.2.1-x32/bin/gcc -flto -Wl,-z,cet-report=error
-fcf-protection x.o -g
/usr/local/bin/ld: /tmp/cc6vezl6debugobj: error: missing IBT and SHSTK
properties
collect2: error: ld returned 1 exit status
[hjl@gnu-cfl-2 tmp]$
More information about the Gcc-bugs
mailing list