[llvm-readobj] [COFF] Print the symbol index for relocations
commit0239fd32a434cdf50285eb159db6822b1a445cbb
authorMartin Storsjo <martin@martin.st>
Thu, 3 Jan 2019 08:08:23 +0000 (3 08:08 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 3 Jan 2019 08:08:23 +0000 (3 08:08 +0000)
tree05d661b2c9b0838893a69dd485ab1bc8df86c9b2
parent527dfff180d1d39da0e941eddea2a04b2cc409ff
[llvm-readobj] [COFF] Print the symbol index for relocations

There can be multiple local symbols with the same name (for e.g.
comdat sections), and thus the symbol name itself isn't enough
to disambiguate symbols.

Differential Revision: https://reviews.llvm.org/D56140

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350288 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp
test/MC/COFF/cross-section-relative.s
test/Object/yaml2obj-readobj.test
test/tools/llvm-readobj/relocations.test
tools/llvm-readobj/COFFDumper.cpp