table of contents
| ELF_GETAROFF(3) | Libelf Programmer's Manual | ELF_GETAROFF(3) |
NAME¶
elf_getaroff - retrieve the offset of an archive member header
SYNOPSIS¶
#include <libelf.h> int64_t elf_getaroff(Elf *elf);
DESCRIPTION¶
Return the file offset, in bytes, of the archive member header currently referred to by an ELF descriptor. This is the offset of the member header in the parent archive file. This offset can be used with elf_rand.
PARAMETERS¶
- elf
- Elf descriptor referring to a member of an archive file header.
RETURN VALUE¶
Return the file offset, in bytes, of the archive member header referred to by elf. If elf is NULL or is not a member of an archive, return -1.
SEE ALSO¶
ATTRIBUTES¶
| Interface | Attribute | Value |
| elf_getaroff () | Thread safety | MT-Safe |
REPORTING BUGS¶
Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.
HISTORY¶
elf_getaroff first appeared in elfutils 0.114. This elfutils libelf function may not be found in other libelf implementations.
| 2025-06-06 | Libelf |