check that target is ELF