]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: Add NT_X86_CET note
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Sep 2020 12:51:53 +0000 (05:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Sep 2020 12:52:06 +0000 (05:52 -0700)
Define NT_X86_CET which is the proposed note for x86 CET state to support
Intel CET in Linux kernel.  Double check it after Intel CET patches have
been merged into Linux kernel.

binutils/

* readelf.c (get_note_type): Support NT_X86_CET.

include/

* elf/common.h (NT_X86_CET): New.

binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/common.h

index a925dbbbcd58bce9964286e894d675f577a022b2..44c388a23f87cf6cbe5e1258149bb1f6db883617 100644 (file)
@@ -1,3 +1,7 @@
+2020-09-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (get_note_type): Support NT_X86_CET.
+
 2020-09-11  Nick Clifton  <nickc@redhat.com>
 
        PR 26595
index cb4208f7b96aa7291245ea508d162cceb5c8f381..95720ea05526b389e2f179e7ecb5918d35fa0285 100644 (file)
@@ -17953,6 +17953,8 @@ get_note_type (Filedata * filedata, unsigned e_type)
        return _("NT_386_IOPERM (x86 I/O permissions)");
       case NT_X86_XSTATE:
        return _("NT_X86_XSTATE (x86 XSAVE extended state)");
+      case NT_X86_CET:
+       return _("NT_X86_CET (x86 CET state)");
       case NT_S390_HIGH_GPRS:
        return _("NT_S390_HIGH_GPRS (s390 upper register halves)");
       case NT_S390_TIMER:
index cc29c6da6a9b8a83a49e4be7cd8ea01367b6b306..ac904ea0fe6c19361955429582f25227b483ed98 100644 (file)
@@ -1,3 +1,7 @@
+2020-09-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf/common.h (NT_X86_CET): New.
+
 2020-09-10  Cooper Qu  <cooper.qu@linux.alibaba.com>
 
        * opcode/csky.h (CSKY_ARCH_804): Define.
index 805058146ab10da8782b1d1db11a9f3ae2e9951c..571e21af29a3df23671d76cadbe1f362231cd804 100644 (file)
                                        /*   note name must be "LINUX".  */
 #define NT_X86_XSTATE  0x202           /* x86 XSAVE extended state */
                                        /*   note name must be "LINUX".  */
+#define NT_X86_CET     0x203           /* x86 CET state.  */
+                                       /*   note name must be "LINUX".  */
 #define NT_S390_HIGH_GPRS 0x300                /* S/390 upper halves of GPRs  */
                                        /*   note name must be "LINUX".  */
 #define NT_S390_TIMER  0x301           /* S390 timer */