|
NAMEelf32_newphdr , elf64_newphdr ,
gelf_newphdr —
allocate an ELF program header table
LIBRARYELF Access Library (libelf, -lelf)SYNOPSIS#include <libelf.h>
Elf32_Phdr *
Elf64_Phdr *
void *
DESCRIPTIONThese functions allocate an ELF Program Header table for an ELF descriptor. Elf32_Phdr and Elf64_Phdr descriptors are described further in elf(5).Functions Function The functions set the After a successful call to these functions, the pointer returned
by a prior call to RETURN VALUESThe functions a valid pointer if successful, or NULL in case an error was encountered.COMPATIBILITYThegelf_newphdr () function uses a type of
void * for its returned value. This differs from some
other implementations of the
elf(3) API,
which use an unsigned long return type.
ERRORSThese functions may fail with the following errors:
SEE ALSOelf(3), elf32_getphdr(3), elf32_newehdr(3), elf64_getphdr(3), elf64_newehdr(3), elf_flagphdr(3), elf_getphnum(3), gelf(3), gelf_getphdr(3), gelf_newehdr(3), elf(5)
Visit the GSP FreeBSD Man Page Interface. |