Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work first
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 28 Apr 2020 12:42:34 +0000 (05:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 28 Apr 2020 12:42:50 +0000 (05:42 -0700)
commiteedc73a224df61694fe4802ddec8eb9ad1822f32
treeec0322655b95f987b4cc5557775e4400d6a8a6dc
parent34f6b14ff33e0c64b3a4a1a2cd871df715d69151
Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work first

GCC_CET_HOST_FLAGS uses -Wl,-z,ibt,-z,shstk to check if Linux/x86 host
has Intel CET enabled by introducing an Intel CET violation on purpose.
To avoid false positive, check whether -Wl,-z,ibt,-z,shstk works first.
-fcf-protection=none is added to avoid false negative when -fcf-protection
is enabled by default.

config/

PR bootstrap/94739
* cet.m4 (GCC_CET_HOST_FLAGS): Add -fcf-protection=none to
-Wl,-z,ibt,-z,shstk.  Check whether -fcf-protection=none
-Wl,-z,ibt,-z,shstk works first.

libiberty/

PR bootstrap/94739
* configure: Regenerated.

lto-plugin/

PR bootstrap/94739
* configure: Regenerated.
config/ChangeLog
config/cet.m4
libiberty/ChangeLog
libiberty/configure
lto-plugin/ChangeLog
lto-plugin/configure