[PATCH] x86: Add NT_X86_CET note

H.J. Lu hjl.tools@gmail.com
Fri Sep 11 12:49:30 GMT 2020


On Thu, Sep 10, 2020 at 3:57 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Thu, Sep 10, 2020 at 3:53 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> >
> >         * readelf.c (get_note_type): Support NT_X86_CET.
> > ---
> >  binutils/readelf.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/binutils/readelf.c b/binutils/readelf.c
> > index cb4208f7b9..95720ea055 100644
> > --- a/binutils/readelf.c
> > +++ b/binutils/readelf.c
> > @@ -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:
> > --
> > 2.26.2
> >
>
> Never mind.  This needs NT_X86_CET from the kernel.

Here is the patch I am checking in.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Add-NT_X86_CET-note.patch
Type: text/x-patch
Size: 1682 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200911/832cc8cd/attachment.bin>


More information about the Binutils mailing list