| GELF_GETEHDR(3) | Libelf Programmer's Manual | GELF_GETEHDR(3) |
NAME
gelf_getehdr - retrieve the header of an ELF binary as a class-independent structure
SYNOPSIS
#include <gelf.h> GElf_Ehdr *gelf_getehdr(Elf *elf, GElf_Ehdr *dest );
DESCRIPTION
gelf_getehdr() retrieve the ELF header of the binary referenced by elf as a class-independent GElf_Ehdr representation.
PARAMETERS
RETURN VALUE
On success, returns dest. On failure, returns NULL and sets elf_errno. If elf is NULL, NULL is returned and elf_errno is not set.
SEE ALSO
ATTRIBUTES
| Interface | Attribute | Value |
| gelf_getehdr () | Thread safety | MT-Safe |
REPORTING BUGS
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.
| 2025-09-14 | Libelf |