mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01: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.
llvm-svn: 128169
This commit is contained in:
parent
b702dae9b2
commit
b201c7dede
@ -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