stack size change

Mahin Pandya <[email protected]>
Newsgroups gmane.comp.emulators.wine.devel
Message-ID <CAEbZ1jw36S8safSJySWLT7P6e5chsqDNa1fiAjoAUyUHitmFsw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.