Files
libunwind/include
H.J. Lu 155b3d90f4 x86-64: Add a configure option to enable Intel CET
1. Add a configure option, --enable-cet, to compile libunwind with
   "-mshstk -fcf-protection" and link with -Wl,-z,cet-report=error.
   CET is always enabled if -fcf-protection is on by default.
2. Add a frames field to struct cursor and update unw_step to cont stack
frames to pop.
3. Update x86_64_sigreturn to pop 4 shadow stack frames.
4. Update x86_64_local_resume to pop the same number of shadow stack
frames as the regular stack frames.
5. Update _Ux86_64_setcontext to pop 2 shadow stack frames.

There are no failures with

$ ./configure --enable-cet
$ make -j12
$ GLIBC_TUNABLES=glibc.cpu.hwcaps=SHSTK make check

on Linux when shadow stack is enabled.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2025-08-25 08:27:16 -04:00
..
2023-07-05 14:03:58 -04:00
2025-06-09 13:34:11 -04:00
2025-08-07 13:18:13 -04:00
2024-04-03 13:37:43 -04:00
2025-02-25 15:55:23 -05:00
2024-01-16 09:23:10 -05:00
2020-06-04 09:02:24 -07:00
2024-04-03 13:37:43 -04:00
2025-05-14 05:52:15 -04:00
2025-06-09 13:34:11 -04:00
2023-07-05 14:03:58 -04:00
2022-05-22 10:58:11 -07:00
2023-06-15 10:43:21 -04:00
2020-06-18 13:36:48 -07:00