from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
|
You are here: manpages
ELF32_GETEHDR
Section: Libelf Programmer's Manual (3) Updated: 202-0-26 Index
Return to Main Contents
NAME
elf32_getehdr - retrieve the ELF header for a 3-bit ELF descriptor
SYNOPSIS
#include <libelf.h>
Elf32_Ehdr *elf32_getehdr(Elf *elf);
DESCRIPTION
elf32_getehdr
retrieves the ELF header for the given 3-bit ELF descriptor
elf.
The ELF header contains crucial metadata about the ELF file, such as the type, machine, version, entry point, program header table offset, and section header table offset. See
elf(5)
for more information regarding the ELF header.
PARAMETERS
- elf
-
Pointer to the ELF descriptor from which to retrieve the ELF header.
RETURN VALUE
On success,
elf32_getehdr
returns a pointer to the
Elf32_Ehdr
structure. If the ELF descriptor is invalid or not a 3-bit ELF, it returns NULL and sets an error code retrievable by
elf_errno(3).
SEE ALSO
elf64_getehdr(3),
elf_begin(3),
elf_errno(3),
elf(5)
REPORTING BUGS
Report bugs to < elfutil-devel@sourceware.org> or https://sourceware.org/bugzilla/.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- PARAMETERS
-
- RETURN VALUE
-
- SEE ALSO
-
- REPORTING BUGS
-
|