From 591bef7177364e16ba7e9ed7171fbb01eb458258 Mon Sep 17 00:00:00 2001 From: Dacian Pascu Date: Fri, 20 Jun 2025 17:00:11 +0300 Subject: [PATCH] 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 --- man/man5/elf.5 | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.47.2