diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-10 22:06:51 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-10 22:06:51 +0000 |
commit | 589ff2378cad2b5b2e1664e13571747b67a5dd02 (patch) | |
tree | d2fd812a8008998b43c2678f2a13c9a6770cb72a /usr.sbin | |
parent | 8de20561d12d5af97aef21a7f381219089f823c0 (diff) | |
download | FreeBSD-src-589ff2378cad2b5b2e1664e13571747b67a5dd02.zip FreeBSD-src-589ff2378cad2b5b2e1664e13571747b67a5dd02.tar.gz |
Teach crunchide(1) about PPC ELF64.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/crunch/crunchide/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/crunch/crunchide/exec_elf32.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchide/Makefile b/usr.sbin/crunch/crunchide/Makefile index 0f85254..3e173e4 100644 --- a/usr.sbin/crunch/crunchide/Makefile +++ b/usr.sbin/crunch/crunchide/Makefile @@ -10,7 +10,7 @@ CFLAGS+=-DNLIST_AOUT SRCS+= exec_aout.c .endif -.if ${TARGET_ARCH} == ia64 || \ +.if ${TARGET_ARCH} == ia64 || ${TARGET_ARCH} == powerpc64 || \ ${TARGET_ARCH} == sparc64 || ${TARGET_ARCH} == amd64 CFLAGS+=-DNLIST_ELF64 SRCS+= exec_elf64.c diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c index 1081ad8..ed84fc4 100644 --- a/usr.sbin/crunch/crunchide/exec_elf32.c +++ b/usr.sbin/crunch/crunchide/exec_elf32.c @@ -176,6 +176,10 @@ ELFNAMEEND(check)(int fd, const char *fn) #define EM_PPC 20 #endif case EM_PPC: break; +#ifndef EM_PPC64 +#define EM_PPC64 21 +#endif + case EM_PPC64: break; #ifndef EM_SPARCV9 #define EM_SPARCV9 43 #endif |