Hi Aaron,
On Wed, Dec 31, 2025 at 09:50:37PM -0500, Aaron Merey wrote:
> Signed-off-by: Aaron Merey <[email protected]>
> ---
> doc/Makefile.am | 1 +
> doc/gelf_update_dyn.3 | 83 +++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 84 insertions(+)
> create mode 100644 doc/gelf_update_dyn.3
>
> diff --git a/doc/Makefile.am b/doc/Makefile.am
> index fbbd254f..89a1834c 100644
> --- a/doc/Makefile.am
> +++ b/doc/Makefile.am
> @@ -112,6 +112,7 @@ notrans_dist_man3_MANS= elf32_checksum.3 \
> gelf_newphdr.3 \
> gelf_offscn.3 \
> gelf_update_ehdr.3 \
> + gelf_update_dyn.3 \
> gelf_update_phdr.3 \
> gelf_update_shdr.3 \
> gelf_update_rel.3 \
OK.
> diff --git a/doc/gelf_update_dyn.3 b/doc/gelf_update_dyn.3
> new file mode 100644
> index 00000000..0bec7e65
> --- /dev/null
> +++ b/doc/gelf_update_dyn.3
> @@ -0,0 +1,83 @@
> +.TH GELF_UPDATE_DYN 3 2025-12-30 "Libelf" "Libelf Programmer's Manual"
> +
> +.SH NAME
> +gelf_update_dyn \- Update class\-independent information in the dynamic
> table at the given index
> +
> +.SH SYNOPSIS
> +.nf
> +.B #include <gelf.h>
> +
> +.BI "int gelf_update_dyn (Elf_Data *" data ", int " ndx ", GElf_Dyn *" src
> ");"
OK.
> +.SH DESCRIPTION
> +Copy a class\-independent dynamic table entry from
> +.I src
> +into the
> +.B SHT_DYNAMIC
> +section associated with
> +.I data
> +at index
> +.IR ndx .
OK.
> +.SH PARAMETERS
> +.TP
> +.I data
> +Pointer to an
> +.B Elf_Data
> +associated with a section with type
> +.BR SHT_DYNAMIC .
data->d_type is ELF_T_DYN?
> +.TP
> +.I ndx
> +Zero\-based index of the dynamic table entry to be updated within
> +.IR data .
> +
> +.TP
> +.I src
> +Pointer to a caller\-provided dynamic table entry. For
> +.B ELFCLASS32
> +binaries,
> +.B d_tag
> +should be able to fit within a signed 32-bit value
> +while
> +.B d_val
> +and
> +.B d_ptr
> +should be able to fit within unsigned 32-bit values.
> +.I src
> +must not be NULL.
OK.
> +.SH RETURN VALUE
> +On success, this function returns a non-zero value and updates
> +the dynamic table entry at index
> +.I ndx
> +in
> +.IR data .
> +The dynamic table 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 and elf_errno is not set.
OK.
> +.SH SEE ALSO
> +.BR gelf_getdyn (3),
> +.BR libelf (3),
> +.BR elf (5)
OK. Same question, where is GElf_Dyn described?
> +.SH ATTRIBUTES
> +.TS
> +allbox;
> +lbx lb lb
> +l l l.
> +Interface Attribute Value
> +T{
> +.na
> +.nh
> +.BR gelf_update_dyn ()
> +T} Thread safety MT-Safe
> +.TE
> +
> +.SH REPORTING BUGS
> +Report bugs to <[email protected]> or
> https://sourceware.org/bugzilla/.
OK.
Thanks,
Mark