diff options
author | Kevin Enderby <enderby@apple.com> | 2012-05-15 18:57:14 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2012-05-15 18:57:14 +0000 |
commit | 41854aea66ade4dea16a80bc8ef7ddf6c379d21f (patch) | |
tree | bad2ed69a461172242d1f798cda6c645efb8041f /tools | |
parent | b5cd41e26f89aad2f2dc4f5dc37577f7abf8528a (diff) | |
download | external_llvm-41854aea66ade4dea16a80bc8ef7ddf6c379d21f.zip external_llvm-41854aea66ade4dea16a80bc8ef7ddf6c379d21f.tar.gz external_llvm-41854aea66ade4dea16a80bc8ef7ddf6c379d21f.tar.bz2 |
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')
-rw-r--r-- | tools/llvm-objdump/MachODump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index 0e7f3fd..60c33f2 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) { |