mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-23 10:36:42 +01:00
Add LoongArch support to nlist()
Closes: !13 Signed-off-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
parent
f7465b93ec
commit
15200ec7ac
@ -124,6 +124,16 @@
|
||||
#define ELF_TARG_CLASS ELFCLASS64
|
||||
#define ELF_TARG_DATA ELFDATA2LSB
|
||||
|
||||
#elif defined(__loongarch__)
|
||||
|
||||
#define ELF_TARG_MACH EM_LOONGARCH
|
||||
#if defined(__loongarch64)
|
||||
#define ELF_TARG_CLASS ELFCLASS64
|
||||
#else
|
||||
#error Unsupported ELF class
|
||||
#endif
|
||||
#define ELF_TARG_DATA ELFDATA2LSB
|
||||
|
||||
#elif defined(__m32r__)
|
||||
|
||||
#define ELF_TARG_MACH EM_M32R
|
||||
|
Loading…
x
Reference in New Issue
Block a user