]> git.ipfire.org Git - thirdparty/gcc.git/commit
libbacktrace: Enable Intel CET on Intel CET enabled host for jit
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 12 May 2020 16:23:56 +0000 (09:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 12 May 2020 16:24:09 +0000 (09:24 -0700)
commitd21486483579c2205fcabf1308b155000af86fe1
treea5b4e18599210993422ffb62f003b72f98f97554
parentb3d16040feb2df017eb5a18ca641b06cc1ff6947
libbacktrace: 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.am (AM_CFLAGS): 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.
* Makefile.in: Regenerated.
* configure: Likewise.
libbacktrace/ChangeLog
libbacktrace/Makefile.am
libbacktrace/Makefile.in
libbacktrace/configure
libbacktrace/configure.ac