The Mach exec/elf.h pseudo-header already enumerates a handful of
machine types (PARISC, PPC, x86_64, …) but not aarch64. Add it so
exec-format code can recognise aarch64 ELF binaries by EM number.
Defined per the ARM-supplied ELF supplement (the same value Linux,
glibc, and FreeBSD have used since 2014).
---
include/mach/exec/elf.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/mach/exec/elf.h b/include/mach/exec/elf.h
index 55304496..2e13c609 100644
--- a/include/mach/exec/elf.h
+++ b/include/mach/exec/elf.h
@@ -121,6 +121,7 @@ typedef struct {
#define EM_PARISC 15
#define EM_PPC 20
#define EM_X86_64 62
+#define EM_AARCH64 183
/* version - page 4-6 */
--
2.54.0