mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 23:26:31 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user