elf: warn instead of error on invalid elf header fields