aboutsummaryrefslogtreecommitdiff
path: root/stand/defs.mk
diff options
context:
space:
mode:
Diffstat (limited to 'stand/defs.mk')
-rw-r--r--stand/defs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/defs.mk b/stand/defs.mk
index 9e291639e877..6fba2051301b 100644
--- a/stand/defs.mk
+++ b/stand/defs.mk
@@ -126,7 +126,7 @@ AFLAGS+= --32
# currently has no /boot/loader, but may soon.
CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD}
.if ${MACHINE_CPUARCH} == "aarch64"
-CFLAGS+= -mgeneral-regs-only -fPIC
+CFLAGS+= -mgeneral-regs-only -ffixed-x18 -fPIC
.elif ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -march=rv64imac -mabi=lp64
.else