Hi,

I have 2 patches to enable CET in libffi on users/hjl/cet/master branch at:

https://gitlab.com/x86-gcc/gcc/-/commits/users/hjl/cet/master

They use FFI_EXEC_TRAMPOLINE_TABLE to avoid changing libffi ABI.
I tested it on Tiger Lake with

CC="cc" CXX="g++"
RUNTESTFLAGS="--target_board='unix{-fcf-protection,-m32\
-fcf-protection\ -mx32\ -fcf-protection}'"
/export/gnu/import/git/gitlab/x86-gcc/configure --enable-cet
--with-demangler-in-ld  --prefix=/usr/gcc-11.0.0-cet-x32
--with-local-prefix=/usr/local --enable-gnu-indirect-function
--enable-clocale=gnu --with-system-zlib --with-target-system-zlib
--with-fpmath=sse --with-multilib-list=m32,m64,mx32
--enable-linker-build-id --enable-gnu-unique-object
--with-build-config=bootstrap-cet --with-multilib-list=m64,mx32,m32
--enable-languages=c,c++,fortran,go

Test results look reasonable.  Should I submit them for GCC 11?

-- 
H.J.

Reply via email to