[RFC PATCH 05/18] mach: add EM_AARCH64 to the ELF machine constant list

Paulo Duarte <[email protected]>
Newsgroups gmane.os.hurd.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.