---
name: "gelf_getsyminfo"
section: "3"
platform: "linux"
package: "libelf"
version: "0.197-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/gelf_getsyminfo"
---

# gelf\_getsyminfo(3)

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

## NAME

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

## SYNOPSIS

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

## 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

- *data*

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

- *ndx*

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

- *dst*

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

## 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

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

## ATTRIBUTES

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

## REPORTING BUGS

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