1elf_fill(3ELF) ELF Library Functions elf_fill(3ELF)
2
3
4
6 elf_fill - set fill byte
7
9 cc [ flag ... ] file ... -lelf [ library ... ]
10 #include <libelf.h>
11
12 void elf_fill(int fill);
13
14
16 Alignment constraints for ELF files sometimes require the presence of
17 ``holes.'' For example, if the data for one section are required to
18 begin on an eight-byte boundary, but the preceding section is too
19 ``short,'' the library must fill the intervening bytes. These bytes are
20 set to the fill character. The library uses zero bytes unless the
21 application supplies a value. See elf_getdata(3ELF) for more informa‐
22 tion about these holes.
23
25 See attributes(5) for descriptions of the following attributes:
26
27
28
29
30 ┌─────────────────────────────┬─────────────────────────────┐
31 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
32 ├─────────────────────────────┼─────────────────────────────┤
33 │Interface Stability │Stable │
34 ├─────────────────────────────┼─────────────────────────────┤
35 │MT-Level │MT-Safe │
36 └─────────────────────────────┴─────────────────────────────┘
37
39 elf(3ELF), elf_flagdata(3ELF), elf_getdata(3ELF), elf_update(3ELF),
40 libelf(3LIB), attributes(5)
41
43 An application can assume control of the object file organization by
44 setting the ELF_F_LAYOUT bit (see elf_flagdata(3ELF)). When this is
45 done, the library does not fill holes.
46
47
48
49SunOS 5.11 11 Jul 2001 elf_fill(3ELF)