[PATCH] D108097: [llvm-objdump] -T: print symbol versions

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 11:00:15 PDT 2021


MaskRay added a comment.

In D108097#2946545 <https://reviews.llvm.org/D108097#2946545>, @jhenderson wrote:

> I assume this is compatible with whatever GNU objdump does (I've not checked myself)?

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
  -
  -


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108097/new/

https://reviews.llvm.org/D108097



More information about the llvm-commits mailing list