GELF\_UPDATE\_SYMINFO(3) Libelf Programmer's Manual GELF\_UPDATE\_SYMINFO(3)

# [NAME](#NAME)

gelf\_update\_syminfo - Update additional symbol information in the symbol table at the given index

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

Copy a class-independent additional symbol information entry from *src* into the **SHT\_SUNW\_syminfo** section associated with *data* at entry index *ndx*.

*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** associated with an ELF section with type for a section with type **SHT\_SUNW\_syminfo** and data type **ELF\_T\_SYMINFO**.

[*ndx*](#ndx)

Zero-based index of the entry in *data* to be updated.

[*src*](#src)

Pointer to a caller-provided additional symbol information entry. Must not be NULL.

# [RETURN VALUE](#RETURN_VALUE)

On success, this function returns a non-zero value and updates *data* with *src* at index *ndx*. The section associated with *data* is flagged with **ELF\_F\_DIRTY**. On failure, zero is returned and elf\_errno is set. If *data* is NULL, then zero is returned without setting elf\_errno.

# [SEE ALSO](#SEE_ALSO)

[**gelf\_getsym**(3)](/man/os/elfutils/gelf_getsym.3), [**gelf\_getsyminfo**(3)](/man/os/elfutils/gelf_getsyminfo.3), [**libelf**(3)](/man/os/elfutils/libelf.3), [**elf**(5)](/man/os/elfutils/elf.5)

# [ATTRIBUTES](#ATTRIBUTES)

**Interface** **Attribute** **Value** gelf\_update\_syminfo () 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_update_syminfo(3) from elfutils 0.197-r0 (Chainguard OS)
Source: https://sourceware.org/git/elfutils.git
