OSDN Git Service

[llvm-readelf] - Improve dumping of objects without a section header string table.
authorGeorgii Rymar <grimar@accesssoftek.com>
Wed, 22 Jan 2020 14:20:07 +0000 (17:20 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Fri, 24 Jan 2020 11:30:03 +0000 (14:30 +0300)
commit1af6209d64dc503800797b647f9c281cc2c4ec87
tree809667ea714b60b38efda61cf39d9ccef1f66d0d
parent7d20e80225b3e4f3f5a8c57929061bef55f3d855
[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
llvm/test/Object/Inputs/no-section-header-string-table.elf-x86-64 [deleted file]
llvm/test/Object/no-section-header-string-table.test [deleted file]
llvm/test/tools/llvm-readobj/ELF/sections-no-section-header-string-table.test [new file with mode: 0644]
llvm/tools/llvm-readobj/ELFDumper.cpp