1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

Teach crunchide(1) about PPC ELF64.

This commit is contained in:
Nathan Whitehorn 2010-07-10 22:06:51 +00:00
parent 6dcc706bc5
commit 8a10bad25e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209889
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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