[all-commits] [llvm/llvm-project] 84a170: [llvm-readobj] - Add a generic test for --dyn-relo...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Jul 13 04:22:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 84a170178c4431b7536c83ff0e5ce80774d08df6
      https://github.com/llvm/llvm-project/commit/84a170178c4431b7536c83ff0e5ce80774d08df6
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    A llvm/test/tools/llvm-readobj/ELF/dynamic-reloc.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Add a generic test for --dyn-relocations and fix an issue.

We have an issue currently: --dyn-relocations always prints the following
relocation header when dumping `DynPLTRelRegion`:

"Offset  Info  Type Symbol's Value  Symbol's Name + Addend"

I.e. even for an empty object, --dyn-relocations still prints this.
It is a easy to fix bug, but we have no dedicated test case for this option.
(we have a dynamic-reloc-no-section-headers.test, which has a slightly different purpose).

This patch adds a test and fixes the behavior.

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




More information about the All-commits mailing list