AArch64: Linker64 support for AArch64

Addition of support for AArch64 in the linker64 target.

Change-Id: I8dfd9711278f6706063e91f626b6007ea7a3dd6e
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
This commit is contained in:
Marcus Oakland
2013-10-10 15:19:31 +01:00
committed by Elliott Hughes
parent 2e3826c081
commit e365f9d654
8 changed files with 264 additions and 23 deletions

View File

@@ -29,6 +29,7 @@
#include "linker_phdr.h"
#include <errno.h>
#include <machine/exec.h>
#include <sys/mman.h>
#include "linker.h"
@@ -201,17 +202,7 @@ bool ElfReader::VerifyElfHeader() {
return false;
}
if (header_.e_machine !=
#if defined(__arm__)
EM_ARM
#elif defined(__i386__)
EM_386
#elif defined(__mips__)
EM_MIPS
#elif defined(__x86_64__)
EM_X86_64
#endif
) {
if (header_.e_machine != ELF_TARG_MACH) {
DL_ERR("\"%s\" has unexpected e_machine: %d", name_, header_.e_machine);
return false;
}