MC/Mach-O/ARM: Don't try to use scattered relocs for BR24 fixups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-12-22 21:26:43 +00:00
parent ecbbf40d5c
commit 72123334ad
2 changed files with 39 additions and 25 deletions

View File

@@ -962,7 +962,7 @@ public:
//
// Is this right for ARM?
uint32_t Offset = Target.getConstant();
if (IsPCRel)
if (IsPCRel && !Is24BitBranch)
Offset += 1 << Log2Size;
if (Offset && SD && !doesSymbolRequireExternRelocation(SD))
return RecordARMScatteredRelocation(Asm, Layout, Fragment, Fixup,