[Bug target/83087] -fcf-protection -mcet enabled unconditionally for target libs

igor.v.tsimbalist at intel dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 21 12:30:00 GMT 2017


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

--- Comment #7 from igor.v.tsimbalist at intel dot com ---
(In reply to Jakub Jelinek from comment #5)
> My understanding has been that the CET stuff is essentially ABI incompatible
> (CET enabled libraries/binaries vs. non-CET enabled ones) on CET HW, so it
> should be better treated like a multilib.
> So, unless everything on the system is CET enabled, putting the CET support
> in is just waste of I-cache.

It's completely ABI compatible. ABI has not changed. You can mix object files.
But it's true that an app is CET enabled if all object files and libraries
linked in the app are CET enabled.

Code size should increased insignificantly, I do not have numbers right away. I
can collect it for the target libraries and post it here.


More information about the Gcc-bugs mailing list