Refactory to save class value in Phdr, Shdr and Ehdr. Create unions with name MalelfUEhdr, MalelfUPhdr and MalelfUShdr.