x86/cet: Check legacy shadow stack code in .init_array section
commit28bd6f832d4c8ec9a223c153427c1ab6fd19a548
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 22 Mar 2023 20:34:55 +0000 (22 13:34 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Dec 2023 14:57:47 +0000 (19 06:57 -0800)
tree5b62ce0ef89bce48541f976994423c4d244fdcbd
parent9424ce80c2a08f4dfc06d5442b770ed5ec798c4b
x86/cet: Check legacy shadow stack code in .init_array section

Verify that legacy shadow stack code in .init_array section in application
and shared library, which are marked as shadow stack enabled, will trigger
segfault.
sysdeps/x86/Makefile
sysdeps/x86/tst-shstk-legacy-1d-static.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1d.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1e-static.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1e-static.sh [new file with mode: 0755]
sysdeps/x86/tst-shstk-legacy-1e.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1e.sh [new file with mode: 0755]
sysdeps/x86/tst-shstk-legacy-1f.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1g.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1g.sh [new file with mode: 0755]
sysdeps/x86/tst-shstk-legacy-mod-1.c [new file with mode: 0644]