Update elf_header parsing / pf with enum

Update elf_header parsing / pf with enum