]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Disable position-independent code for ARM64 EFI builds
authorMichael Brown <mcb30@ipxe.org>
Fri, 26 Jun 2020 20:21:31 +0000 (21:21 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 27 Jun 2020 20:47:04 +0000 (21:47 +0100)
commitdecee20ec84977ae1d1a7f54fa91e73017f6731d
treefa1f1dca790984f992d8ac4be426a2c062f86554
parent8a1d66c7aec020f3e90254ed2fa55ecd9494fcc3
[build] Disable position-independent code for ARM64 EFI builds

Some versions of gcc (observed with the cross-compiling gcc 9.3.0 in
Ubuntu 20.04) default to enabling -fPIE.  Experimentation shows that
this results in the emission of R_AARCH64_ADR_GOT_PAGE relocation
records for __stack_chk_guard.  These relocation types are not
supported by elf2efi.c.

Fix by explicitly disabling position-independent code for ARM64 EFI
builds.

Debugged-by: Antony Messerli <antony@mes.ser.li>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm64/Makefile.efi