unsigned long gelf_newphdr(Elf *elf, size_t phnum) { if (!valid_class(elf->e_class)) { seterr(ERROR_UNKNOWN_CLASS); return 0; } return (unsigned long)_elf_newphdr(elf, phnum, elf->e_class); }
Elf64_Phdr* elf64_newphdr(Elf *elf, size_t count) { return (Elf64_Phdr*)_elf_newphdr(elf, count, ELFCLASS64); }
Elf32_Phdr* elf32_newphdr(Elf *elf, size_t count) { return (Elf32_Phdr*)_elf_newphdr(elf, count, ELFCLASS32); }