elf_fill(3E) MISC. REFERENCE MANUAL PAGES elf_fill(3E)
NAME
elffill - set fill byte
SYNOPSIS
cc [flag ...] file ... -lelf [library ...]
#include <libelf.h>
void elffill(int fill);
DESCRIPTION
Alignment constraints for ELF files sometimes require the
presence of ``holes.'' For example, if the data for one
section are required to begin on an eight-byte boundary, but
the preceding section is too ``short,'' the library must
fill the intervening bytes. These bytes are set to the fill
character. The library uses zero bytes unless the applica-
tion supplies a value. See elfgetdata(3E) for more infor-
mation about these holes.
SEE ALSO
elf(3E), elfgetdata(3E), elfflag(3E), elfupdate(3E).
NOTE
An application can assume control of the object file organi-
zation by setting the ELFFLAYOUT bit [see elfflag(3E)].
When this is done, the library does not fill holes.
Last change: ELF Library 1