aboutsummaryrefslogtreecommitdiffstats
diff options
authorDacian Pascu <pascu.dacian@gmail.com>2025-06-20 17:00:11 +0300
committerAlejandro Colomar <alx@kernel.org>2025-06-28 16:51:41 +0200
commit591bef7177364e16ba7e9ed7171fbb01eb458258 (patch)
treecdf1e69015da0a397aac61a9f35e59130a93d4b7
parentf9bd8dbdcd1f10630552cf1a6d4af333ce3ed27b (diff)
downloadman-pages-591bef7177364e16ba7e9ed7171fbb01eb458258.tar.gz
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 <pascu.dacian@gmail.com> Message-ID: <78e41dade449bafddfb730b39226f8d9cb3fefdb.1750427945.git.pascu.dacian@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man5/elf.54
1 files changed, 4 insertions, 0 deletions
diff --git a/man/man5/elf.5 b/man/man5/elf.5
index aacbb558fc..c7b9a7cf8c 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.