Use EAFP principle for elf header parsing