]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/Makefile.in
gcc: Enable Intel CET on Intel CET enabled host for jit
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 12 May 2020 16:14:52 +0000 (09:14 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 12 May 2020 16:14:52 +0000 (09:14 -0700)
commit7e9c5bb0fd22fb4573d270de241d9b56de17f7f5
tree41e2ea871bc671a84d0f8309b86aa229bdf01d59
parentaf3bef0ea257f53e79319bc25086b8293bb27323
gcc: Enable Intel CET on Intel CET enabled host for jit

Since on Intel CET enabled host, dlopen in Intel CET enabled applications
fails on shared libraries which aren't Intel CET enabled, compile with
-fcf-protection on Intel CET enabled host when jit is enabled to enable
Intel CET on libgccjit.

* Makefile.in (CET_HOST_FLAGS): New.
(COMPILER): Add $(CET_HOST_FLAGS).
* configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
AC_SUBST(CET_HOST_FLAGS).  Clear CET_HOST_FLAGS if jit isn't
enabled.
* aclocal.m4: Regenerated.
* configure: Likewise.
gcc/ChangeLog
gcc/Makefile.in
gcc/aclocal.m4
gcc/configure
gcc/configure.ac