Add NT_ARM_PAC_ENABLED_KEYS to elf.h

Message ID alpine.DEB.2.22.394.2107081656280.741066@digraph.polyomino.org.uk
State Committed
Commit bba4383c6b4db09c84c7a194b5e80978e6c44ee5
Headers
Series Add NT_ARM_PAC_ENABLED_KEYS to elf.h |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Joseph Myers July 8, 2021, 4:56 p.m. UTC
  This patch adds the new NT_ARM_PAC_ENABLED_KEYS constant from Linux
5.13 to glibc's elf.h.

Tested for x86_64.
  

Comments

Adhemerval Zanella Netto July 8, 2021, 5:34 p.m. UTC | #1
On 08/07/2021 13:56, Joseph Myers wrote:
> This patch adds the new NT_ARM_PAC_ENABLED_KEYS constant from Linux
> 5.13 to glibc's elf.h.
> 
> Tested for x86_64.

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> 
> diff --git a/elf/elf.h b/elf/elf.h
> index 2a62b98d4a..4738dfa28f 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -816,6 +816,8 @@ typedef struct
>  					   generic key.  */
>  #define NT_ARM_TAGGED_ADDR_CTRL	0x409	/* AArch64 tagged address
>  					   control.  */
> +#define NT_ARM_PAC_ENABLED_KEYS	0x40a	/* AArch64 pointer authentication
> +					   enabled keys.  */
>  #define NT_VMCOREDD	0x700		/* Vmcore Device Dump Note.  */
>  #define NT_MIPS_DSP	0x800		/* MIPS DSP ASE registers.  */
>  #define NT_MIPS_FP_MODE	0x801		/* MIPS floating-point mode.  */
>
  

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 2a62b98d4a..4738dfa28f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -816,6 +816,8 @@  typedef struct
 					   generic key.  */
 #define NT_ARM_TAGGED_ADDR_CTRL	0x409	/* AArch64 tagged address
 					   control.  */
+#define NT_ARM_PAC_ENABLED_KEYS	0x40a	/* AArch64 pointer authentication
+					   enabled keys.  */
 #define NT_VMCOREDD	0x700		/* Vmcore Device Dump Note.  */
 #define NT_MIPS_DSP	0x800		/* MIPS DSP ASE registers.  */
 #define NT_MIPS_FP_MODE	0x801		/* MIPS floating-point mode.  */