[PATCH 09/22] Enable building libbacktrace with Intel CET

Ian Lance Taylor ian@airs.com
Thu Oct 12 23:59:00 GMT 2017


"Tsimbalist, Igor V" <igor.v.tsimbalist@intel.com> writes:

> Enable building libbacktrace with CET options.
>
> libbacktrace/
> 	* configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
> 	* aclocal.m4: Regenerate.
> 	* Makefile.in: Likewise.
> 	* configure: Likewise.

> +if test x$enable_cet = xyes; then
> +  CET_FLAGS="-fcf-protection -mcet -include cet.h"
> +fi

Is this really right?  Why the -include option?  CET protection sounds
like it should work for any language, but -include is C-specific and
doesn't seem to have anything to do with code generation.

Of course, for libbacktrace, that is a generated file.  The patch to
libbacktrace/configure.ac is fine if the general approach is approved.

Ian



More information about the Gcc-patches mailing list