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:
9472b8d
)
Include the full 64 bits of relocation data in the type info for MachO relocations...
author
Owen Anderson
<resistor@mac.com>
Wed, 26 Oct 2011 17:10:22 +0000
(17:10 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 26 Oct 2011 17:10:22 +0000
(17:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143033
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 9ed5445ddaa983d1746329f3c6187bc694efef45..82b9231ed8d84bfd952d190bc1fefd886c302bd4 100644
(file)
--- a/
lib/Object/MachOObjectFile.cpp
+++ b/
lib/Object/MachOObjectFile.cpp
@@
-637,7
+637,9
@@
error_code MachOObjectFile::getRelocationType(DataRefImpl Rel,
uint64_t &Res) const {
InMemoryStruct<macho::RelocationEntry> RE;
getRelocation(Rel, RE);
- Res = RE->Word1;
+ Res = RE->Word0;
+ Res <<= 32;
+ Res |= RE->Word1;
return object_error::success;
}
error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,