If no header exists for elf32_getehdr( ), one cannot be created for elf32_newehdr( ), a system error occurs, the file is not a 32-bit class file, or elf is null, both functions return a null pointer. For the 64-bit class, replace 32 with 64 as appropriate. The header ...
For a 32-bit class file, elf32_getehdr() returns a pointer to an ELF header, if one is available for the ELF descriptor elf. If no header exists for the descriptor,...
Elf64_Ehdr *elf64_newehdr(Elf *elf); For a 32-bit class file,elf32_getehdr()returns a pointer to an ELF header, if one is available for the ELF descriptorelf. If no header exists for the descriptor,elf32_newehdr()allocates a clean one, but it otherwise behaves the same aself...