[all-commits] [llvm/llvm-project] 4a3c3d: [llvm-readobj] - Don't abort when dumping dynamic ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jul 7 06:15:17 PDT 2020


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

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

  Log Message:
  -----------
  [llvm-readobj] - Don't abort when dumping dynamic relocations when an object has both REL and RELA.

Currently, llvm-readobj calls `report_fatal_error` when an object has
both REL and RELA dynamic relocations.

llvm-readelf is able to handle this case properly. This patch adds such a test case
and adjusts the llvm-readobj code to follow (and be consistent with its own RELR and PLTREL cases).

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




More information about the All-commits mailing list