DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

elf_fill(S-osr5)


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-osr5) for more information about those holes.

Diagnostics

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

Warning

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

See also

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

Standards conformance

elf_fill(S-osr5) is not part of any currently supported standard; it was developed by UNIX System Laboratories, Inc. and is maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005