glibc/sysdeps
H.J. Lu 9e38f455a6 x86: Add --enable-cet=permissive
When CET is enabled, it is an error to dlopen a non CET enabled shared
library in CET enabled application.  It may be desirable to make CET
permissive, that is disable CET when dlopening a non CET enabled shared
library.  With the new --enable-cet=permissive configure option, CET is
disabled when dlopening a non CET enabled shared library.

Add DEFAULT_DL_X86_CET_CONTROL to config.h.in:

 /* The default value of x86 CET control.  */
 #define DEFAULT_DL_X86_CET_CONTROL cet_elf_property

which enables CET features based on ELF property note.

--enable-cet=permissive it to

 /* The default value of x86 CET control.  */
 #define DEFAULT_DL_X86_CET_CONTROL cet_permissive

which enables CET features permissively.

Update tst-cet-legacy-5a, tst-cet-legacy-5b, tst-cet-legacy-6a and
tst-cet-legacy-6b to check --enable-cet and --enable-cet=permissive.
2020-05-18 08:38:53 -07:00
..
aarch64 aarch64: fix strcpy and strnlen for big-endian [BZ #25824] 2020-05-15 12:15:56 +01:00
alpha
arm arm: XFAIL string/tst-memmove-overflow due to bug 25620 2020-05-13 16:48:26 +02:00
csky semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
generic
gnu
hppa semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
htl
hurd
i386 x86: Move CET control to _dl_x86_feature_control [BZ #25887] 2020-05-18 06:15:02 -07:00
ia64 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
ieee754
m68k
mach Remove NO_CTORS_DTORS_SECTIONS macro 2020-05-18 15:39:34 +02:00
microblaze semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
mips
nios2 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
nptl
posix
powerpc powerpc: Optimized stpcpy for POWER9 2020-05-18 08:26:22 -05:00
pthread
riscv semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
s390 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
sh semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
sparc semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
unix x86: Add --enable-cet=permissive 2020-05-18 08:38:53 -07:00
wordsize-32
wordsize-64
x86 x86: Add --enable-cet=permissive 2020-05-18 08:38:53 -07:00
x86_64 Linux: Remove remnants of the getcpu cache 2020-05-16 15:47:51 +02:00