Commit a4323f2b1604c440e3049461ddab0bc0b3da447f

Frank Schaefer 2019-05-28T16:04:54

Add AArch64 ILP32 support to nlist() Closes: !7 Signed-off-by: Guillem Jover <guillem@hadrons.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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