aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-06-15 21:14:01 +0000
committerKevin Enderby <enderby@apple.com>2016-06-15 21:14:01 +0000
commitd8a6e83dcf7e21b016a1db27a7cb6c1027bd6982 (patch)
tree431f5634b7dd50c359fb2a11c39e0643adcb295d /llvm/lib/Transforms/Utils/Utils.cpp
parentf2a4f8f10a1399dfe99ad50bb8863c66b41d4c4f (diff)
downloadllvm-d8a6e83dcf7e21b016a1db27a7cb6c1027bd6982.zip
llvm-d8a6e83dcf7e21b016a1db27a7cb6c1027bd6982.tar.gz
llvm-d8a6e83dcf7e21b016a1db27a7cb6c1027bd6982.tar.bz2
Fix llvm-objdump when disassembling a stripped Mach-O binary with the -macho option.
It was printing out nothing in this case. llvm-objdump tries to disassemble sections a symbol at a time. In the case of a fully stripped Mach-O executable the only symbol remaining in the (__TEXT,__text) section is the special linker defined symbol __mh_execute_header . This symbol is special in that while it is N_SECT symbol in the (__TEXT,__text) its address is before the start of the (__TEXT,__text). It’s address is the start of the __TEXT segment which is where the mach header is statically linked. So the code in DisassembleMachO() needs to deal with this case specially. rdar://26778273 llvm-svn: 272837
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions