mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
Sync config and libiberty with GCC
config/ PR bootstrap/94998 * cet.m4 (GCC_CET_HOST_FLAGS): Enable CET in cross compiler if possible. libiberty/ PR bootstrap/94998 * configure: Regenerated.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
Sync with GCC
|
||||||
|
2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR bootstrap/94998
|
||||||
|
* cet.m4 (GCC_CET_HOST_FLAGS): Enable CET in cross compiler if
|
||||||
|
possible.
|
||||||
|
|
||||||
2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
|
2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
Sync with GCC
|
Sync with GCC
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ if test x$may_have_cet = xyes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$may_have_cet = xyes; then
|
if test x$may_have_cet = xyes; then
|
||||||
|
if test x$cross_compiling = xno; then
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
static void
|
static void
|
||||||
foo (void)
|
foo (void)
|
||||||
@@ -144,6 +145,11 @@ main ()
|
|||||||
AC_MSG_ERROR([Intel CET must be enabled on Intel CET enabled host])
|
AC_MSG_ERROR([Intel CET must be enabled on Intel CET enabled host])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# Enable CET in cross compiler if possible so that it will run on both
|
||||||
|
# CET and non-CET hosts.
|
||||||
|
have_cet=yes
|
||||||
|
fi
|
||||||
if test x$enable_cet = xyes; then
|
if test x$enable_cet = xyes; then
|
||||||
$1="-fcf-protection"
|
$1="-fcf-protection"
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR bootstrap/94998
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
|
2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR bootstrap/94739
|
PR bootstrap/94739
|
||||||
|
|||||||
6
libiberty/configure
vendored
6
libiberty/configure
vendored
@@ -5375,6 +5375,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$may_have_cet = xyes; then
|
if test x$may_have_cet = xyes; then
|
||||||
|
if test x$cross_compiling = xno; then
|
||||||
if test "$cross_compiling" = yes; then :
|
if test "$cross_compiling" = yes; then :
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
@@ -5424,6 +5425,11 @@ fi
|
|||||||
as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
|
as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# Enable CET in cross compiler if possible so that it will run on both
|
||||||
|
# CET and non-CET hosts.
|
||||||
|
have_cet=yes
|
||||||
|
fi
|
||||||
if test x$enable_cet = xyes; then
|
if test x$enable_cet = xyes; then
|
||||||
CET_HOST_FLAGS="-fcf-protection"
|
CET_HOST_FLAGS="-fcf-protection"
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
|||||||
Reference in New Issue
Block a user