Hello,

I'm trying to port an application which depends on some DLLs. I build
all the stuff with mingw32ce, svn version 1167, built on Ubuntu. The
test case is just a DLL with a lot of "asm volatile("nop");" in an
exported function and a program which call this function.

All work fine when the DLL attribute SizeOfImage (reported by objdump
-x) is under 10000. When I add just one nop in the DLL, the SizeOfImage
grow up to 11000 and the device (HTC P3700/Diamond) won't run it,
displaying "xxx is not a valid Pocket PC application". A HTC P3600
launch it fine.

I've looked in Dependency Walker if there was missing DLLs but the .exe
and .dll just depends on coredll.dll which is present on the device.
I manually build libgcc staticly because I had some problems when an
application was linked to libgcc.dll (SizeOfImage in libgcc is 11000...)

Furthermore, if i manually adjust SizeOfImage in the PE header of the
DLL to 10000, the .exe can be launched.

Does anyone have a clue about what can be wrong ?

Best regards,
-- 
Jérôme Decoodt

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to