New comment by wangp on void-packages repository https://github.com/void-linux/void-packages/pull/37688#issuecomment-1254376906 Comment: Interesting suggestion. I will add the build option, but I would like other people's opinions if it should be the default. I'm mainly packaging mimalloc to use with mold. Here is a benchmark of mold on my machine. Benchmark # 1 uses mold with mimalloc in non-secure mode. Benchmark # 2 uses mold with mimalloc in secure mode. ``` Benchmark #1: ../../link-test.sh Time (mean ± σ): 255.3 ms ± 1.5 ms [User: 22.2 ms, System: 7.4 ms] Range (min … max): 252.9 ms … 257.7 ms 20 runs Benchmark #2: LD_LIBRARY_PATH=/tmp/mimalloc-secure/usr/lib ../../link-test.sh Time (mean ± σ): 265.1 ms ± 1.7 ms [User: 26.8 ms, System: 8.1 ms] Range (min … max): 261.7 ms … 267.6 ms 20 runs Summary '../../link-test.sh' ran 1.04 ± 0.01 times faster than 'LD_LIBRARY_PATH=/tmp/mimalloc-secure/usr/lib ../../link-test.sh', -3.7% ``` In relative terms, a 3-4% slowdown is significant, but in absolute terms, 10 ms is not something that I would notice. So I think I would be okay with making secure mode the default, even if I don't see the need for it in a linker. (For interest, the same link command using GNU ld takes 1.9 s.)