[Bug lto/95604] LTO doesn't pick up -fcf-protection flag for the link step
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 9 12:30:22 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95604
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Matthias Klose from comment #2)
> Really? The documentation states:
>
> The macro "__CET__" is defined when -fcf-protection is used.
>
> so it's a preprocessor option as well?
__CET__ check isn't needed to enable CET in C/C++. __CET__ is needed to
add CET support to assembly codes. If there are mixed source codes,
-fcf-protection should be used for compilation.
More information about the Gcc-bugs
mailing list