From 0362dbbd683bdb6a18828784371f1693fd2018e3 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Mon, 31 Oct 2016 11:13:36 +0000 Subject: [PATCH] On arm64 build the efi loader with -fPIC. Without this clang 3.9 will generate relocation in the self relocation code. MFC after: 1 week Sponsored by: ABT Systems Ltd --- sys/boot/efi/Makefile.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/boot/efi/Makefile.inc b/sys/boot/efi/Makefile.inc index 9d457f4a1055..671033c58e80 100644 --- a/sys/boot/efi/Makefile.inc +++ b/sys/boot/efi/Makefile.inc @@ -20,6 +20,7 @@ CFLAGS+= -mno-aes .if ${MACHINE_CPUARCH} == "aarch64" CFLAGS+= -fshort-wchar +CFLAGS+= -fPIC .endif .include "../Makefile.inc"