summaryrefslogtreecommitdiff
path: root/tools/llvm-objdump
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-05-15 18:57:14 +0000
committerKevin Enderby <enderby@apple.com>2012-05-15 18:57:14 +0000
commit41854aea66ade4dea16a80bc8ef7ddf6c379d21f (patch)
treebad2ed69a461172242d1f798cda6c645efb8041f /tools/llvm-objdump
parentb5cd41e26f89aad2f2dc4f5dc37577f7abf8528a (diff)
downloadllvm-41854aea66ade4dea16a80bc8ef7ddf6c379d21f.tar.gz
llvm-41854aea66ade4dea16a80bc8ef7ddf6c379d21f.tar.bz2
llvm-41854aea66ade4dea16a80bc8ef7ddf6c379d21f.tar.xz
Fixed a bug in llvm-objdump when disassembling using -macho option for a binary
that has more than one symbol. The last symbol was not being disassembled to the end of the section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump')
-rw-r--r--tools/llvm-objdump/MachODump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp
index 0e7f3fdebe..60c33f2789 100644
--- a/tools/llvm-objdump/MachODump.cpp
+++ b/tools/llvm-objdump/MachODump.cpp
@@ -430,7 +430,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
// Stop disassembling either at the beginning of the next symbol or at
// the end of the section.
- bool containsNextSym = true;
+ bool containsNextSym = false;
uint64_t NextSym = 0;
uint64_t NextSymIdx = SymIdx+1;
while (Symbols.size() > NextSymIdx) {