MC/Mach-O: Also set the PCrel bit in the second half of paired relocation entries.
llvm-svn: 98081
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index 84dda6d..b3e8114 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -489,13 +489,11 @@
Relocs.push_back(MRE);
if (Type == RIT_LocalDifference) {
- Type = RIT_Pair;
-
MachRelocationEntry MRE;
MRE.Word0 = ((0 << 0) |
- (Type << 24) |
+ (RIT_Pair << 24) |
(Log2Size << 28) |
- (0 << 30) |
+ (IsPCRel << 30) |
RF_Scattered);
MRE.Word1 = Value2;
Relocs.push_back(MRE);