mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-24 16:15:25 -04:00
Implement IMAGE_REL_BASED_LOW relocation
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user