[all-commits] [llvm/llvm-project] 693968: [llvm-readobj][XCOFF] Fix the error dumping for th...

Esme via All-commits all-commits at lists.llvm.org
Tue Aug 3 02:09:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69396896fb615067b04a3e0c220f93bc91a10eec
      https://github.com/llvm/llvm-project/commit/69396896fb615067b04a3e0c220f93bc91a10eec
  Author: Esme-Yi <esme.yi at ibm.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    M llvm/lib/Object/XCOFFObjectFile.cpp
    A llvm/test/tools/llvm-readobj/XCOFF/string-table.yaml
    M llvm/test/tools/yaml2obj/XCOFF/basic-doc64.yaml
    M llvm/test/tools/yaml2obj/XCOFF/long-symbol-name.yaml
    M llvm/tools/llvm-readobj/ObjDumper.cpp
    M llvm/tools/llvm-readobj/ObjDumper.h
    M llvm/tools/llvm-readobj/XCOFFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj][XCOFF] Fix the error dumping for the first
item of StringTable.

Summary: For the string table in XCOFF, the first 4 bytes
contains the length of the string table, so we should
print the string entries from fifth bytes. This patch
also adds tests for llvm-readobj dumping the string
table.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D105522




More information about the All-commits mailing list