ELF_FILL(3)
π NAME π
elf_fill β set the fill byte used when constructing or editing ELF object files, bestie. that's it, that's the whole job π«Ά
β¨ SYNOPSIS β¨
#include <libelf.h>
void elf_fill(int fill);
πΈ DESCRIPTION πΈ
okay so listen. when libelf needs to pad out new gaps that pop up between ELF sections or data elements β like when an ELF object file gets resized or realigned via elf_update β it needs something to shove in those gaps. that something is the fill byte. π
elf_fill is the function that sets which byte gets used for that. you're basically picking the stuffing for your ELF's little hollow spots.
and the default? zero. libelf is out here filling gaps with 0 unless you tell it otherwise. no cap. β¨
π¦ PARAMETERS π¦
fillβ the value used to fill gaps in future writes to ELF objects. this one should be between0and255(inclusive), okay? only the least significant 8 bits get used, so if you hand it something wild, it's getting trimmed down to the bottom 8 bits and the rest is justβ¦ not invited to the party π
π RETURN VALUE π
elf_fill returns no value. it's a void girlie. it does the thing and says nothing. main character energy, honestly. π
π₯ SEE ALSO π₯
π ATTRIBUTES π
for an explanation of the terms used in this section, go peek at attributes(7). π
- Interface:
elf_fill() - Attribute: Thread safety
- Value:
MT-Unsafe race
β οΈ yeah so that's a MT-Unsafe race situation, bestie. just so you know what you're walking into. π«Ά
π REPORTING BUGS π
found a bug? report it to <elfutils-devel@sourceware.org> or hit up <https://sourceware.org/bugzilla/>. they will hear about it. π
and that's the whole page!! this was the elf_fill(3) entry from the Libelf Programmer's Manual, dated 2025-03-31, and it's giving ELF_FILL(3) energy from top to bottom. mwah. πβ¨ππ¦πΈ
π¦ where this page comes from
- alpine 3.23: elfutils-doc 0.194-r0 Β· GPL-3.0-or-later AND ( GPL-2.0-or-later OR LGPL-3.0-or-later )
- alpine 3.24: elfutils-doc 0.195-r0 Β· GPL-3.0-or-later AND ( GPL-2.0-or-later OR LGPL-3.0-or-later )
- arch rolling: libelf 0.196-1
- arch rolling: libelf 0.197-1 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- centos-stream 10: elfutils-libelf-devel 0.197-1.el10 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- centos-stream 9: elfutils-libelf-devel 0.197-1.el9 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- centos-stream 9: elfutils-libelf-devel 0.197-1.el9 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- fedora 43: elfutils-libelf-devel 0.196-1.fc43
- fedora 43: elfutils-libelf-devel 0.196-1.fc43
- fedora 43: elfutils-libelf-devel 0.197-1.fc43 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- fedora 43: elfutils-libelf-devel 0.197-1.fc43 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- fedora 44: elfutils-libelf-devel 0.194-5.fc44 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- fedora 44: elfutils-libelf-devel 0.194-5.fc44 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- fedora 44: elfutils-libelf-devel 0.196-1.fc44
- fedora 44: elfutils-libelf-devel 0.196-1.fc44
- fedora 44: elfutils-libelf-devel 0.197-1.fc44 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- fedora 44: elfutils-libelf-devel 0.197-1.fc44 Β· GPL-2.0-or-later OR LGPL-3.0-or-later
- nixos 26.05: elfutils 0.194
- nixpkgs unstable: elfutils 0.195
- ubuntu resolute: libelf-dev 0.194-4 Β· GPL-3.0-or-later
- ubuntu stonking: libelf-dev 0.196-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms