]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man5/elf.5: Clarify string table reference for SHT_SYMTAB sections
authorDacian Pascu <pascu.dacian@gmail.com>
Fri, 20 Jun 2025 14:00:11 +0000 (17:00 +0300)
committerAlejandro Colomar <alx@kernel.org>
Sat, 28 Jun 2025 14:51:41 +0000 (16:51 +0200)
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>
man/man5/elf.5

index aacbb558fce068b882ef740d7d043a305d979c22..c7b9a7cf8c07897fc99cbc866b24af612e13ce73 100644 (file)
@@ -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.