Hello, > I don't have a clue. Have you tried looking this up on MSDN ?
I've search for this in MSDN but I didn't find anything that corresponds to my problem. > I'm a bit confused about what you write, though. Are you saying that > adding one NOP changes the SizeOfImage from 10000 to 11000 ? The idea is to have the DLL source compiling with SizeOfImage as near as possible from 0x10000. Then, when you add juste an instruction like "nop", gcc will need to enlarge the code section (.text IIRC) with SectionAlignment bytes more, resulting in a SizeOfImage of 0x11000 (by default, SectionAlignment is 0x1000). Furthermore, a DLL compiled with Visual Studio 2005 doesn't suffer this problem, even if SizeOfImage > 0x10000 (but compiling an autotools project in Visual Studio is a real pain). 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