[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:
parent
546fa3ada3
commit
759e131362
@ -23,4 +23,8 @@ CFLAGS+= -fshort-wchar
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "arm"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user