Running NT PPC with wine

emmanuel maillard e.rsz at libertysurf.fr
Thu Apr 29 16:04:02 CDT 2004


Hi all,

I'm looking for people using wine on linuxPPC  who want try my patches 
to run a NT PPC exe.
(i plan to reinstall linux/ppc to make my tests but i need to rearrange 
my HDs before, and it will
take times )
This doesn't work for me on MacOSX but this could be due to our port 
for darwin, this why i need to have feedback
from linux/ppc users.

PE headers are store in little endian even for an PPC file, so I test 
endiannes and swap PE infos if needed.

For my test i use winimage 3.0 for NT PPC, available here : 
http://www.winimage.com/download.htm

map_image seems good :

trace:module:map_image mapped PE file at 0x4f000-0xe5000
Trying to load PE image for unsupported architecture (PowerPC)
trace:module:map_image mapping section .text at 0x50000 off 400 size 
6c600 flags 60000020
trace:module:map_image mapping section .rdata at 0xbd000 off 6ca00 size 
1c00 flags 40000040
trace:module:map_image mapping section .data at 0xbf000 off 6e600 size 
3600 flags c0000040
trace:module:map_image clearing 0xc2600 - 0xc3000
trace:module:map_image mapping section .pdata at 0xc8000 off 71c00 size 
5c00 flags 40000040
trace:module:map_image mapping section .idata at 0xce000 off 77800 size 
3000 flags c0000040
trace:module:map_image mapping section .reldata at 0xd1000 off 7a800 
size 200 flags c0000040
trace:module:map_image mapping section .rsrc at 0xd2000 off 7aa00 size 
e000 flags 40000040
trace:module:map_image mapping section .reloc at 0xe0000 off 88a00 size 
5000 flags 42000040
trace:module:do_relocations relocating from 0x400000-0x496000 to 
0x4f000-0xe5000
trace:module:do_relocations 1848 relocations for page 6e000
trace:module:do_relocations 816 relocations for page 6f000
trace:module:do_relocations 80 relocations for page 70000
trace:module:do_relocations 40 relocations for page 71000
trace:module:do_relocations 80 relocations for page 72000
trace:module:do_relocations 32 relocations for page 73000
trace:module:do_relocations 1236 relocations for page 79000
trace:module:do_relocations 1240 relocations for page 7a000
trace:module:do_relocations 1240 relocations for page 7b000
trace:module:do_relocations 1236 relocations for page 7c000
trace:module:do_relocations 1240 relocations for page 7d000
trace:module:do_relocations 796 relocations for page 7e000
trace:module:do_relocations 1316 relocations for page 7f000
trace:module:do_relocations 704 relocations for page 80000
trace:module:do_relocations 184 relocations for page 82000

But when process start :
....
trace:module:MODULE_InitDLL entry : 0x0(L"WINIMAGE.exe",0x1) - END
0009:Starting process L"F:\\Desktop\\wimapp30\\WINIMAGE.exe" 
(entryproc=0xbe750)

	wait few seconds ...

wine: Unhandled exception (thread 0009), starting debugger...

i test it with mosaic too but failed due to an undefined symbol in 
iphlpapi.dll
"err:module:load_builtin_dll failed to load .so lib for builtin 
L"iphlpapi.dll": dlcompat: dyld: wine Undefined symbols:
_res_9_init"

If someone with a Linux/x86  want to launch winimage PPC with +module 
enable to send me the output to see if my changes
give right values it will be helpfull to.

Thanks in advance

emmanuel

the patches (kernel/process.c, ntdll/loader.c, ntdll/virtual.c, 
server/mapping.c and winedump/pe.c) : 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swap_them_all.tgz
Type: application/x-gzip
Size: 13948 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040429/8340352e/swap_them_all.bin
-------------- next part --------------

full winimage output with +module :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Winimage3.0-NT-PPC.log.gz
Type: application/x-gzip
Size: 33840 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040429/8340352e/Winimage3.0-NT-PPC.log.bin


More information about the wine-devel mailing list