aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-01-03 12:09:23 -0800
committerH.J. Lu <hjl.tools@gmail.com>2024-01-04 06:08:55 -0800
commitbbfb54930cdd85269504a34b362e77a3ac2a207a (patch)
tree1e6790858eae27d2762760ca2a3315db2afa8f17 /sysdeps/i386
parent0d4a2f3576ebd92ca0001645a533bf70289f264e (diff)
downloadglibc-bbfb54930cdd85269504a34b362e77a3ac2a207a.zip
glibc-bbfb54930cdd85269504a34b362e77a3ac2a207a.tar.gz
glibc-bbfb54930cdd85269504a34b362e77a3ac2a207a.tar.bz2
i386: Ignore --enable-cet
Since shadow stack is only supported for x86-64, ignore --enable-cet for i386. Always setting $(enable-cet) for i386 to "no" to support ifneq ($(enable-cet),no) in x86 Makefiles. We can't use ifeq ($(enable-cet),yes) since $(enable-cet) can be "yes", "no" or "permissive". Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/configure5
-rw-r--r--sysdeps/i386/configure.ac4
2 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure
index f5c3a28..cd63d31 100644
--- a/sysdeps/i386/configure
+++ b/sysdeps/i386/configure
@@ -1,6 +1,11 @@
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/i386.
+# CET is only supported for x86-64. Set enable-cet to "no" to allow
+# "ifneq ($(enable-cet),no)" in x86 Makefiles.
+config_vars="$config_vars
+enable-cet = "no""
+
# We no longer support i386 since it lacks the atomic instructions
# required to implement NPTL threading.
if test "$config_machine" = i386; then
diff --git a/sysdeps/i386/configure.ac b/sysdeps/i386/configure.ac
index 234ef24..b7d9436 100644
--- a/sysdeps/i386/configure.ac
+++ b/sysdeps/i386/configure.ac
@@ -1,6 +1,10 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/i386.
+# CET is only supported for x86-64. Set enable-cet to "no" to allow
+# "ifneq ($(enable-cet),no)" in x86 Makefiles.
+LIBC_CONFIG_VAR([enable-cet], ["no"])
+
# We no longer support i386 since it lacks the atomic instructions
# required to implement NPTL threading.
if test "$config_machine" = i386; then