summaryrefslogtreecommitdiff
path: root/src/elfops/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elfops/check.c')
-rw-r--r--src/elfops/check.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/elfops/check.c b/src/elfops/check.c
index 2c7f040..6e56bae 100644
--- a/src/elfops/check.c
+++ b/src/elfops/check.c
@@ -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;