[llvm-readelf] Symbol index in symbol table printing is not reset
authorMikhail Kalashnikov <mikkqu@gmail.com>
Tue, 28 Jul 2020 10:06:51 +0000 (13:06 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 28 Jul 2020 10:15:53 +0000 (13:15 +0300)
commit67070d98fae5c49e183ff5d68ae8038e6fd8f5a9
tree91385f38812f74e7898e1ad6498692678e4b71b6
parentc0bd9fa137c28a3ef833b46b7f9770b060275281
[llvm-readelf] Symbol index in symbol table printing is not reset

Stop using static variables for keeping track of symbol indices.

Bugfix for: https://bugs.llvm.org/show_bug.cgi?id=46777

Differential revision: https://reviews.llvm.org/D84606
llvm/test/tools/llvm-readobj/ELF/symbols.test
llvm/tools/llvm-readobj/ELFDumper.cpp