RISC-V: Support ELF attribute for gas and readelf.
[deliverable/binutils-gdb.git] / include / elf / riscv.h
index 7b10929443a17f4404a73925e67d15cfb519e0e9..2f98aa4a3e07eb49fa58a76fdd6aba41f27d6fc2 100644 (file)
@@ -116,4 +116,20 @@ END_RELOC_NUMBERS (R_RISCV_max)
 /* The name of the global pointer symbol.  */
 #define RISCV_GP_SYMBOL "__global_pointer$"
 
+/* Additional section types.  */
+#define SHT_RISCV_ATTRIBUTES   0x70000003  /* Section holds attributes.  */
+
+/* Object attributes.  */
+
+enum
+{
+  /* 0-3 are generic.  */
+  Tag_RISCV_stack_align = 4,
+  Tag_RISCV_arch = 5,
+  Tag_RISCV_unaligned_access = 6,
+  Tag_RISCV_priv_spec = 8,
+  Tag_RISCV_priv_spec_minor = 10,
+  Tag_RISCV_priv_spec_revision = 12
+};
+
 #endif /* _ELF_RISCV_H */
This page took 0.024076 seconds and 4 git commands to generate.