[PATCH] winegcc - do not create .exe.so

Pali Rohár pali.rohar at gmail.com
Fri Feb 18 17:47:11 CST 2011


2011/2/4 Pali Rohár <pali.rohar at gmail.com>:
> Hello,
>
> I created patch which implement correct _start section in ELF shared
> libraries/binaries which generate winegcc.
> Into _start section this patch add calling execve syscall which start
> wine with all arguments. So it is not needed to generate shell wrapper
> and .exe.so binary.
>
> This replace code on:
> http://wiki.winehq.org/Winelib_binaries_as_ELF_executables_not_.exe.so
>
> $ winegcc app.c --> generate only a.exe (shared object ELF binary), no
> aditional a.exe.so
> $ ./a.exe --> start binary correctly without shell wrapper
>
> --
> Pali Rohár
> pali.rohar at gmail.com
>

I rewrited my patch. Now set up correctly enviromental variables too.
Assembler code is only for x86.

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winegcc2.patch
Type: application/octet-stream
Size: 4700 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110219/5b2805cc/attachment.obj>


More information about the wine-devel mailing list