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

Pali Rohár pali.rohar at gmail.com
Wed Feb 23 12:26:15 CST 2011


---------- Forwarded message ----------
From: Pali Rohár <pali.rohar at gmail.com>
Date: 2011/2/19
Subject: Re: [PATCH] winegcc - do not create .exe.so
To: wine-devel at winehq.org


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-patches/attachments/20110223/2ff75fe4/attachment-0001.obj>


More information about the wine-patches mailing list