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 | d49794e703e41c2d8f491b5abc3de8ce33d3a50d (patch) | |
tree | b0f084fa49fbdacd493f6b29d42260957dc947af /llvm/lib/MC/MCAssembler.cpp | |
parent | 4680000b272adf2f532e58acc39d08e23f5e6c0b (diff) | |
download | bcm5719-llvm-d49794e703e41c2d8f491b5abc3de8ce33d3a50d.tar.gz bcm5719-llvm-d49794e703e41c2d8f491b5abc3de8ce33d3a50d.zip |
MC/Mach-O: Also set the PCrel bit in the second half of paired relocation entries.
llvm-svn: 98081
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 84dda6df74b..b3e8114b422 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/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); |