[obj2yaml] - Support dumping objects that have multiple SHT_SYMTAB_SHNDX sections.
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 4 Dec 2020 10:23:26 +0000 (13:23 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 9 Dec 2020 09:14:58 +0000 (12:14 +0300)
commitabae3c11969defb6537dff99806668eacb6f0057
tree8cd8e93d676eb0117f62c408e8ddd66a96eeee12
parent0ef0de65f14ea63a1800c56cbc2faad5b10e828f
[obj2yaml] - Support dumping objects that have multiple SHT_SYMTAB_SHNDX sections.

It is allowed to have multiple `SHT_SYMTAB_SHNDX` sections, though
we currently don't implement it.

The current implementation assumes that there is a maximum of one SHT_SYMTAB_SHNDX
section and that it is always linked with .symtab section.

This patch drops this limitations.

Differential revision: https://reviews.llvm.org/D92644
llvm/test/tools/obj2yaml/ELF/sht-symtab-shndx.yaml
llvm/tools/obj2yaml/elf2yaml.cpp