x86: Add NT_X86_SHSTK note
authorSchimpe, Christina <christina.schimpe@intel.com>
Wed, 27 Dec 2023 14:19:21 +0000 (14:19 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 28 Dec 2023 15:51:14 +0000 (07:51 -0800)
commiteccdc733a50980adc99178645ea4d5c2949c7e90
treedb3b759f9da869fb51e9aec62245301c58e39cb2
parentcca90632f83d47bc7f913e098c4531e52327d272
x86: Add NT_X86_SHSTK note

Define NT_X86_SHSTK which is the note for x86 Shadow Stack (SHSTK) to
support Intel SHSTK in Linux kernel.
For now only userspace shadow stack and kernel IBT are supported by the
linux kernel.  This note should be used instead of NT_X86_CET introduced
in the commit "x86: Add NT_X86_CET note", as it is outdated and only
used by old binutils versions.
binutils/readelf.c
include/elf/common.h