diff options
author | norly <ny-git@enpas.org> | 2013-06-01 17:42:36 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-06-03 02:08:46 +0100 |
commit | d217921268e5b2d9e38023c25e55dc315b8e3263 (patch) | |
tree | 801a0e9248d071a8f7f98e1bef4d8c87692b059a /src/elfops | |
parent | 030aeb591f867263f734ca2e232c45dc98f3ec50 (diff) |
Basic 32-bit SYMTAB and REL (not RELA) support
Diffstat (limited to 'src/elfops')
-rw-r--r-- | src/elfops/check.c | 5 |
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; |