Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion arch/armv7/arch_armv7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,7 @@ class ArmElfRelocationHandler: public RelocationHandler
dest32[0] = (info.implicitAddend ? dest32[0] : (uint32_t)info.addend) + (target & ~1) - (uint32_t)reloc->GetAddress();
break;
}
case R_ARM_PC24:
case R_ARM_JUMP24:
{
if (target & 1)
Expand Down Expand Up @@ -2550,8 +2551,14 @@ class ArmElfRelocationHandler: public RelocationHandler
break;
case R_ARM_TLS_DTPOFF32:
break;
case R_ARM_SBREL31:
case R_ARM_PC24:
reloc.pcRelative = true;
reloc.baseRelative = false;
reloc.hasSign = false;
reloc.size = 3;
reloc.truncateSize = 3;
break;
case R_ARM_SBREL31:
case R_ARM_LDR_PC_G0:
case R_ARM_ABS16:
case R_ARM_ABS12:
Expand Down