gelf_update_syminfo(3)

gelf_update_syminfo3

Update additional symbol information in the symbol table at the given index

Usage

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

Overview

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

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

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

src

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

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.

Attributes

InterfaceAttributeValue
gelf_update_syminfo()Thread safetyMT-Safe

Reporting bugs

Report bugs to <[email protected]> or https://sourceware.org/bugzilla/.

From libelf 0.197-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.