GELF_GETMOVE(3)
β¨ GELF_GETMOVE(3) β¨
okay bestie, welcome to the Libelf Programmer's Manual π β today's episode is all about gelf_getmove, and honestly? she's giving niche Solaris energy and I'm obsessed π
π NAME π
gelf_getmove β get move structure at the given index π¦
πΈ SYNOPSIS πΈ
#include <gelf.h>
GElf_Move *gelf_getmove (Elf_Data *data, int ndx, GElf_Move *dst);
β¨ DESCRIPTION β¨
So what she does is: she copies a move structure at index ndx out of an SHT_SUNW_move section that's associated with data, and drops it into a class-independent representation stored in *dst. no cap. π
data should be associated with an ELF section with type SHT_SUNW_move section. and data->d_type should be ELF_T_MOVE. π«Ά
heads up bestie β these types are Sun/Solaris extensions and are not typically used in GNU/Linux ELF files. so if you're on Linux wondering why you never see them... yeah that's why π
π§ PARAMETERS π§
dataβ pointer to anElf_Dataof anSHT_SUNW_movesection. anddata->d_typeshould beELF_T_MOVE, okay? don't skip that part πndxβ zero-based index of the move structure indata. zero-based, so first one is0, main character behavior βdstβ pointer to a caller-provided structure for storing the requested move entry.dstmust not beNULL. literally do not do that π
π₯ RETURN VALUE π₯
- on success: she stores the requested move structure in
dstand returnsdst. slay π - on failure:
NULLgets returned andelf_errnois set. - special case bestie: if
dataisNULL, thenNULLis returned without settingelf_errno. noted, iconic, no notes π
π SEE ALSO π
iykyk π
π ATTRIBUTES π
gelf_getmove()β thread safety:MT-Safeβ¨
(ngl that's the whole vibe check and she passed π«Ά)
π REPORTING BUGS π
found a bug? don't be shy, tell the girlies:
- report bugs to
<elfutils-devel@sourceware.org> - or hit up
https://sourceware.org/bugzilla/
okay that's the whole page bestie, you ate that ππ β¨
Libelf Β· 2025-12-30 Β· GELF_GETMOVE(3) β mwah, love u, go read gelf_update_move(3) next ππ¦πΈ
π¦ where this page comes from
- 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.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
- nixpkgs unstable: elfutils 0.195
- 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