aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2015-01-06 20:10:42 +0000
committerAndrew Turner <andrew@FreeBSD.org>2015-01-06 20:10:42 +0000
commit5667872e2f1fefd516661d6f8cf74ac37ce54285 (patch)
tree6a57fefb835538c2547d0a757438444e60de982d
parent2ce1242309d5e556642c6763ff18977727769cb0 (diff)
downloadsrc-5667872e2f1fefd516661d6f8cf74ac37ce54285.tar.gz
src-5667872e2f1fefd516661d6f8cf74ac37ce54285.zip
Add support to crunchide for handling AArch64 (arm64) ELF files.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=276764
-rw-r--r--usr.sbin/crunch/crunchide/exec_elf32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c
index e9bc22798bde..d7f45b00d40f 100644
--- a/usr.sbin/crunch/crunchide/exec_elf32.c
+++ b/usr.sbin/crunch/crunchide/exec_elf32.c
@@ -174,6 +174,10 @@ ELFNAMEEND(check)(int fd, const char *fn)
switch (xe16toh(eh.e_machine)) {
case EM_386: break;
case EM_ALPHA: break;
+#ifndef EM_AARCH64
+#define EM_AARCH64 183
+#endif
+ case EM_AARCH64: break;
#ifndef EM_ARM
#define EM_ARM 40
#endif