Similar to D94907 (llvm-nm -D).
The output will match GNU objdump 2.37.
Older versions don't use (version) for undefined symbols.
Paths
| Differential D108097
[llvm-objdump] -T: print symbol versions ClosedPublic Authored by MaskRay on Aug 15 2021, 4:43 PM.
Details
Summary Similar to D94907 (llvm-nm -D). The output will match GNU objdump 2.37.
Diff Detail
Event TimelineComment Actions I assume this is compatible with whatever GNU objdump does (I've not checked myself)?
MaskRay marked an inline comment as done. Comment Actionsadd one more space to match GNU objdump. Comment Actions
It matches the latest GNU objdump. % ~/Dev/binutils-gdb/out/debug/binutils/objdump -T =cat > /tmp/0 % fob -T =cat > /tmp/1 # llvm-objdump with this patch % diff -u /tmp/0 /tmp/1 --- /tmp/0 2021-08-16 10:59:21.938459199 -0700 +++ /tmp/1 2021-08-16 10:55:47.165812330 -0700 @@ -1,5 +1,5 @@ -/usr/bin/cat: file format elf64-x86-64 +/usr/bin/cat: file format elf64-x86-64 DYNAMIC SYMBOL TABLE: 0000000000000000 DF *UND* 0000000000000000 (GLIBC_2.2.5) free @@ -64,5 +64,3 @@ 000000000000b280 w DO .bss 0000000000000008 (GLIBC_2.2.5) program_invocation_short_name 000000000000b2a0 g DO .bss 0000000000000008 (GLIBC_2.2.5) stderr 000000000000b290 g DO .bss 0000000000000004 (GLIBC_2.2.5) optind - - MaskRay marked an inline comment as done. Comment Actionssimplify test
This revision is now accepted and ready to land.Aug 17 2021, 1:04 AM This revision was landed with ongoing or failed builds.Aug 17 2021, 9:11 AM Closed by commit rGc56b4cfd4b2d: [llvm-objdump] -T: print symbol versions (authored by MaskRay). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 366920 llvm/test/tools/llvm-objdump/ELF/dynsym-version.test
llvm/tools/llvm-objdump/llvm-objdump.h
llvm/tools/llvm-objdump/llvm-objdump.cpp
|
Probably worth a comment here pointing out the difference with the previous case.