From 69bbb6bc36ae0a705807777558d05420dfc01589 Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 5 May 2015 11:00:50 +0000 Subject: Disable the use of floating-point and vector registers in the loader. They need the vfp unit to be enabled which may not be the case. --- sys/boot/efi/boot1/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/boot/efi/boot1/Makefile') diff --git a/sys/boot/efi/boot1/Makefile b/sys/boot/efi/boot1/Makefile index e611063..a955bdf 100644 --- a/sys/boot/efi/boot1/Makefile +++ b/sys/boot/efi/boot1/Makefile @@ -33,6 +33,9 @@ FILESMODE_boot1.efi= ${BINMODE} LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE}/ldscript.${MACHINE} LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared +.if ${MACHINE_CPUARCH} == "aarch64" +CFLAGS+= -msoft-float -mgeneral-regs-only +.endif .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" CFLAGS+= -fPIC LDFLAGS+= -Wl,-znocombreloc -- cgit v1.1