elf_getaroff3
Retrieve the offset of an archive member header
Usage
#include <libelf.h> int64_t elf_getaroff(Elf *elf);
Overview
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.
Attributes
| Interface | Attribute | Value |
| elf_getaroff() | Thread safety | MT-Safe |