diff options
author | diggerlin <digger.llvm@gmail.com> | 2020-04-06 10:09:12 -0400 |
---|---|---|
committer | diggerlin <digger.llvm@gmail.com> | 2020-04-06 10:10:10 -0400 |
commit | a26a441b99ff313a56c3e35ee526342d3f43c8b8 (patch) | |
tree | 07bc61735f4bebd4559fcc0662a8322f9b259553 /llvm/docs/CommandGuide | |
parent | 9072df8ac1431dba51394b77ead766aada82867f (diff) | |
download | llvm-a26a441b99ff313a56c3e35ee526342d3f43c8b8.zip llvm-a26a441b99ff313a56c3e35ee526342d3f43c8b8.tar.gz llvm-a26a441b99ff313a56c3e35ee526342d3f43c8b8.tar.bz2 |
[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
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objdump.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst index c236d2d..2de48d6 100644 --- a/llvm/docs/CommandGuide/llvm-objdump.rst +++ b/llvm/docs/CommandGuide/llvm-objdump.rst @@ -325,6 +325,13 @@ MACH-O ONLY OPTIONS AND COMMANDS Display weak binding information. +XCOFF ONLY OPTIONS AND COMMANDS +--------------------------------- + +.. option:: --symbol-description + + Add symbol description to disassembly output. + BUGS ---- |