diff options
author | emaste <emaste@FreeBSD.org> | 2015-04-30 23:48:05 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-04-30 23:48:05 +0000 |
commit | e3abac9f7900a923ba54ed00ddfa73125fb9e6cf (patch) | |
tree | e5000bcc492d1496b3cb1e07d1a7b1743421e59d | |
parent | 57aa3b3dc8ffbd168bff67fe51d67549d30795bc (diff) | |
download | FreeBSD-src-e3abac9f7900a923ba54ed00ddfa73125fb9e6cf.zip FreeBSD-src-e3abac9f7900a923ba54ed00ddfa73125fb9e6cf.tar.gz |
crunchide: Restore local EM_AARCH64 constant for bootstrapping
Most of the EM_* constants are available in all supported host branches,
but EM_AARCH64 was added relatively recently. Add it back to fix
building HEAD on 10.x.
Noticed by: adrian, jmallett
-rw-r--r-- | usr.sbin/crunch/crunchide/exec_elf32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c index 61375ea..89080e9 100644 --- a/usr.sbin/crunch/crunchide/exec_elf32.c +++ b/usr.sbin/crunch/crunchide/exec_elf32.c @@ -178,6 +178,9 @@ 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; case EM_ARM: break; case EM_MIPS: break; |