From 825613b8e4f141a82d2b8be22d7fba68fed5ef96 Mon Sep 17 00:00:00 2001 From: norly Date: Sat, 15 Jun 2013 21:42:53 +0100 Subject: Basic x86-64 support, not very usable in practice Turns out that x86-64 aligns LOAD segments to 0x200000 bytes. Given that the mapping starts at 0x400000, there is not much room to expand... so there will be a need to add additional LOAD headers. --- src/elfops/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/elfops') diff --git a/src/elfops/check.c b/src/elfops/check.c index 6e56bae..e184b26 100644 --- a/src/elfops/check.c +++ b/src/elfops/check.c @@ -24,8 +24,8 @@ int elfu_eCheck(Elf *e) goto ERROR; } - if (ehdr.e_machine != EM_386) { - ELFU_WARN("Sorry, only x86-32 ELF files are supported at the moment.\n"); + if (ehdr.e_machine != EM_386 && ehdr.e_machine != EM_X86_64) { + ELFU_WARN("Sorry, only x86-32 and x86-64 ELF files are supported at the moment.\n"); goto ERROR; } -- cgit v1.2.3