[PATCH v2 04/16] doc: Add gelf_update_symshndx.3

Mark Wielaard mark@klomp.org
Fri Mar 13 14:41:34 GMT 2026


Hi Aaron,

On Mon, 2026-03-09 at 14:43 -0400, Aaron Merey wrote:
> Signed-off-by: Aaron Merey <amerey@redhat.com>
> ---
> v2: Clarify how to find the size of the symbol table and when ndx must
> be zero.

Maybe clarify one little bit about xshndx:

> +.TP
> +.I xshndx
> +Updated extended section index entry to be associated with
> +.IR sym .
> +Must be zero if
> +.I shndxdata
> +is NULL.

xshndx also should be zero (SHN_UNDEF) when sym->st_shndx !=
SHN_XINDEX. This implementation doesn't not check that condition
however (you are allowed to store a non-zero value in the xindex, but
that would result in an inconsistent ELF.)

Maybe that is too pedantic though. So you decide :)

Cheers,

Mark


More information about the Elfutils-devel mailing list