From a4323f2b1604c440e3049461ddab0bc0b3da447f Mon Sep 17 00:00:00 2001 From: Frank Schaefer Date: Tue, 28 May 2019 16:04:54 -0500 Subject: [PATCH] Add AArch64 ILP32 support to nlist() Closes: !7 Signed-off-by: Guillem Jover --- src/local-elf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/local-elf.h b/src/local-elf.h index 9e075cf..122601b 100644 --- a/src/local-elf.h +++ b/src/local-elf.h @@ -74,7 +74,11 @@ #elif defined(__aarch64__) #define ELF_TARG_MACH EM_AARCH64 +#if defined(__ILP32__) +#define ELF_TARG_CLASS ELFCLASS32 +#else #define ELF_TARG_CLASS ELFCLASS64 +#endif #if defined(__AARCH64EB__) #define ELF_TARG_DATA ELFDATA2MSB #else