diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/cache.c | 6 | ||||
-rw-r--r-- | elf/elf.h | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/elf/cache.c b/elf/cache.c index 1ec6ab36e7..c2c010f97b 100644 --- a/elf/cache.c +++ b/elf/cache.c @@ -114,6 +114,12 @@ print_entry (const char *lib, int flag, unsigned int osversion, case FLAG_MIPS64_LIBN64_NAN2008: fputs (",64bit,nan2008", stdout); break; + case FLAG_RISCV_FLOAT_ABI_SOFT: + fputs (",soft-float", stdout); + break; + case FLAG_RISCV_FLOAT_ABI_DOUBLE: + fputs (",double-float", stdout); + break; case 0: break; default: @@ -3766,6 +3766,14 @@ enum #define R_TILEGX_NUM 130 +/* RISC-V ELF Flags */ +#define EF_RISCV_RVC 0x0001 +#define EF_RISCV_FLOAT_ABI 0x0006 +#define EF_RISCV_FLOAT_ABI_SOFT 0x0000 +#define EF_RISCV_FLOAT_ABI_SINGLE 0x0002 +#define EF_RISCV_FLOAT_ABI_DOUBLE 0x0004 +#define EF_RISCV_FLOAT_ABI_QUAD 0x0006 + /* RISC-V relocations. */ #define R_RISCV_NONE 0 #define R_RISCV_32 1 |