mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
[MCJIT] Fix an overly-aggressive check in RuntimeDyldMachOARM.
This should fix the MachO_ARM_PIC_relocations.s test failures on some 32-bit testers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214613 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -105,11 +105,6 @@ public:
|
|||||||
Value >>= 2;
|
Value >>= 2;
|
||||||
// Mask the value to 24 bits.
|
// Mask the value to 24 bits.
|
||||||
uint64_t FinalValue = Value & 0xffffff;
|
uint64_t FinalValue = Value & 0xffffff;
|
||||||
// Check for overflow.
|
|
||||||
if (Value != FinalValue) {
|
|
||||||
Error("ARM BR24 relocation out of range.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// FIXME: If the destination is a Thumb function (and the instruction
|
// FIXME: If the destination is a Thumb function (and the instruction
|
||||||
// is a non-predicated BL instruction), we need to change it to a BLX
|
// is a non-predicated BL instruction), we need to change it to a BLX
|
||||||
// instruction instead.
|
// instruction instead.
|
||||||
|
Reference in New Issue
Block a user