[PATCH] D49541: [ELF] - Implement SHT_SYMTAB_SHNDX (.symtab_shndxr) section.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 05:42:16 PDT 2018


grimar created this revision.
grimar added a reviewer: ruiu.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.

This is relative to https://bugs.llvm.org//show_bug.cgi?id=38119.

SHT_SYMTAB section is able to keep symbols with output section indices up to 0xff00 (SHN_LORESERVE).
But if we have indices that are greater than that (PR shows that it might happen), we need to use
SHT_SYMTAB_SHNDX extended section. It was not supported by LLD.

Description of the SHT_SYMTAB_SHNDX  section is here:
https://docs.oracle.com/cd/E19683-01/817-3677/chapter6-94076/index.html.


https://reviews.llvm.org/D49541

Files:
  ELF/SyntheticSections.cpp
  ELF/SyntheticSections.h
  ELF/Writer.cpp
  test/ELF/linkerscript/orphan-report.s
  test/ELF/relocatable-many-sections.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49541.156246.patch
Type: text/x-patch
Size: 10114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180719/a16b63f9/attachment.bin>


More information about the llvm-commits mailing list