1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/tools/llvm-objdump
Michael Trent 6b390602a4 llvm-objdump -m -D should disassemble all text segments
Summary:
When running llvm-objdump with the -macho option objdump will by default
disassemble only the __TEXT,__text section (or __TEXT_EXEC,__text when
disassembling MH_KEXT_BUNDLE files). The -disassemble-all option is
treated no diferently than -disassemble.

This change upates llvm-objdump's MachO parsing code to disassemble all
__text sections found in a file when -disassemble-all is specified. This
is useful for disassembling files with more than one __text section, or
when disassembling files whose __text section is not present in __TEXT.

I added a lit test case that verifies "llvm-objdump -m -d" and 
"llvm-objdump -m -D" produce the expected results on a reference binary. 
I also updated the CommandGuide documentation for llvm-objdump.rst and
verified it renders correctly as man and html.

rdar://42899338

Reviewers: ab, pete, lhames

Reviewed By: lhames

Subscribers: rupprecht, llvm-commits

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

llvm-svn: 351238
2019-01-15 20:41:30 +00:00
..
CMakeLists.txt Fix debug build by adding missing dependencies on libBinaryFormat 2018-05-15 00:46:43 +00:00
COFFDump.cpp [llvm-objdump] - Cleanup the code. NFCI. 2019-01-15 09:19:18 +00:00
ELFDump.cpp [llvm-objdump] Use auto declaration in typecasting 2018-11-15 11:51:13 +00:00
llvm-objdump.cpp [llvm-obdump] - Fix the help lines for -stop-address and -z. 2019-01-15 14:03:50 +00:00
llvm-objdump.h [llvm-objdump] - Cleanup the code. NFCI. 2019-01-15 09:19:18 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
MachODump.cpp llvm-objdump -m -D should disassemble all text segments 2019-01-15 20:41:30 +00:00
WasmDump.cpp Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00