projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9c4ad
)
Fix off-by-one error when printing relocations inline with disassembly.
author
Owen Anderson
<resistor@mac.com>
Tue, 25 Oct 2011 20:15:39 +0000
(20:15 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 25 Oct 2011 20:15:39 +0000
(20:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142952
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-objdump/llvm-objdump.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-objdump/llvm-objdump.cpp
b/tools/llvm-objdump/llvm-objdump.cpp
index 0b6bd22017b2d85b677426fbe698caeee8abd83b..c2480df14157354ae32ffc01f853aab9fa225849 100644
(file)
--- a/
tools/llvm-objdump/llvm-objdump.cpp
+++ b/
tools/llvm-objdump/llvm-objdump.cpp
@@
-306,7
+306,7
@@
static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
SmallString<32> val;
if (error(rel_cur->getAddress(addr))) goto skip_print_rel;
// Stop when rel_cur's address is past the current instruction.
- if (addr > Index + Size) break;
+ if (addr >
=
Index + Size) break;
if (error(rel_cur->getTypeName(name))) goto skip_print_rel;
if (error(rel_cur->getValueString(val))) goto skip_print_rel;