Hello everyone,
I am looking to change stack size of Wine executable. Apart from specifying .def (which contains STACKSIZE value) file during compilation, is there any other option which is supported by Wine? Some kind configurable runtime option without modifying binary?
Sample code: $ cat hello.c #include <stdio.h> #include <windows.h>
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{ char buffer [1024*1024*3]; printf( "Hello world\n"); return 0; }
$ winegcc hello.c $ ./a.out Segmentation fault (core dumped)
Note: I am able to change/patch stack size via modifying a.out.so file. Any pointers/suggestion are welcome. Thanks in advance.
regards, Mahin
In case anyone is interested in changing stack size in ELF file, feel free to refer: ActianCorp/wine_elf_patcher: WINE ELF Patcher (github.com) https://github.com/ActianCorp/wine_elf_patcher
Thanks.
Mahin
On Thu, Aug 8, 2024 at 5:45 PM Mahin Pandya [email protected] wrote:
Hello everyone,
I am looking to change stack size of Wine executable. Apart from specifying .def (which contains STACKSIZE value) file during compilation, is there any other option which is supported by Wine? Some kind configurable runtime option without modifying binary?
Sample code: $ cat hello.c #include <stdio.h> #include <windows.h>
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{ char buffer [1024*1024*3]; printf( "Hello world\n"); return 0; }
$ winegcc hello.c $ ./a.out Segmentation fault (core dumped)
Note: I am able to change/patch stack size via modifying a.out.so file. Any pointers/suggestion are welcome. Thanks in advance.
regards, Mahin