Fix R_PPC_REL24 relocation

This commit is contained in:
Maschell 2021-09-24 15:01:44 +02:00
parent 36f73779f6
commit 075d1ceba0

View File

@ -158,7 +158,7 @@ bool elfLinkOne(char type, size_t offset, int32_t addend, uint32_t destination,
break;
}
}
if (freeSlot != NULL) {
if (freeSlot == nullptr) {
DEBUG_FUNCTION_LINE("***24-bit relative branch cannot hit target. Trampolin data list is full\n");
DEBUG_FUNCTION_LINE("***value %08X - target %08X = distance %08X\n", value, target, distance);
return false;