diff mbox

Add new ELF note types from Linux 4.19 to elf.h

Message ID alpine.DEB.2.21.1810241720260.4633@digraph.polyomino.org.uk
State Committed
Headers show

Commit Message

Joseph Myers Oct. 24, 2018, 5:20 p.m. UTC
This patch adds NT_MIPS_DSP and NT_MIPS_FP_MODE from Linux 4.19 to
elf.h.

Tested for x86_64.

2018-10-24  Joseph Myers  <joseph@codesourcery.com>

	* elf/elf.h (NT_MIPS_DSP): New macro.
	(NT_MIPS_FP_MODE): Likewise.

Comments

Florian Weimer Oct. 25, 2018, 9:15 a.m. UTC | #1
* Joseph Myers:

> +#define NT_MIPS_DSP	0x800		/* MIPS DSP ASE registers.  */
> +#define NT_MIPS_FP_MODE	0x801		/* MIPS floating-point mode.  */

Looks good to me.  Values match what's in the kernel sources.

Thanks,
Florian
diff mbox

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 226e53842e..69ffa2ec0e 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -809,6 +809,8 @@  typedef struct
 #define NT_ARM_SVE	0x405		/* ARM Scalable Vector Extension
 					   registers */
 #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.  */
 
 /* Legal values for the note segment descriptor types for object files.  */