[all-commits] [llvm/llvm-project] 1af620: [llvm-readelf] - Improve dumping of objects withou...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Fri Jan 24 03:30:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1af6209d64dc503800797b647f9c281cc2c4ec87
      https://github.com/llvm/llvm-project/commit/1af6209d64dc503800797b647f9c281cc2c4ec87
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-01-24 (Fri, 24 Jan 2020)

  Changed paths:
    R llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64
    R llvm/test/Object/no-section-header-string-table.test
    A llvm/test/tools/llvm-readobj/ELF/sections-no-section-header-string-table.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readelf] - Improve dumping of objects without a section header string table.

We have a test/Object/no-section-header-string-table.test which checks
what happens when an object does not have a section header string table.
It does not check the full output though.
Currently our output is different from GNU readelf, because the latter prints
"<no-strings>" instead of a section name, while we print nothing.

This patch fixes this, adds a proper test case and removes the one from test/Object,
as it is not a right folder for llvm-readelf tests.

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




More information about the All-commits mailing list