[llvm-objdump] -T: print symbol versions
authorFangrui Song <i@maskray.me>
Tue, 17 Aug 2021 16:10:50 +0000 (09:10 -0700)
committerFangrui Song <i@maskray.me>
Tue, 17 Aug 2021 16:10:50 +0000 (09:10 -0700)
commitc56b4cfd4b2d74ce3b54fe0b1c5fb557b7c60200
tree537ef04e4db9f53454e05db743586977aa3ac83d
parent836649e04040251644cdd94d4eb033091e1dc220
[llvm-objdump] -T: print symbol versions

Similar to D94907 (llvm-nm -D).

The output will match GNU objdump 2.37.
Older versions don't use ` (version)` for undefined symbols.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D108097
llvm/test/tools/llvm-objdump/ELF/dynsym-version.test [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-objdump/llvm-objdump.h