diff options
author | norly <ny-git@enpas.org> | 2013-06-15 21:42:53 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-06-15 22:02:26 +0100 |
commit | 825613b8e4f141a82d2b8be22d7fba68fed5ef96 (patch) | |
tree | 8ade4e195c1a77a3814c44109c4f5cc9e1a5ced7 /src/elfops | |
parent | 5868bb32246367139f0d17a989650964f90a7958 (diff) |
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.
Diffstat (limited to 'src/elfops')
-rw-r--r-- | src/elfops/check.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |