Workaround for broken clang which has a broken -fno-zero-initialized-in-bss
authorclaudio <claudio@openbsd.org>
Thu, 14 Dec 2023 14:04:57 +0000 (14:04 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 14 Dec 2023 14:04:57 +0000 (14:04 +0000)
commitd6514e0fadfd6647939b0ac6ccce475f77d1e512
tree76ae94175e04d5083597af9a5d16f70d37d112db
parentfda3605fd25b396c170ff81693901b0204a2f7cf
Workaround for broken clang which has a broken -fno-zero-initialized-in-bss
implementation.

Set nkmempages to -1 by default instead of 0 so that the value ends up in
the data section. This way config(8) is able to alter the value as promised.

See also: https://github.com/llvm/llvm-project/issues/74632
OK miod@
sys/kern/kern_malloc.c