Excuse the delay, I've been away from my mail.

I don't have a clue. Have you tried looking this up on MSDN ?

I'm a bit confused about what you write, though. Are you saying that
adding one NOP changes the SizeOfImage from 10000 to 11000 ? 

        Danny

On Thu, 2008-08-07 at 11:42 +0200, Jérôme Decoodt wrote:
> 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,
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


-------------------------------------------------------------------------
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