http://bugs.winehq.org/show_bug.cgi?id=3591
--- Comment #6 from Dmitry Timoshkov dmitry@codeweavers.com 2007-11-27 01:28:49 --- (In reply to comment #5)
BeginUpdateResource & EndUpdateResource are now implemented (bug 3897), but one more is missing - BindImageEx. When using py2exe I get: *** finding dlls needed *** fixme:imagehlp:BindImageEx (7, "C:\python25\DLLs\_hashlib.pyd", ... C:\python25\l"..., (null), 0x541600): stub ... *** create binaries *** *** byte compile python files *** ... and it finishes succesfully.
BindImage being a stub doesn't matter. 'Binding' means changing the loading base and adapting imports/exports accordingly to avoid an image relocation at run-time.
But the strange thing is that I can successfully run generated exe file under wine and Win98, but under XP trying to run it gives: app.exe is not a valid Win32 application.
Report this to py2exe authors, looks like they create an ivalid PE image, and rely on BindImage to fix it for them.