public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/fw/bug25225] x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
@ 2019-11-26 13:54 Florian Weimer
0 siblings, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2019-11-26 13:54 UTC (permalink / raw)
To: glibc-cvs
The branch 'fw/bug25225' was updated to point to:
a0dd512... x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
It previously pointed to:
d3c14ae... x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
Diff:
!!! WARNING: THE FOLLOWING COMMITS ARE NO LONGER ACCESSIBLE (LOST):
-------------------------------------------------------------------
d3c14ae... x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
commit d3c14ae0ae84cb7f851554b17493b01c933c0f31
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Nov 26 14:48:56 2019 +0100
x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
This links in CET support if GCC defaults to CET. Otherwise, __CET__
is defined, yet CET functionality is not compiled and linked into the
dynamic loader, resulting in a linker failure.
Summary of changes (added commits):
-----------------------------------
a0dd512... x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
commit a0dd512cbcc1db29b0ddce80cedadbf2c2af49b7
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Nov 26 14:48:56 2019 +0100
x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
This links in CET support if GCC defaults to CET. Otherwise, __CET__
is defined, yet CET functionality is not compiled and linked into the
dynamic loader, resulting in a linker failure due to undefined
references to _dl_cet_check and _dl_open_check.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [glibc/fw/bug25225] x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
@ 2019-11-26 13:54 Florian Weimer
0 siblings, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2019-11-26 13:54 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a0dd512cbcc1db29b0ddce80cedadbf2c2af49b7
commit a0dd512cbcc1db29b0ddce80cedadbf2c2af49b7
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Nov 26 14:48:56 2019 +0100
x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
This links in CET support if GCC defaults to CET. Otherwise, __CET__
is defined, yet CET functionality is not compiled and linked into the
dynamic loader, resulting in a linker failure due to undefined
references to _dl_cet_check and _dl_open_check.
Diff:
---
configure | 23 ++++++++++++++++++++++-
configure.ac | 9 ++++++++-
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 2f44b66..b959d2d 100755
--- a/configure
+++ b/configure
@@ -3777,11 +3777,32 @@ else
fi
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+#ifndef __CET__
+#error no CET compiler support
+#endif
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ libc_cv_compiler_default_cet=yes
+else
+ libc_cv_compiler_default_cet=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Check whether --enable-cet was given.
if test "${enable_cet+set}" = set; then :
enableval=$enable_cet; enable_cet=$enableval
else
- enable_cet=no
+ enable_cet=$libc_cv_compiler_default_cet
fi
diff --git a/configure.ac b/configure.ac
index e69c88c..49b900c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,11 +473,18 @@ AC_ARG_ENABLE([mathvec],
[build_mathvec=$enableval],
[build_mathvec=notset])
+AC_TRY_COMPILE([], [
+#ifndef __CET__
+# error no CET compiler support
+#endif],
+ [libc_cv_compiler_default_cet=yes],
+ [libc_cv_compiler_default_cet=no])
+
AC_ARG_ENABLE([cet],
AC_HELP_STRING([--enable-cet],
[enable Intel Control-flow Enforcement Technology (CET), x86 only]),
[enable_cet=$enableval],
- [enable_cet=no])
+ [enable_cet=$libc_cv_compiler_default_cet])
# We keep the original values in `$config_*' and never modify them, so we
# can write them unchanged into config.make. Everything else uses
^ permalink raw reply [flat|nested] 3+ messages in thread
* [glibc/fw/bug25225] x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
@ 2019-11-26 13:50 Florian Weimer
0 siblings, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2019-11-26 13:50 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d3c14ae0ae84cb7f851554b17493b01c933c0f31
commit d3c14ae0ae84cb7f851554b17493b01c933c0f31
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Nov 26 14:48:56 2019 +0100
x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]
This links in CET support if GCC defaults to CET. Otherwise, __CET__
is defined, yet CET functionality is not compiled and linked into the
dynamic loader, resulting in a linker failure.
Diff:
---
configure | 23 ++++++++++++++++++++++-
configure.ac | 9 ++++++++-
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 2f44b66..b959d2d 100755
--- a/configure
+++ b/configure
@@ -3777,11 +3777,32 @@ else
fi
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+#ifndef __CET__
+#error no CET compiler support
+#endif
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ libc_cv_compiler_default_cet=yes
+else
+ libc_cv_compiler_default_cet=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
# Check whether --enable-cet was given.
if test "${enable_cet+set}" = set; then :
enableval=$enable_cet; enable_cet=$enableval
else
- enable_cet=no
+ enable_cet=$libc_cv_compiler_default_cet
fi
diff --git a/configure.ac b/configure.ac
index e69c88c..49b900c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,11 +473,18 @@ AC_ARG_ENABLE([mathvec],
[build_mathvec=$enableval],
[build_mathvec=notset])
+AC_TRY_COMPILE([], [
+#ifndef __CET__
+# error no CET compiler support
+#endif],
+ [libc_cv_compiler_default_cet=yes],
+ [libc_cv_compiler_default_cet=no])
+
AC_ARG_ENABLE([cet],
AC_HELP_STRING([--enable-cet],
[enable Intel Control-flow Enforcement Technology (CET), x86 only]),
[enable_cet=$enableval],
- [enable_cet=no])
+ [enable_cet=$libc_cv_compiler_default_cet])
# We keep the original values in `$config_*' and never modify them, so we
# can write them unchanged into config.make. Everything else uses
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-26 13:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 13:54 [glibc/fw/bug25225] x86: Assume --enable-cet if GCC defaults to CET [BZ #25225] Florian Weimer
-- strict thread matches above, loose matches on Subject: below --
2019-11-26 13:54 Florian Weimer
2019-11-26 13:50 Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).