mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
MCJIT: Make sure to mask off non-type-field bits.
When comparing to the macho relocation type enum value, make sure we're only comparing against the bits in the RelType that correspond. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba9ba9f9bc
commit
01e1a97021
@ -254,7 +254,7 @@ void RuntimeDyldMachO::processRelocationRef(const ObjRelocationInfo &Rel,
|
||||
}
|
||||
}
|
||||
|
||||
if (Arch == Triple::arm && RelType == macho::RIT_ARM_Branch24Bit) {
|
||||
if (Arch == Triple::arm && (RelType & 0xf) == macho::RIT_ARM_Branch24Bit) {
|
||||
// This is an ARM branch relocation, need to use a stub function.
|
||||
|
||||
// Look up for existing stub.
|
||||
|
Loading…
Reference in New Issue
Block a user