[PATCH 5/6] linux: Sync Linux 6.6 elf.h

Florian Weimer fw@deneb.enyo.de
Tue Oct 31 10:37:44 GMT 2023


* Gabriel Ravier:

> On 10/31/23 08:29, Florian Weimer wrote:
>> * Adhemerval Zanella:
>>
>>> It adds NT_X86_SHST (2fab02b25ae7cf5), NT_RISCV_CSR/NT_RISCV_VECTOR
>>> (9300f00439743c4), and NT_LOONGARCH_HW_BREAK/NT_LOONGARCH_HW_WATCH
>>> (1a69f7a161a78ae).
>>> ---
>>>   elf/elf.h | 6 ++++++
>>>   1 file changed, 6 insertions(+)
>>>
>>> diff --git a/elf/elf.h b/elf/elf.h
>>> index 73a64baa79..50b73fa329 100644
>>> --- a/elf/elf.h
>>> +++ b/elf/elf.h
>>> @@ -796,6 +796,8 @@ typedef struct
>>>   #define NT_386_TLS	0x200		/* i386 TLS slots (struct user_desc) */
>>>   #define NT_386_IOPERM	0x201		/* x86 io permission bitmap (1=deny) */
>>>   #define NT_X86_XSTATE	0x202		/* x86 extended state using xsave */
>>> +/* Old binutils treats 0x203 as a CET state */
>>> +#define NT_X86_SHST	0x204		/* x86 SHSTK state */
>>>   #define NT_S390_HIGH_GPRS	0x300	/* s390 upper register halves */
>>>   #define NT_S390_TIMER	0x301		/* s390 timer register */
>>>   #define NT_S390_TODCMP	0x302		/* s390 TOD clock comparator reg
>> That comment will be outdated soon.  I'm not sure it's helpful.
>
> For what reason will it find itself outdated ?

The binutils versions that treat this as the CET flag will age out
fairly quickly, I think.


More information about the Libc-alpha mailing list