[all-commits] [llvm/llvm-project] 445c3f: [llvm-readelf] - Do no print an empty symbol versi...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Dec 11 01:32:32 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 445c3fdd2ae8648cd79f98d3d72ff142b4c19792
      https://github.com/llvm/llvm-project/commit/445c3fdd2ae8648cd79f98d3d72ff142b4c19792
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-12-11 (Wed, 11 Dec 2019)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/verneed-invalid.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] - Do no print an empty symbol version as "<corrupt>"

It is discussed here https://reviews.llvm.org/D71118#inline-643172

Currently when a version is empty, llvm-readelf prints:
"000:   0 (*local*)       2 (<corrupt>)"

But GNU readelf does not treat empty section as corrupt.
There is no sense in having empty versions anyways it seems, but
this change is for consistency with GNU.

Differential revision: https://reviews.llvm.org/D71243




More information about the All-commits mailing list