hanchenye-llvm-project/llvm/tools/llvm-readobj
George Rimar a3569aced0 [llvm-readobj/llvm-objdump] - Improve how tool locate the dynamic table and report warnings about that.
Before this patch we gave a priority to a dynamic table found
from the section header.

It was discussed (here: https://reviews.llvm.org/D67078?id=218356#inline-602082)
that probably preferring the table from PT_DYNAMIC is better,
because it is what runtime loader sees.

This patch makes the table from PT_DYNAMIC be chosen at first place if it is available.
But also it adds logic to fall back to SHT_DYNAMIC if the table from the dynamic segment is
broken or fall back to use no table if both are broken.

It adds a few more diagnostic warnings for the logic above.

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

llvm-svn: 372122
2019-09-17 13:58:46 +00:00
..
ARMEHABIPrinter.h [llvm-readobj] - Remove 'error(Error EC)' helper. 2019-08-13 12:07:41 +00:00
ARMWinEHPrinter.cpp [Object/COFF.h] - Stop returning std::error_code in a few methods. NFCI. 2019-08-19 14:32:23 +00:00
ARMWinEHPrinter.h
CMakeLists.txt
COFFDumper.cpp [COFF] Add a ResourceSectionRef method for getting resource contents 2019-08-30 06:55:49 +00:00
COFFImportDumper.cpp
DwarfCFIEHPrinter.h Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
ELFDumper.cpp [llvm-readobj/llvm-objdump] - Improve how tool locate the dynamic table and report warnings about that. 2019-09-17 13:58:46 +00:00
Error.cpp
Error.h
LLVMBuild.txt
MachODumper.cpp Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
ObjDumper.cpp Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
ObjDumper.h [llvm-readelf] Support dumping of stack sizes sections with readelf --stack-sizes 2019-08-05 22:47:07 +00:00
StackMapPrinter.h
WasmDumper.cpp [WebAssembly] Make __attribute__((used)) not imply export. 2019-08-29 22:40:00 +00:00
Win64EHDumper.cpp Recommit r368812 "[llvm/Object] - Convert SectionRef::getName() to return Expected<>" 2019-08-14 11:10:11 +00:00
Win64EHDumper.h
WindowsResourceDumper.cpp [llvm-readobj] Print the resource type textually for .res files 2019-08-29 08:59:31 +00:00
WindowsResourceDumper.h
XCOFFDumper.cpp [llvm-readobj][XCOFF][NFC] Add return statement to avoid -Wimplicit-fallthrough warning 2019-08-28 20:59:17 +00:00
llvm-readobj.cpp [llvm-readobj] - Remove `reportError(std::error_code EC, StringRef Input)` helper. 2019-08-22 08:56:24 +00:00
llvm-readobj.h [llvm-readobj] - Remove `reportError(std::error_code EC, StringRef Input)` helper. 2019-08-22 08:56:24 +00:00