mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
Add support for RISC-V
This commit is contained in:
parent
b2b1020d8e
commit
088f147ec8
@ -152,6 +152,18 @@
|
||||
#define ELF_TARG_CLASS ELFCLASS64
|
||||
#define ELF_TARG_DATA ELFDATA2MSB
|
||||
|
||||
#elif defined(__riscv)
|
||||
|
||||
#define ELF_TARG_MACH EM_RISCV
|
||||
#if __riscv_xlen == 32
|
||||
#define ELF_TARG_CLASS ELFCLASS32
|
||||
#elif __riscv_xlen == 64
|
||||
#define ELF_TARG_CLASS ELFCLASS64
|
||||
#else
|
||||
#error Unsupported ELF class
|
||||
#endif
|
||||
#define ELF_TARG_DATA ELFDATA2LSB
|
||||
|
||||
#elif defined(__sparc__)
|
||||
|
||||
#if defined(__arch64__)
|
||||
|
Loading…
Reference in New Issue
Block a user