Skip to content

Commit 2abf624

Browse files
committed
Implement IMAGE_REL_BASED_LOW relocation
Signed-off-by: Simon Rozman <simon@rozman.si>
1 parent d302453 commit 2abf624

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MemoryModule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ PerformBaseRelocation(PMEMORYMODULE module, ptrdiff_t delta)
411411
// skip relocation
412412
break;
413413

414+
case IMAGE_REL_BASED_LOW:
415+
*(WORD *)(dest + offset) += LOWORD(delta);
416+
break;
417+
414418
case IMAGE_REL_BASED_HIGHLOW:
415419
// change complete 32 bit address
416420
{

0 commit comments

Comments
 (0)