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

NAME

6       elf32_fsize, elf64_fsize - return the size of an object file type
7

SYNOPSIS

9       cc [ flag ... ] file ... -lelf [ library ... ]
10       #include <libelf.h>
11
12       size_t elf32_fsize(Elf_Type type, size_t count, unsigned ver);
13
14
15       size_t elf64_fsize(Elf_Type type, size_t count, unsigned ver);
16
17

DESCRIPTION

19       elf32_fsize() gives the size in bytes of the 32-bit file representation
20       of count data objects with the given type. The library uses version ver
21       to calculate the size. See elf(3ELF) and elf_version(3ELF).
22
23
24       Constant values are available for the sizes of fundamental types:
25
26         Elf_Type  File Size Memory Size
27         ELF_T_ADDR     ELF32_FSZ_ADDR sizeof(Elf32_Addr)
28         ELF_T_BYTE     1    sizeof(unsigned char)
29         ELF_T_HALF     ELF32_FSZ_HALF sizeof(Elf32_Half)
30         ELT_T_OFF ELF32_FSZ_OFF  sizeof(Elf32_Off)
31         ELF_T_SWORD    ELF32_FSZ_SWORD     sizeof(Elf32_Sword)
32         ELF_T_WORD     ELF32_FSZ_WORD sizeof(Elf32_Word)
33
34
35
36       elf32_fsize()  returns  0  if  the value of type or ver is unknown. See
37       elf32_xlatetof(3ELF) for a list of the type values.
38
39
40       For the 64−bit class, replace 32 with 64 as appropriate.
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Interface Stability          │Stable                       │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │MT-Safe                      │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       elf(3ELF),   elf32_xlatetof(3ELF),   elf_version(3ELF),   libelf(3LIB),
58       attributes(5)
59
60
61
62SunOS 5.11                        11 Jul 2001                elf32_fsize(3ELF)
Impressum