浏览代码

Include the full 64 bits of relocation data in the type info for MachO relocations, so that we can recognize scattered relocations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143033 91177308-0d34-0410-b5e6-96231b3b80d8
Owen Anderson 14 年之前
父节点
当前提交
f8261e7d07
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lib/Object/MachOObjectFile.cpp

+ 3 - 1
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,