[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    elf_fill(3E) manual page Table of Contents

Name

elf_fill - set fill byte

Synopsis

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

#include <libelf.h>

void elf_fill(int fill);

MT-Level

Unsafe

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

See Also

elf(3E) , elf_flagdata(3E) , elf_getdata(3E) , elf_update(3E)

Notes

An application can assume control of the object file organization by setting the ELF_F_LAYOUT bit (see elf_flagdata(3E) ). When this is done, the library does not fill holes.


Table of Contents