1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/tools/llvm-readobj
George Rimar 3781086e1e [Object/llvm-readelf/llvm-readobj] - Improve error reporting when e_shstrndx is broken.
When e_shstrndx is broken, it is impossible to get a section name.
In this patch I improved the error message we show and 
added tests for Object and for llvm-readelf/llvm-readobj

Message was changed in two places:
1) llvm-readelf/llvm-readobj previously used a code from Object/ELF.h,
now they have a modified version of it (it has less checks and allows
dumping broken things).
2) Code in Object/ELF.h is still used for generic cases.

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

llvm-svn: 366203
2019-07-16 11:07:30 +00:00
..
ARMEHABIPrinter.h [llvm-readobj] -u: don't crash when dumping SHT_ARM_EXIDX if .symtab doesn't exist 2019-05-29 06:18:34 +00:00
ARMWinEHPrinter.cpp [Object] Change getSectionName() to return Expected<StringRef> 2019-05-02 10:32:03 +00:00
ARMWinEHPrinter.h [Object] Change getSectionName() to return Expected<StringRef> 2019-05-02 10:32:03 +00:00
CMakeLists.txt [Object][XCOFF] Add an XCOFF dumper for llvm-readobj. 2019-05-03 12:57:07 +00:00
COFFDumper.cpp [PDB] Ignore .debug$S subsections with high bit set 2019-06-18 19:41:25 +00:00
COFFImportDumper.cpp [Object] Change SymbolicFile::printSymbolName to use Error 2019-05-10 09:59:04 +00:00
DwarfCFIEHPrinter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ELFDumper.cpp [Object/llvm-readelf/llvm-readobj] - Improve error reporting when e_shstrndx is broken. 2019-07-16 11:07:30 +00:00
Error.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Error.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-readobj.cpp [Object/llvm-readelf/llvm-readobj] - Improve error reporting when e_shstrndx is broken. 2019-07-16 11:07:30 +00:00
llvm-readobj.h [Object/llvm-readelf/llvm-readobj] - Improve error reporting when e_shstrndx is broken. 2019-07-16 11:07:30 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachODumper.cpp [llvm-readobj] Fix output interleaving issue caused by using multiple streams at the same time. 2019-06-12 20:16:22 +00:00
ObjDumper.cpp [llvm-readobj] Allow --hex-dump/--string-dump to dump multiple sections 2019-06-18 14:01:03 +00:00
ObjDumper.h [llvm-readobj] Allow --hex-dump/--string-dump to dump multiple sections 2019-06-18 14:01:03 +00:00
StackMapPrinter.h [StackMaps] Add location size to llvm-readobj -stackmap output 2019-04-13 03:08:45 +00:00
WasmDumper.cpp [WebAssembly] Support EXPLICIT_NAME symbols in llvm-readobj 2019-04-30 19:30:24 +00:00
Win64EHDumper.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Win64EHDumper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindowsResourceDumper.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindowsResourceDumper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
XCOFFDumper.cpp [Object][XCOFF] Add support for 64-bit file header and section header dumping. 2019-07-09 18:09:11 +00:00