elf_fill(3)

elf_fill3

Set fill byte used when constructing or editing elf object files.

Usage

#include <libelf.h>
void elf_fill(int fill);

Overview

The elf_fill function sets the fill byte used by libelf to pad new gaps between ELF sections or data elements when an ELF object file is resized or realigned using elf_update. The default fill byte used by libelf is zero.

Parameters

fill

The value used to fill gaps in future writes to ELF objects. This value should be between 0 and 255 (inclusive). Only the least significant 8 bits are used.

Return value

elf_fill returns no value.

Attributes

For an explanation of the terms used in this section, see attributes(7).

InterfaceAttributeValue
elf_fill()Thread safetyMT-Unsafe race

Reporting bugs

Report bugs to <[email protected]> or https://sourceware.org/bugzilla/.

From libelf 0.197-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.