[all-commits] [llvm/llvm-project] cdd7f2: [llvm-readelf] - Do not omit a zero symbol value w...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jun 16 05:43:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cdd7f24c3aea315674fb59b3ff96fb012e739b76
      https://github.com/llvm/llvm-project/commit/cdd7f24c3aea315674fb59b3ff96fb012e739b76
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/reloc-zero-name-or-value.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] - Do not omit a zero symbol value when printing relocations.

Previously we only printed a symbol value when it has a non-empty name
or non-zero value.

This patch changes the behavior. Now we only omit a symbols value when
a relocation does not reference a symbol (i.e. symbol index == 0).

Seems it is what GNU readelf does, looking on its output.

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




More information about the All-commits mailing list