[llvm-readobj] [COFF] Print the symbol index for relocations
authorMartin Storsjo <martin@martin.st>
Thu, 3 Jan 2019 08:08:23 +0000 (08:08 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 3 Jan 2019 08:08:23 +0000 (08:08 +0000)
commit74e7d26090be48fb99b2c69e48ec66b5007390f3
treee90794304e9a8d6b5df48558c22925f582c04177
parent5ef47ad82ebb1d12a0789376e33a2827dbb7aa48
[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

llvm-svn: 350288
llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/MC/COFF/cross-section-relative.s
llvm/test/Object/yaml2obj-readobj.test
llvm/test/tools/llvm-readobj/relocations.test
llvm/tools/llvm-readobj/COFFDumper.cpp