Skip to content

Commit

Permalink
Implement IMAGE_REL_BASED_LOW relocation
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rozman <[email protected]>
  • Loading branch information
rozmansi committed Nov 7, 2020
1 parent d302453 commit 2abf624
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MemoryModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ PerformBaseRelocation(PMEMORYMODULE module, ptrdiff_t delta)
// skip relocation
break;

case IMAGE_REL_BASED_LOW:
*(WORD *)(dest + offset) += LOWORD(delta);
break;

case IMAGE_REL_BASED_HIGHLOW:
// change complete 32 bit address
{
Expand Down

0 comments on commit 2abf624

Please sign in to comment.