mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 04:01:10 +00:00
Add support for the RISC-V-specific ELF flags
The RISC-V port defines ELF flags that enforce compatibility between various objects. This adds the shared support necessary for these flags. 2018-01-25 Palmer Dabbelt <palmer@sifive.com> * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and FLAG_RISCV_FLOAT_ABI_DOUBLE. * elf/elf.h (EF_RISCV_RVC): New define. (EF_RISCV_FLOAT_ABI): Likewise. (EF_RISCV_FLOAT_ABI_SOFT): Likewise. (EF_RISCV_FLOAT_ABI_SINGLE): Likewise. (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise. (EF_RISCV_FLOAT_ABI_QUAD): Likewise. * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New define. (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
This commit is contained in:
parent
128c43a2d6
commit
fb58aac5fe
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
||||
2018-01-25 Palmer Dabbelt <palmer@sifive.com>
|
||||
|
||||
* elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
|
||||
FLAG_RISCV_FLOAT_ABI_DOUBLE.
|
||||
* elf/elf.h (EF_RISCV_RVC): New define.
|
||||
(EF_RISCV_FLOAT_ABI): Likewise.
|
||||
(EF_RISCV_FLOAT_ABI_SOFT): Likewise.
|
||||
(EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
|
||||
(EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
|
||||
(EF_RISCV_FLOAT_ABI_QUAD): Likewise.
|
||||
* sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
|
||||
define.
|
||||
(FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
|
||||
|
||||
2018-01-25 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
|
||||
|
@ -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
|
||||
|
@ -42,6 +42,8 @@
|
||||
#define FLAG_MIPS_LIB32_NAN2008 0x0c00
|
||||
#define FLAG_MIPS64_LIBN32_NAN2008 0x0d00
|
||||
#define FLAG_MIPS64_LIBN64_NAN2008 0x0e00
|
||||
#define FLAG_RISCV_FLOAT_ABI_SOFT 0x0f00
|
||||
#define FLAG_RISCV_FLOAT_ABI_DOUBLE 0x1000
|
||||
|
||||
/* Name of auxiliary cache. */
|
||||
#define _PATH_LDCONFIG_AUX_CACHE "/var/cache/ldconfig/aux-cache"
|
||||
|
Loading…
Reference in New Issue
Block a user