[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


elf_fill Subroutine

Purpose

Set fill byte

Library

cc [flag...] file... -lelf [library]...
#include <libelf.h>

Syntax


void elf_fill(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 application supplies a value. See the elf_getdata subroutine for more information about these holes.

An application can assume control of the object file organization by setting the ELF_F_LAYOUT bit [see the elf_flagdata subroutine]. When this is done, the library does not fill holes.

Related Information

The elf_getdata (elf_getdata, elf_newdata, elf_rawdata Subroutine) subroutine, elf_flagdata (elf_flagdata, elf_flagehdr, elf_flagelf, elf_flagphdr, elf_flagscn, elf_flagshdr Subroutine) subroutine, elf_update (elf_update Subroutine) subroutine.

Introduction to ELF Subroutines.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]