From: Aaron Merey Date: Thu, 1 Jan 2026 02:50:38 +0000 (-0500) Subject: doc: Add gelf_getmove.3 X-Git-Tag: elfutils-0.195~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4160429ecc5817221db5a57fc7f17c05bd82dbe2;p=thirdparty%2Felfutils.git doc: Add gelf_getmove.3 Signed-off-by: Aaron Merey --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 89a1834c..5ef3eb3b 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -96,6 +96,7 @@ notrans_dist_man3_MANS= elf32_checksum.3 \ gelf_getclass.3 \ gelf_getdyn.3 \ gelf_getehdr.3 \ + gelf_getmove.3 \ gelf_getphdr.3 \ gelf_getrel.3 \ gelf_getrela.3 \ diff --git a/doc/gelf_getmove.3 b/doc/gelf_getmove.3 new file mode 100644 index 00000000..f91ccd1b --- /dev/null +++ b/doc/gelf_getmove.3 @@ -0,0 +1,83 @@ +.TH GELF_GETMOVE 3 2025-12-30 "Libelf" "Libelf Programmer's Manual" + +.SH NAME +gelf_getmove \- Get move structure at the given index + +.SH SYNOPSIS +.nf +.B #include + +.BI "GElf_Move *gelf_getmove (Elf_Data *" data ", int " ndx ", GElf_Move *" dst ");" + +.SH DESCRIPTION +Copy a move structure at index +.I ndx +from a +.B SHT_SUNW_move +section associated with +.I data +into a class\-independent representation stored in +.IR *dst . + +.I data +should be associated with an ELF section with type +.B SHT_SUNW_move +section. +.I data->d_type +should be +.BR ELF_T_MOVE . +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 +of an +.B SHT_SUNW_move +section. +.I data->d_type +should be +.BR ELF_T_MOVE . + +.TP +.I ndx +Zero\-based index of the move structure in +.IR data . + +.TP +.I dst +Pointer to a caller\-provided structure for storing the requested move entry. +.I dst +must not be NULL. + +.SH RETURN VALUE +On success, this function stores the requested move structure in +.I dst +and returns +.IR dst . +On failure, NULL is returned and elf_errno is set. If +.I data +is NULL, then NULL is returned without setting elf_errno. + +.SH SEE ALSO +.BR gelf_update_move (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_getmove () +T} Thread safety MT-Safe +.TE + +.SH REPORTING BUGS +Report bugs to or https://sourceware.org/bugzilla/.