Re: stack size change

Mahin Pandya <[email protected]>
Newsgroups gmane.comp.emulators.wine.devel
Message-ID <CAEbZ1jzJSm5RrtZH3aV255Wtcn5387t-f=7uWqwhf+zcg9EQsw@mail.gmail.com>
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
>
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.