diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-09 21:27:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-09 21:27:47 +0000 |
commit | aef9d7af69913740f313c5cc1dfe2a8e1d352227 (patch) | |
tree | dcbf13e94fc0d2f26a5cb341523c9a7849401e24 /lib/MC/MCAssembler.cpp | |
parent | e180fa962cc629255bbb0c5f185299c981b042ef (diff) |
MC/Mach-O: Also set the PCrel bit in the second half of paired relocation entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 84dda6df74..b3e8114b42 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -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); |