[all-commits] [llvm/llvm-project] 1af3cb: [llvm-readobj/libObject] - Allow dumping objects t...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Nov 3 00:40:28 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1af3cb5424d578d2c58bc55740075bfc2a0f119b
      https://github.com/llvm/llvm-project/commit/1af3cb5424d578d2c58bc55740075bfc2a0f119b
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Object/ELFObjectFile.h
    M llvm/test/Object/invalid.test
    M llvm/test/tools/llvm-readobj/ELF/symbol-shndx.test
    M llvm/test/tools/obj2yaml/ELF/sht-symtab-shndx.yaml
    M llvm/test/tools/yaml2obj/ELF/sht-symtab-shndx.yaml
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/unittests/Object/CMakeLists.txt
    M llvm/unittests/Object/ELFObjectFileTest.cpp

  Log Message:
  -----------
  [llvm-readobj/libObject] - Allow dumping objects that has a broken SHT_SYMTAB_SHNDX section.

Currently it is impossible to create an instance of ELFObjectFile when the
SHT_SYMTAB_SHNDX can't be read. We error out when fail to parse the
SHT_SYMTAB_SHNDX section in the factory method.

This change delays reading of the SHT_SYMTAB_SHNDX section entries,
with it llvm-readobj is now able to work with such inputs.

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




More information about the All-commits mailing list