https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95604
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> --- LTO should follow GNU property spec by merging GNU_PROPERTY_X86_FEATURE_1_IBT and GNU_PROPERTY_X86_FEATURE_1_SHSTK from all IR files, just like ld. The current behavior can be retained by a new option, -fcf-protection=error.