public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Update RISC-V specific ELF definitions
@ 2022-05-16 13:52 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2022-05-16 13:52 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0b6c6750732483b4d59c2fcb45484079cd84157d

commit 0b6c6750732483b4d59c2fcb45484079cd84157d
Author: Andreas Schwab <schwab@suse.de>
Date:   Mon May 16 15:51:21 2022 +0200

    Update RISC-V specific ELF definitions
    
    The definitions are taken from the 1.0-rc2 version of the ELF psABI.

Diff:
---
 elf/elf.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/elf/elf.h b/elf/elf.h
index 0195029188..1c3d5ce8a2 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3927,6 +3927,8 @@ enum
 #define EF_RISCV_FLOAT_ABI_SINGLE 	0x0002
 #define EF_RISCV_FLOAT_ABI_DOUBLE 	0x0004
 #define EF_RISCV_FLOAT_ABI_QUAD 	0x0006
+#define EF_RISCV_RVE			0x0008
+#define EF_RISCV_TSO			0x0010
 
 /* RISC-V relocations.  */
 #define R_RISCV_NONE		 0
@@ -3987,6 +3989,19 @@ enum
 
 #define R_RISCV_NUM		59
 
+/* RISC-V specific values for the st_other field.  */
+#define STO_RISCV_VARIANT_CC	0x80	/* Function uses variant calling
+					   convention */
+
+/* RISC-V specific values for the sh_type field.  */
+#define SHT_RISCV_ATTRIBUTES	(SHT_LOPROC + 3)
+
+/* RISC-V specific values for the p_type field.  */
+#define PT_RISCV_ATTRIBUTES	(PT_LOPROC + 3)
+
+/* RISC-V specific values for the d_tag field.  */
+#define DT_RISCV_VARIANT_CC	(DT_LOPROC + 1)
+
 /* BPF specific declarations.  */
 
 #define R_BPF_NONE		0	/* No reloc */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-16 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16 13:52 [glibc] Update RISC-V specific ELF definitions Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).