From bd55eb8703546325e80a9234f9a3d853079bfd20 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sat, 15 Jul 2000 15:11:31 +0000 Subject: [PATCH] Add a warning when the normal load address for a win32 program is not available. --- loader/pe_image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loader/pe_image.c b/loader/pe_image.c index 0b7b68e90eb..9e418922de1 100644 --- a/loader/pe_image.c +++ b/loader/pe_image.c @@ -615,12 +615,14 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename ) if (load_addr == 0) { /* We need to perform base relocations */ - WARN("We need to perform base relocations for %s\n", filename); + WARN("Info: base relocations needed for %s\n", filename); dir = nt->OptionalHeader.DataDirectory+IMAGE_DIRECTORY_ENTRY_BASERELOC; if (dir->Size) reloc = dir->VirtualAddress; else { + if (nt->OptionalHeader.ImageBase == 0x400000) + ERR("Standard load address for a Win32 program not available - patched kernel ?\n"); FIXME( "FATAL: Need to relocate %s, but no relocation records present (%s). Try to run that file directly !\n", filename, (nt->FileHeader.Characteristics&IMAGE_FILE_RELOCS_STRIPPED)? -- 2.11.4.GIT