arm/pe stubs: the import address table is moved to the stub

committer: ml1050 <ml1050> 1146646915 +0000
This commit is contained in:
László Molnár
2006-05-03 09:01:55 +00:00
parent 2b6ae3908c
commit 1e66096ea7
6 changed files with 134 additions and 168 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ static int import(void)
if (ih.ddirs[PEDIR_IMPORT].vaddr == 0)
return print("no imports?\n");
void *imports = vaddr + ih.ddirs[PEDIR_IMPORT].vaddr;
void *coredll_imports = vaddr + get_le32(imports);
void *coredll_imports = vaddr + get_le32(imports + 16);
set_le32(coredll_imports, (unsigned) loadlibraryw);
set_le32(coredll_imports + 4, (unsigned) getprocaddressa);
set_le32(coredll_imports + 8, (unsigned) cachesync);