parse parts of the elf header