projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
config
/
cet.m4
diff --git
a/config/cet.m4
b/config/cet.m4
index d9608699cd521a72e38a1e6184ffbd1862b4622b..2bb2c8a95ac1b59f83ef6376f7de7b90b077e342 100644
(file)
--- a/
config/cet.m4
+++ b/
config/cet.m4
@@
-3,7
+3,7
@@
dnl GCC_CET_FLAGS
dnl (SHELL-CODE_HANDLER)
dnl
AC_DEFUN([GCC_CET_FLAGS],[dnl
dnl (SHELL-CODE_HANDLER)
dnl
AC_DEFUN([GCC_CET_FLAGS],[dnl
-GCC_ENABLE(cet,
n
o, ,[enable Intel CET in target libraries],
+GCC_ENABLE(cet,
aut
o, ,[enable Intel CET in target libraries],
permit yes|no|auto)
AC_MSG_CHECKING([for CET support])
permit yes|no|auto)
AC_MSG_CHECKING([for CET support])
@@
-13,6
+13,8
@@
case "$host" in
auto)
# Check if target supports multi-byte NOPs
# and if assembler supports CET insn.
auto)
# Check if target supports multi-byte NOPs
# and if assembler supports CET insn.
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -fcf-protection"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[],
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[],
@@
-25,6
+27,7
@@
asm ("setssbsy");
])],
[enable_cet=yes],
[enable_cet=no])
])],
[enable_cet=yes],
[enable_cet=no])
+ CFLAGS="$save_CFLAGS"
;;
yes)
# Check if assembler supports CET.
;;
yes)
# Check if assembler supports CET.
This page took
0.025746 seconds
and
4
git commands to generate.