Implement IMAGE_REL_BASED_LOW relocation

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman
2020-11-07 21:05:41 +01:00
parent fdf41455e9
commit 0a984057da
+4
View File
@@ -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
{