1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/llvm-readobj
Fangrui Song dbbc693bbe [llvm-readobj] Allow --hex-dump/--string-dump to dump multiple sections
1) `-x foo` currently dumps one `foo`. This change makes it dump all `foo`.
2) `-x foo -x foo` currently dumps `foo` twice. This change makes it dump `foo` once.
   In addition, if foo has section index 9, `-x foo -x 9` dumps `foo` once.
3) Give a warning instead of an error if `foo` does not exist.

The new behaviors match GNU readelf.

Also, print a new line as a separator between two section dumps.
GNU readelf uses two lines, but one seems good enough.

Reviewed By: grimar, jhenderson

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

llvm-svn: 363683
2019-06-18 14:01:03 +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 [llvm-readobj] Fix output interleaving issue caused by using multiple streams at the same time. 2019-06-12 20:16:22 +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 [llvm-readobj] Don't abort printing of dynamic table if string reference is invalid 2019-06-14 12:02:01 +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 [llvm-readobj] Allow --hex-dump/--string-dump to dump multiple sections 2019-06-18 14:01:03 +00:00
llvm-readobj.h [llvm-readobj/llvm-readelf] - Don't fail to dump the object if .dynsym has broken sh_link field. 2019-06-10 14:23:46 +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 [XCOFF] Implement parsing symbol table for xcoffobjfile and output as yaml format 2019-05-28 14:37:59 +00:00