llvm-project/llvm/lib/Object
diggerlin a26a441b99 [llvm-objdump][XCOFF] Use symbol index+symbol name + storage mapping class as label for -D
SUMMARY:

For the llvm-objdump -D, the symbol name is used as a label in the disassembly for the specific address (when a symbol address is equal to the virtual address in the dump).

In XCOFF, multiple symbols may have the same name, being differentiated by their storage mapping class. It is helpful to print the QualName and not just the name when forming the output label for a csect symbol. The symbol index further removes any ambiguity caused by duplicate names.

To maintain compatibility with the binutils objdump, the XCOFF-specific --symbol-description option is added to enable the enhanced format.

Reviewers: hubert.reinterpretcast, James Henderson, Jason Liu ,daltenty
Subscribers: wuzish, nemanjai, hiraditya

Differential Revision: https://reviews.llvm.org/D72973
2020-04-06 10:10:10 -04:00
..
Archive.cpp [Object] Fix handling of large archive members 2020-03-11 10:29:45 +00:00
ArchiveWriter.cpp Drop a StringMap.h include, NFC 2020-03-11 15:45:34 -07:00
Binary.cpp [Object] Add tapi files to object 2019-08-21 23:30:53 +00:00
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
COFFImportFile.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
COFFModuleDefinition.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
COFFObjectFile.cpp [Object] Add the method for checking if a section is a debug section 2020-04-02 10:56:00 +02:00
Decompressor.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
ELF.cpp [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
ELFObjectFile.cpp [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
Error.cpp [Object] isNotObjectErrorInvalidFileType: simplify 2019-07-13 09:28:33 +00:00
IRObjectFile.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
IRSymtab.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
LLVMBuild.txt [Object] Add tapi files to object 2019-08-21 23:30:53 +00:00
MachOObjectFile.cpp [Object] Add the method for checking if a section is a debug section 2020-04-02 10:56:00 +02:00
MachOUniversal.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
Minidump.cpp Object/minidump: Add support for the MemoryInfoList stream 2019-10-08 14:15:32 +00:00
ModuleSymbolTable.cpp Another round of GCC5 fixes. 2020-01-29 02:09:24 +01:00
Object.cpp [Object] Extend MachOUniversalBinary::getObjectForArch 2019-09-19 00:02:12 +00:00
ObjectFile.cpp [Object] Add the method for checking if a section is a debug section 2020-04-02 10:56:00 +02:00
RecordStreamer.cpp [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
RecordStreamer.h [MC] De-capitalize another set of MCStreamer::Emit* functions 2020-02-14 19:26:52 -08:00
RelocationResolver.cpp [MIPS][ELF] Use PC-relative relocations in .eh_frame when possible 2020-01-13 14:14:03 +00:00
SymbolSize.cpp [NFC] Fix unused variable warning. 2020-01-28 17:19:23 -08:00
SymbolicFile.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
TapiFile.cpp [TextAPI] Arch&Platform to Target 2019-09-20 14:32:34 +00:00
TapiUniversal.cpp Revert "Remove redundant "std::move"s in return statements" 2020-02-10 07:07:40 -08:00
WasmObjectFile.cpp [WebAssembly] Move event section before global section 2020-03-25 11:49:03 -07:00
WindowsMachineFlag.cpp Share /machine: handling code with llvm-cvtres too 2019-06-12 11:32:43 +00:00
WindowsResource.cpp Prevent gcc from issuing a warning upon coffnamecpy 2020-02-18 16:13:59 +01:00
XCOFFObjectFile.cpp [llvm-objdump][XCOFF] Use symbol index+symbol name + storage mapping class as label for -D 2020-04-06 10:10:10 -04:00