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:
9c5edc0
)
The order of the two symbol listings in a Macho x86_64 subtractor relocation is rever...
author
Owen Anderson
<resistor@mac.com>
Wed, 26 Oct 2011 17:28:49 +0000
(17:28 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 26 Oct 2011 17:28:49 +0000
(17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143035
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/MachOObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/MachOObjectFile.cpp
b/lib/Object/MachOObjectFile.cpp
index 82b9231ed8d84bfd952d190bc1fefd886c302bd4..97eb52d70d0e8e81ae4d22f3f9815c65b2629cf8 100644
(file)
--- a/
lib/Object/MachOObjectFile.cpp
+++ b/
lib/Object/MachOObjectFile.cpp
@@
-835,7
+835,9
@@
error_code MachOObjectFile::getRelocationValueString(DataRefImpl Rel,
if (error_code ec = getRelocationTargetName(RENext->Word1, SucName))
report_fatal_error(ec.message());
- fmt << Name << "-" << SucName;
+ // The X86_64_RELOC_UNSIGNED contains the minuend symbol,
+ // X86_64_SUBTRACTOR contains to the subtrahend.
+ fmt << SucName << "-" << Name;
}
case 6: // X86_64_RELOC_SIGNED1
fmt << Name << "-1";