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(a)gmail.com
2011/2/4 Pali Rohár <pali.rohar(a)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(a)gmail.com
I rewrited my patch. Now set up correctly enviromental variables too. Assembler code is only for x86. -- Pali Rohár pali.rohar(a)gmail.com
participants (1)
-
Pali Rohár