Skip to content

Commit

Permalink
Fix relative relocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Mar 30, 2019
1 parent eb80587 commit 45dc141
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ protected void performRelocations() throws MemoryAccessException, InvalidInputEx
}
else if (reloc.r_type == AARCH64_ElfRelocationConstants.R_AARCH64_RELATIVE)
{
long target_val = program.getMemory().getLong(target);
program.getMemory().setLong(target, target_val + this.baseAddress);
program.getMemory().setLong(target, this.baseAddress + reloc.addend);
}
else
{
Expand Down

0 comments on commit 45dc141

Please sign in to comment.