Go to file
H.J. Lu b5dcccfb12 x86/cet: Add -fcf-protection=none before -fcf-protection=branch
When shadow stack is enabled, some CET tests failed when compiled with
GCC 14:

FAIL: elf/tst-cet-legacy-4
FAIL: elf/tst-cet-legacy-5a
FAIL: elf/tst-cet-legacy-6a

which are caused by

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113039

These tests use -fcf-protection -fcf-protection=branch and assume that
-fcf-protection=branch will override -fcf-protection.  But this GCC 14
commit:

https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=1c6231c05bdcca

changed the -fcf-protection behavior such that

-fcf-protection -fcf-protection=branch

is treated the same as

-fcf-protection

Use

-fcf-protection -fcf-protection=none -fcf-protection=branch

as the workaround.  This fixes BZ #31187.

Tested with GCC 13 and GCC 14 on Intel Tiger Lake.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
2024-01-01 15:53:52 -08:00
advisories Move CVE information into advisories directory 2023-12-07 12:31:23 -05:00
argp Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
assert Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
benchtests Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
bits Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
catgets Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ChangeLog.old Create ChangeLog.old/ChangeLog.27 2023-07-30 21:45:27 +02:00
conform Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
csu Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ctype Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
debug Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
dirent Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
dlfcn Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
elf Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gmon Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gnulib Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
hesiod Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
htl Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
hurd Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconvdata Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
include Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
inet Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
intl Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
io Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libio Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
locale Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
localedata Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
login Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mach Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
malloc Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
manual Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
math Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mathvec Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
misc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nis Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptl Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nptl_db Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nscd Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nss Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
po Regenerate libc.pot 2024-01-01 21:09:13 +01:00
posix Omit regex.c pragmas no longer needed 2024-01-01 10:53:40 -08:00
resolv Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
resource Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
rt Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
scripts Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
setjmp Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
signal Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
socket Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
soft-fp Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
stdio-common Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
stdlib Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
string Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sunrpc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
support Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sysdeps x86/cet: Add -fcf-protection=none before -fcf-protection=branch 2024-01-01 15:53:52 -08:00
sysvipc Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
termios Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
time Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
timezone Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wcsmbs Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wctype Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
.clang-format Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
.gitattributes
.gitignore
abi-tags
aclocal.m4 configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
config.h.in LoongArch: Add minuimum binutils required version 2023-08-14 09:47:09 +08:00
config.make.in crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
configure Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
configure.ac crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
CONTRIBUTED-BY crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile.help Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile.in
Makerules Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
NEWS Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
o-iterator.mk
README hurd: Enable x86_64 build script 2023-05-02 21:40:36 +02:00
Rules Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
SECURITY.md Adapt the security policy for the security page 2023-12-05 09:15:10 -05:00
SHARED-FILES crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
shlib-versions crypt: Remove libcrypt support 2023-10-30 13:03:59 -03:00
test-skeleton.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
version.h Open master branch for glibc 2.39 development 2023-07-31 20:07:55 +02:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu and x86_64-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.