[all-commits] [llvm/llvm-project] 3b0a4e: [llvm-readobj] - Refine logic of the symbol table ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Aug 12 04:04:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b0a4e9584535b7799825c0cefc89d2571da5901
      https://github.com/llvm/llvm-project/commit/3b0a4e9584535b7799825c0cefc89d2571da5901
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-12 (Wed, 12 Aug 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/packed-relocs.test
    M llvm/test/tools/llvm-readobj/ELF/relocations.test
    M llvm/test/tools/llvm-readobj/ELF/relr-relocs.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - Refine logic of the symbol table locating in printRelocationsHelper().

This removes the last `unwrapOrError` call from the `printRelocationsHelper`.

There is a little additional complexity because of `SHT_RELR/SHT_ANDROID_RELR` sections.
Such sections contains only relative relocations and they do not have a
symbol table associated with them, hence we should not try to treat
their `sh_link` field as a reference to a symbol table.

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




More information about the All-commits mailing list