MC/Mach-O: Also set the PCrel bit in the second half of paired relocation entries.

llvm-svn: 98081
This commit is contained in:
Daniel Dunbar 2010-03-09 21:27:47 +00:00
parent 4680000b27
commit d49794e703
1 changed files with 2 additions and 4 deletions

View File

@ -489,13 +489,11 @@ public:
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);