Add NT_ARM_PAC_MASK and NT_MIPS_MSA from Linux 5.0 to elf.h
diff mbox series

Message ID alpine.DEB.2.21.1903201815590.22470@digraph.polyomino.org.uk
State New
Headers show
Series
  • Add NT_ARM_PAC_MASK and NT_MIPS_MSA from Linux 5.0 to elf.h
Related show

Commit Message

Joseph Myers March 20, 2019, 6:16 p.m. UTC
This patch adds two new NT_* macros from Linux 5.0 to elf.h.

Tested for x86_64.

2019-03-20  Joseph Myers  <joseph@codesourcery.com>

	* elf/elf.h (NT_ARM_PAC_MASK): New macro.
	(NT_MIPS_MSA): Likewise.

Comments

Gabriel F. T. Gomes March 23, 2019, 10:59 p.m. UTC | #1
On Wed, Mar 20 2019, Joseph Myers wrote:
> This patch adds two new NT_* macros from Linux 5.0 to elf.h.

$ git show v4.20:include/uapi/linux/elf.h | grep -E "NT_ARM_PAC_MASK|NT_MIPS_MSA"
$ git show v5.0:include/uapi/linux/elf.h | grep -E "NT_ARM_PAC_MASK|NT_MIPS_MSA"
#define NT_ARM_PAC_MASK		0x406	/* ARM pointer authentication code masks */
#define NT_MIPS_MSA	0x802		/* MIPS SIMD registers */

OK.

> +#define NT_ARM_PAC_MASK	0x406		/* ARM pointer authentication
> +					   code masks.  */

OK.

> +#define NT_MIPS_MSA	0x802		/* MIPS SIMD registers.  */

OK.

Reviewed-by: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>

Patch
diff mbox series

diff --git a/elf/elf.h b/elf/elf.h
index 28296c7efd..a313c24b93 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -809,9 +809,12 @@  typedef struct
 #define NT_ARM_SYSTEM_CALL	0x404	/* ARM system call number */
 #define NT_ARM_SVE	0x405		/* ARM Scalable Vector Extension
 					   registers */
+#define NT_ARM_PAC_MASK	0x406		/* ARM pointer authentication
+					   code masks.  */
 #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.  */
+#define NT_MIPS_MSA	0x802		/* MIPS SIMD registers.  */
 
 /* Legal values for the note segment descriptor types for object files.  */