From: Dacian Pascu Date: Fri, 20 Jun 2025 14:00:11 +0000 (+0300) Subject: man/man5/elf.5: Clarify string table reference for SHT_SYMTAB sections X-Git-Tag: man-pages-6.15~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=591bef7177364e16ba7e9ed7171fbb01eb458258;p=thirdparty%2Fman-pages.git man/man5/elf.5: Clarify string table reference for SHT_SYMTAB sections Add clarification that for SHT_SYMTAB sections, the associated string table section index can be found in the sh_link member, following the same pattern documented for section header string tables. This was discovered while writing an ELF parser, where the sh_link field is needed to locate the string table for symbol name lookups in SHT_SYMTAB sections. Signed-off-by: Dacian Pascu Message-ID: <78e41dade449bafddfb730b39226f8d9cb3fefdb.1750427945.git.pascu.dacian@gmail.com> Signed-off-by: Alejandro Colomar --- diff --git a/man/man5/elf.5 b/man/man5/elf.5 index aacbb558f..c7b9a7cf8 100644 --- a/man/man5/elf.5 +++ b/man/man5/elf.5 @@ -942,6 +942,10 @@ An object file can also contain a .B SHT_DYNSYM section. +The index of the associated string table section +can be found in the +.I sh_link +member. .TP .B SHT_STRTAB This section holds a string table.