DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

elf_fill(S)


elf_fill -- set fill byte

Syntax

cc [flag . . . ] file . . . -lelf [library] . . .

#include <libelf.h>

void elf_fill(int fill);

Description

This command lets you set the data fill character.

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 application supplies a value. See elf_getdata(S) for more information about those holes.

Diagnostics

Error conditions are identified through the routine elf_error(S).

Warning

An application can assume control of the object file organization by setting the bit ELF_F_LAYOUT (see elf_flag(S)). When the bit is set, the library does not fill holes.

See also

elf(S), elf_getdata(S), elf_flag(S), elf_update(S)

Standards conformance

elf_fill(S) is not part of any currently supported standard; it was developed by UNIX System Laboratories, Inc. and is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003