https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111448
--- Comment #5 from Andreas Schwab <sch...@linux-m68k.org> --- GCC tries to increase the stack limit to 64Mb, but the qemu user-space emulation uses a fixed stack size (initialized on startup from the current stack limit) and ignores the RLIMIT_STACK request.