Use cat instead of sort -R to disable random relinking for now, until we
find the culprit. For whoever interested, using cat or sort avoids the
problem but using sort -r makes it 100% reproducible in my tests.
Suggested by deraadt@
-# $OpenBSD: Makefile.riscv64,v 1.17 2023/09/06 01:47:37 jsg Exp $
+# $OpenBSD: Makefile.riscv64,v 1.18 2023/11/11 18:00:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
CMACHFLAGS= -march=rv64gc -mcmodel=medany -mno-relax \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS}
-SORTR= sort -R
+SORTR= cat
.if ${IDENT:M-DNO_PROPOLICE}
CMACHFLAGS+= -fno-stack-protector
.endif