summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Merey <[email protected]>2025-05-12 20:33:38 -0400
committerAaron Merey <[email protected]>2025-05-14 14:47:46 -0400
commitc2a805748c72a8a5f7a2c12d585b433eee10e634 (patch)
tree993dca205a65afc01e451b0b7c2629b8e51091cd
parent40aee9948fa932c2ee65d3753cce727c4bc95ce4 (diff)
doc: Add elf_fill.3
Signed-off-by: Aaron Merey <[email protected]>
-rw-r--r--doc/Makefile.am1
-rw-r--r--doc/elf_fill.353
2 files changed, 54 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index dee77214..e6f877c4 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -54,6 +54,7 @@ notrans_dist_man3_MANS= elf32_checksum.3 \
elf_end.3 \
elf_errmsg.3 \
elf_errno.3 \
+ elf_fill.3 \
elf_getdata.3 \
elf_getscn.3 \
elf_ndxscn.3 \
diff --git a/doc/elf_fill.3 b/doc/elf_fill.3
new file mode 100644
index 00000000..73e01fca
--- /dev/null
+++ b/doc/elf_fill.3
@@ -0,0 +1,53 @@
+.TH ELF_FILL 3 2025-03-31 "Libelf" "Libelf Programmer's Manual"
+
+.SH NAME
+elf_fill \- Set fill byte used when constructing or editing ELF object files.
+
+.SH SYNOPSIS
+.nf
+#include <libelf.h>
+
+.BI "void elf_fill(int " fill ");"
+
+.SH DESCRIPTION
+The
+.B 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
+.BR elf_update .
+The default fill byte used by libelf is zero.
+
+.SH PARAMETERS
+.TP
+.I 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.
+
+.SH RETURN VALUE
+.B elf_fill
+returns no value.
+
+.SH SEE ALSO
+.BR elf_update (3),
+.BR libelf (3),
+.BR elf (5)
+
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbx lb lb
+l l l.
+Interface Attribute Value
+T{
+.na
+.nh
+.BR elf_fill ()
+T} Thread safety MT-Unsafe race
+.TE
+
+.SH REPORTING BUGS
+Report bugs to <[email protected]> or https://sourceware.org/bugzilla/.
+