Add -fPIC to the standalone build flags on arm64. This is needed as
loader.efi is position independend, however we were not building it as such causing a build failure when building with lld. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
e7fca4bb42
commit
16e77e0036
@ -19,7 +19,7 @@ CFLAGS.gcc+= -mpreferred-stack-boundary=2
|
||||
CFLAGS+= -fPIC -mno-red-zone
|
||||
.endif
|
||||
.if ${MACHINE_CPUARCH} == "aarch64"
|
||||
CFLAGS+= -mgeneral-regs-only
|
||||
CFLAGS+= -fPIC -mgeneral-regs-only
|
||||
.endif
|
||||
.if ${MACHINE_CPUARCH} == "mips"
|
||||
CFLAGS+= -G0 -fno-pic -mno-abicalls
|
||||
|
Loading…
Reference in New Issue
Block a user