ld.so doesn't use the FP registers.
ok deraadt@
-# $OpenBSD: Makefile.inc,v 1.1 2021/04/28 15:16:26 drahn Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2021/06/26 14:47:54 kettenis Exp $
CFLAGS += -fpic
-CFLAGS += -march=rv64gc # this prevents the use of float in ld.so
+CFLAGS += -march=rv64imac # this prevents the use of float in ld.so
AFLAGS += -D_STANDALONE
+AFLAGS += -march=rv64imac
CPPFLAGS += -I${.CURDIR}/../../lib/libc/arch/riscv64
LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script