Basic x86-64 support, not very usable in practice
[centaur.git] / src / elfops / check.c
index 6e56bae96b92008b2fe2f9cd383f8733f2abb327..e184b268493f83460f09178d1ecf40247327db17 100644 (file)
@@ -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;
   }