Thanks for investigating that kind of low level stuff.
Could I ask why you are playing with PE executable ? You learn viruses ;-)

On Tue, 26 Aug 2008 18:07:25 +0200, Jérôme Decoodt
<[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Some news about this bugs... It appears that compiling under gcc then
> linking into visual can work. In details, I do :
> 
> - compile source into .o
> - edit the .o to remove the write attribute of .text section (sed -e
>   's/\x20\x00\x30\xe0/\x20\x00\x30\x60/')
> - call linker.exe from Visual Studio to create the DLL.
> 
> For this, I removed all the stuf about mingw32, _DllMainCRTStartup, etc.
> and wrote a custom DllMain function as entry point.
> 
> Such a DLL can be loaded in Windows Mobile 6.1.
> 
> Hhow can I instruct gcc to not put the write attribute in .text ?
> 
> I'm doing some further investigations about linking in gcc and compiling
> in Visual ; I'll post the results here.
> 
> Regards,
>


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