Commit f8d52ead5e913a74a44351f7a805987bfda0ac18

Guillem Jover 2012-11-23T18:33:23

Add x32 support to nlist()

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 37e9146..3f935ac 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -46,7 +46,11 @@
 #elif defined(__amd64__)
 
 #define ELF_TARG_MACH	EM_X86_64
+#if defined(__ILP32__)
+#define ELF_TARG_CLASS	ELFCLASS32
+#else
 #define ELF_TARG_CLASS	ELFCLASS64
+#endif
 #define ELF_TARG_DATA	ELFDATA2LSB
 
 #elif defined(__arm__)