[efi] Build EFI bits with -fPIC on ARM

clang 3.9.0 without -fPIC generates absolute jump table for
switch/case statement which trips boot1.efi and loader.efi
on ARM platform.

Reviewed by:	andrew
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D9108
This commit is contained in:
Oleksandr Tymoshenko 2017-01-10 20:15:24 +00:00
parent 546fa3ada3
commit 759e131362
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311891

View File

@ -23,4 +23,8 @@ CFLAGS+= -fshort-wchar
CFLAGS+= -fPIC
.endif
.if ${MACHINE_CPUARCH} == "arm"
CFLAGS+= -fPIC
.endif
.include "../Makefile.inc"