new function to get the elf header for 32 and 64 bits