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