[all-commits] [llvm/llvm-project] bd99fb: [llvm-readelf/obj] - Fix extended section symbol i...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Sep 23 03:53:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd99fb4e0b5f2f3dcd8c9b81b30b4faebb765001
      https://github.com/llvm/llvm-project/commit/bd99fb4e0b5f2f3dcd8c9b81b30b4faebb765001
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/mips-got.test
    M llvm/test/tools/llvm-readobj/ELF/mips-plt.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf/obj] - Fix extended section symbol indices printed in warnings for MIPS GOT/PLT entries.

Recent refactoring introduced a symbol index argument for `getFullSymbolName` method,
which is only used for reporting error messages about invalid extended symbol indexes.

There are few issues in the implementation and we don't report correct symbol indices
when dumping MIPS GOT/PLT entries currently.

This patch adds test cases and fixes the issue.

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




More information about the All-commits mailing list