Skip to content

Commit d302453

Browse files
committed
Allow IMAGE_REL_BASED_DIR64 relocation on all platforms
This allows x86 process to relocate AMD64 EXE module. Signed-off-by: Simon Rozman <simon@rozman.si>
1 parent acd7da6 commit d302453

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

MemoryModule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,12 @@ PerformBaseRelocation(PMEMORYMODULE module, ptrdiff_t delta)
419419
}
420420
break;
421421

422-
#ifdef _WIN64
423422
case IMAGE_REL_BASED_DIR64:
424423
{
425424
ULONGLONG *patchAddr64 = (ULONGLONG *) (dest + offset);
426425
*patchAddr64 += (ULONGLONG) delta;
427426
}
428427
break;
429-
#endif
430428

431429
default:
432430
//printf("Unknown relocation: %d\n", type);

0 commit comments

Comments
 (0)