Basic 32-bit SYMTAB and REL (not RELA) support
[centaur.git] / src / elfops / check.c
index 2c7f040910dee5e28421e0a389867687ed867a86..6e56bae96b92008b2fe2f9cd383f8733f2abb327 100644 (file)
@@ -24,6 +24,11 @@ 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");
+    goto ERROR;
+  }
+
   if (elf_getphdrnum(e, &numPhdr)) {
     ELFU_WARNELF("elf_getphdrnum");
     goto ERROR;