diff mbox series

Add NT_LOONGARCH_* from Linux 5.19 to elf.h

Message ID alpine.DEB.2.22.394.2208171912460.417173@digraph.polyomino.org.uk
State New
Headers show
Series Add NT_LOONGARCH_* from Linux 5.19 to elf.h | expand

Commit Message

Joseph Myers Aug. 17, 2022, 7:13 p.m. UTC
Add the new NT_LOONGARCH_* constants from Linux 5.19 to glibc's elf.h.

Tested for x86_64.

Comments

Joseph Myers Aug. 24, 2022, 5:48 p.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/pipermail/libc-alpha/2022-August/141482.html> is 
pending review.
Andreas Schwab Aug. 24, 2022, 6:06 p.m. UTC | #2
On Aug 17 2022, Joseph Myers wrote:

> Add the new NT_LOONGARCH_* constants from Linux 5.19 to glibc's elf.h.

Ok.
diff mbox series

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 8d1c7fe7e6..065deca83c 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -830,6 +830,15 @@  typedef struct
 #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.  */
+#define NT_LOONGARCH_CPUCFG	0xa00	/* LoongArch CPU config registers.  */
+#define NT_LOONGARCH_CSR	0xa01	/* LoongArch control and
+					   status registers.  */
+#define NT_LOONGARCH_LSX	0xa02	/* LoongArch Loongson SIMD
+					   Extension registers.  */
+#define NT_LOONGARCH_LASX	0xa03	/* LoongArch Loongson Advanced
+					   SIMD Extension registers.  */
+#define NT_LOONGARCH_LBT	0xa04	/* LoongArch Loongson Binary
+					   Translation registers.  */
 
 /* Legal values for the note segment descriptor types for object files.  */