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:
WANG Xuerui 2021-09-11 12:54:28 +08:00 committed by Guillem Jover
parent f7465b93ec
commit 15200ec7ac

View File

@ -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