]> sourceware.org Git - glibc.git/commit - INSTALL
x86: Add --enable-cet=permissive
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 27 Apr 2020 22:44:07 +0000 (15:44 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 18 May 2020 15:38:53 +0000 (08:38 -0700)
commit9e38f455a6c602be86b7b5a8d6523cbdcd7ec051
tree3fa62a570dd9ae651db62b21231a63358bd66edf
parentce12fc711387375d0248ab3ff9084fb958c43bc6
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.
INSTALL
config.h.in
manual/install.texi
sysdeps/unix/sysv/linux/x86/Makefile
sysdeps/x86/Makefile
sysdeps/x86/configure
sysdeps/x86/configure.ac
sysdeps/x86/dl-procruntime.c
sysdeps/x86/tst-cet-legacy-5.c
sysdeps/x86/tst-cet-legacy-6.c
This page took 0.043837 seconds and 5 git commands to generate.