GELF\_GETSYMINFO(3) Libelf Programmer's Manual GELF\_GETSYMINFO(3)

# [NAME](#NAME)

gelf\_getsyminfo - Retrieve class-independent additional symbol information from the symbol table at the given index

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

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.

# [PARAMETERS](#PARAMETERS)

[*data*](#data)

Pointer to an **Elf\_Data** for a section with type **SHT\_SUNW\_syminfo** and data type **ELF\_T\_SYMINFO**.

[*ndx*](#ndx)

Zero-based index of the additional symbol table information entry within *data*.

[*dst*](#dst)

Pointer to a caller-provided structure for storing the additional symbol information entry. Must not be NULL.

# [RETURN VALUE](#RETURN_VALUE)

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.

# [SEE ALSO](#SEE_ALSO)

[**gelf\_getsym**(3)](/man/os/elfutils/gelf_getsym.3), [**gelf\_update\_syminfo**(3)](/man/os/elfutils/gelf_update_syminfo.3), [**libelf**(3)](/man/os/elfutils/libelf.3), [**elf**(5)](/man/os/elfutils/elf.5)

# [ATTRIBUTES](#ATTRIBUTES)

**Interface** **Attribute** **Value** gelf\_getsyminfo () Thread safety MT-Safe

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to &lt;elfutils-devel@sourceware.org&gt; or https://sourceware.org/bugzilla/.

2025-12-30 Libelf

---

Document: gelf_getsyminfo(3) from elfutils 0.196-r0 (Chainguard OS)
Source: https://sourceware.org/git/elfutils.git
