]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
doc: Add gelf_update_syminfo.3
authorAaron Merey <amerey@redhat.com>
Thu, 1 Jan 2026 02:50:35 +0000 (21:50 -0500)
committerAaron Merey <amerey@redhat.com>
Fri, 13 Mar 2026 18:46:51 +0000 (14:46 -0400)
Signed-off-by: Aaron Merey <amerey@redhat.com>
doc/Makefile.am
doc/gelf_update_syminfo.3 [new file with mode: 0644]

index 2b2720d50d2727500c61a2b85a9da20eb12ca680..38357429abe8dbd932363ab9d9c77ee848764f95 100644 (file)
@@ -116,6 +116,7 @@ notrans_dist_man3_MANS= elf32_checksum.3 \
                        gelf_update_rel.3 \
                        gelf_update_rela.3 \
                        gelf_update_sym.3 \
+                       gelf_update_syminfo.3 \
                        gelf_update_symshndx.3 \
                        gelf_update_versym.3 \
                        gelf_update_verdef.3 \
diff --git a/doc/gelf_update_syminfo.3 b/doc/gelf_update_syminfo.3
new file mode 100644 (file)
index 0000000..c02dcd5
--- /dev/null
@@ -0,0 +1,87 @@
+.TH GELF_UPDATE_SYMINFO 3 2025-12-30 "Libelf" "Libelf Programmer's Manual"
+
+.SH NAME
+gelf_update_syminfo \- Update additional symbol information in the symbol table at the given index
+
+.SH SYNOPSIS
+.nf
+.B #include <gelf.h>
+
+.BI "int gelf_update_syminfo (Elf_Data *" data ", int " ndx ", GElf_Syminfo *" src ");"
+
+.SH DESCRIPTION
+Copy a class\-independent additional symbol information entry from
+.I src
+into the
+.B SHT_SUNW_syminfo
+section associated with
+.I data
+at entry index
+.IR ndx .
+
+.I data
+should be associated with an ELF section with type
+.B SHT_SUNW_syminfo
+and data type
+.BR ELF_T_SYMINFO .
+These types are Sun/Solaris extensions and are not typically used in GNU/Linux
+ELF files.
+
+.SH PARAMETERS
+.TP
+.I data
+Pointer to an
+.B Elf_Data
+associated with an ELF section with type
+for a section with type
+.B SHT_SUNW_syminfo
+and data type
+.BR ELF_T_SYMINFO .
+
+.TP
+.I ndx
+Zero\-based index of the entry in
+.I data
+to be updated.
+
+.TP
+.I src
+Pointer to a caller\-provided additional symbol information entry.  Must not
+be NULL.
+
+.SH RETURN VALUE
+On success, this function returns a non-zero value and updates
+.I data
+with
+.I src
+at index
+.IR ndx .
+The section associated with
+.I data
+is flagged with
+.BR ELF_F_DIRTY .
+On failure, zero is returned and elf_errno is set.  If
+.I data
+is NULL, then zero is returned without setting elf_errno.
+
+.SH SEE ALSO
+.BR gelf_getsym (3),
+.BR gelf_getsyminfo (3),
+.BR libelf (3),
+.BR elf (5)
+
+.SH ATTRIBUTES
+.TS
+allbox;
+lbx lb lb
+l l l.
+Interface      Attribute       Value
+T{
+.na
+.nh
+.BR gelf_update_syminfo ()
+T}     Thread safety   MT-Safe
+.TE
+
+.SH REPORTING BUGS
+Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.