X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Felf%2Friscv.h;h=5062a4998c78a57a29e277096edd22133fb76eee;hb=d768f160a99558a07a2463899c8bfeec0f0a67a7;hp=defbbf4c246c06843d4294c39072f6428d4c4dbb;hpb=219d1afa89d0d53ca93a684cac341f16470f3ca0;p=deliverable%2Fbinutils-gdb.git diff --git a/include/elf/riscv.h b/include/elf/riscv.h index defbbf4c24..5062a4998c 100644 --- a/include/elf/riscv.h +++ b/include/elf/riscv.h @@ -1,5 +1,5 @@ /* RISC-V ELF support for BFD. - Copyright (C) 2011-2018 Free Software Foundation, Inc. + Copyright (C) 2011-2020 Free Software Foundation, Inc. Contributed by Andrew Waterman (andrew@sifive.com). Based on MIPS ELF support for BFD, by Ian Lance Taylor. @@ -110,7 +110,26 @@ END_RELOC_NUMBERS (R_RISCV_max) /* File uses the quad-float ABI. */ #define EF_RISCV_FLOAT_ABI_QUAD 0x0006 +/* File uses the 32E base integer instruction. */ +#define EF_RISCV_RVE 0x0008 + /* 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 */