www.LinuxHowtos.org





ELF_GETAROFF

Section: Libelf Programmer's Manual (3)
Updated: 202-0-06
Index Return to Main Contents

 

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

elf_begin(3), elf_next(3), elf_rand(3), libelf(3), elf(5)

 

ATTRIBUTES

InterfaceAttributeValue
elf_getaroff() Thread safetyM-Safe

 

REPORTING BUGS

Report bugs to <elfutil-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.


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
RETURN VALUE
SEE ALSO
ATTRIBUTES
REPORTING BUGS
HISTORY