mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
Fix a bug introduced by my patch yesterday: BL is a 4-byte instructions like BLX, rather than a 2-byte instruction like B.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd47a4a307
commit
7614783f2d
@ -949,14 +949,13 @@ public:
|
||||
|
||||
// Handle Thumb branches.
|
||||
case ARM::fixup_arm_thumb_br:
|
||||
case ARM::fixup_arm_thumb_bl:
|
||||
RelocType = unsigned(macho::RIT_ARM_ThumbBranch22Bit);
|
||||
Log2Size = llvm::Log2_32(2);
|
||||
return true;
|
||||
|
||||
|
||||
case ARM::fixup_arm_thumb_bl:
|
||||
case ARM::fixup_arm_thumb_blx:
|
||||
RelocType = unsigned(macho::RIT_ARM_ThumbBranch22Bit);
|
||||
// Report as 'long', even though that is not quite accurate.
|
||||
Log2Size = llvm::Log2_32(4);
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user