1elf_getbase(3ELF)            ELF Library Functions           elf_getbase(3ELF)
2
3
4

NAME

6       elf_getbase - get the base offset for an object file
7

SYNOPSIS

9       cc [ flag ... ] file ... -lelf [ library ... ]
10       #include <libelf.h>
11
12       off_t elf_getbase(Elf *elf);
13
14

DESCRIPTION

16       The elf_getbase() function returns the file offset of the first byte of
17       the file or archive member associated with  elf,  if  it  is  known  or
18       obtainable,  and −1 otherwise. A null elf is allowed, to simplify error
19       handling; the return value in this case is −1. The base  offset  of  an
20       archive  member  is  the beginning of the member's information, not the
21       beginning of the archive member header.
22

ATTRIBUTES

24       See attributes(5) for descriptions of the following attributes:
25
26
27
28
29       ┌─────────────────────────────┬─────────────────────────────┐
30       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
31       ├─────────────────────────────┼─────────────────────────────┤
32       │Interface Stability          │Stable                       │
33       ├─────────────────────────────┼─────────────────────────────┤
34       │MT-Level                     │MT-Safe                      │
35       └─────────────────────────────┴─────────────────────────────┘
36

SEE ALSO

38       ar.h(3HEAD), elf(3ELF), elf_begin(3ELF), libelf(3LIB), attributes(5)
39
40
41
42SunOS 5.11                        11 Jul 2001                elf_getbase(3ELF)
Impressum