GELF_GETSYMINFO(3) Libelf Programmer's Manual GELF_GETSYMINFO(3)

gelf_getsyminfo - Retrieve class-independent additional symbol information from the symbol table at the given index

#include <gelf.h>
GElf_Syminfo *gelf_getsyminfo (Elf_Data *data, int ndx, GElf_Syminfo *dst);

Copy the additional symbol information entry from data at index ndx into the class-independent GElf_Syminfo structure pointed to by dst.

data should be associated with an ELF section with type SHT_SUNW_syminfo and data type ELF_T_SYMINFO. These types are Sun/Solaris extensions and are not typically used in GNU/Linux ELF files.

Pointer to an Elf_Data for a section with type SHT_SUNW_syminfo and data type ELF_T_SYMINFO.
Zero-based index of the additional symbol table information entry within data.
Pointer to a caller-provided structure for storing the additional symbol information entry. Must not be NULL.

On success, this function copies the requested additional symbol information entry into *dst and returns dst. On failure, NULL is returned and elf_errno is set. If data is NULL, then NULL is returned without setting elf_errno.

gelf_getsym(3), gelf_update_syminfo(3), libelf(3), elf(5)

Interface Attribute Value
gelf_getsyminfo () Thread safety MT-Safe

Report bugs to <elfutils-devel@sourceware.org> or https://sourceware.org/bugzilla/.

2025-12-30 Libelf