projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e180fa9
)
MC/Mach-O: Also set the PCrel bit in the second half of paired relocation entries.
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 9 Mar 2010 21:27:47 +0000
(21:27 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 9 Mar 2010 21:27:47 +0000
(21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98081
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCAssembler.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCAssembler.cpp
b/lib/MC/MCAssembler.cpp
index 84dda6df74b12e1f2b0f801f9b497940c88b666c..b3e8114b4221836fc69075c0f711210a2f646994 100644
(file)
--- 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);