mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 15:08:16 +00:00
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
This commit is contained in:
parent
e180fa962c
commit
aef9d7af69
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user