i386: Fail if configured with --enable-cet

Since it is only supported for x86_64.

Checked on i686-linux-gnu.
This commit is contained in:
Adhemerval Zanella 2024-01-05 10:41:03 -03:00
parent 25f1e16ef0
commit a0cfc48e8a
5 changed files with 12 additions and 13 deletions

View File

@ -147,8 +147,7 @@ if CFLAGS is specified it must enable optimization. For example:
--enable-cet=permissive, CET is disabled when dlopening a non CET --enable-cet=permissive, CET is disabled when dlopening a non CET
enabled shared library in CET enabled application. enabled shared library in CET enabled application.
NOTE: --enable-cet has been tested for x86_64 and x32 on non-CET NOTE: --enable-cet is only supported on x86_64 and x32.
and CET processors.
--enable-memory-tagging --enable-memory-tagging
Enable memory tagging support if the architecture supports it. Enable memory tagging support if the architecture supports it.

4
NEWS
View File

@ -9,8 +9,8 @@ Version 2.39
Major new features: Major new features:
* Sync with Linux kernel 6.6 shadow stack interface. Since only x86-64 * Sync with Linux kernel 6.6 shadow stack interface. The --enable-cet
is supported, --enable-cet is ignored for i386. configure option in only supported on x86-64.
* struct statvfs now has an f_type member, equal to the f_type statfs member; * struct statvfs now has an f_type member, equal to the f_type statfs member;
on the Hurd this was always available under a reserved name, on the Hurd this was always available under a reserved name,

View File

@ -175,8 +175,7 @@ enabled shared library in CET enabled application. With
@option{--enable-cet=permissive}, CET is disabled when dlopening a @option{--enable-cet=permissive}, CET is disabled when dlopening a
non CET enabled shared library in CET enabled application. non CET enabled shared library in CET enabled application.
NOTE: @option{--enable-cet} has been tested for x86_64 and x32 NOTE: @option{--enable-cet} is only supported on x86_64 and x32.
on non-CET and CET processors.
@item --enable-memory-tagging @item --enable-memory-tagging
Enable memory tagging support if the architecture supports it. When Enable memory tagging support if the architecture supports it. When

View File

@ -1,10 +1,10 @@
# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/i386. # Local configure fragment for sysdeps/i386.
# CET is only supported for x86-64. Set enable-cet to "no" to allow # CET is only supported for x86-64.
# "ifneq ($(enable-cet),no)" in x86 Makefiles. if test $enable_cet != no; then
config_vars="$config_vars as_fn_error $? "\"CET is only supported on x86_64 or x32\"" "$LINENO" 5
enable-cet = "no"" fi
# We no longer support i386 since it lacks the atomic instructions # We no longer support i386 since it lacks the atomic instructions
# required to implement NPTL threading. # required to implement NPTL threading.

View File

@ -1,9 +1,10 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/i386. # Local configure fragment for sysdeps/i386.
# CET is only supported for x86-64. Set enable-cet to "no" to allow # CET is only supported for x86-64.
# "ifneq ($(enable-cet),no)" in x86 Makefiles. if test $enable_cet != no; then
LIBC_CONFIG_VAR([enable-cet], ["no"]) AC_MSG_ERROR(["CET is only supported on x86_64 or x32"])
fi
# We no longer support i386 since it lacks the atomic instructions # We no longer support i386 since it lacks the atomic instructions
# required to implement NPTL threading. # required to implement NPTL threading.