]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/elfload.c
bsd-user: Add system independent stack, data and text limiting
authorWarner Losh <imp@FreeBSD.org>
Sat, 7 Aug 2021 00:48:37 +0000 (18:48 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commit312a0b1cbf941c37d3d3aeb1ed651613e04262b5
tree2cf26e84457c6bfb969712ef2f323320f7478ecf
parent82792244daa3f500c8cc83c7532754b32e285eb8
bsd-user: Add system independent stack, data and text limiting

Eliminate the x86 specific stack stuff in favor of more generic control
over the process size:
    target_maxtsiz  max text size
    target_dfldsiz  initial data size limit
    target_maxdsiz  max data size
    target_dflssiz  initial stack size limit
    target_maxssiz  max stack size
    target_sgrowsiz amount to grow stack
These can be set on a per-arch basis, and the stack size can be set
on the command line. Adjust the stack size parameters at startup.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/elfload.c
bsd-user/main.c
bsd-user/qemu.h