svn commit: r308124 - head/sys/boot/efi

Andrew Turner andrew at FreeBSD.org
Mon Oct 31 11:13:38 UTC 2016


Author: andrew
Date: Mon Oct 31 11:13:36 2016
New Revision: 308124
URL: https://svnweb.freebsd.org/changeset/base/308124

Log:
  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

Modified:
  head/sys/boot/efi/Makefile.inc

Modified: head/sys/boot/efi/Makefile.inc
==============================================================================
--- head/sys/boot/efi/Makefile.inc	Mon Oct 31 07:21:37 2016	(r308123)
+++ head/sys/boot/efi/Makefile.inc	Mon Oct 31 11:13:36 2016	(r308124)
@@ -20,6 +20,7 @@ CFLAGS+=	-mno-aes
 
 .if ${MACHINE_CPUARCH} == "aarch64"
 CFLAGS+=	-fshort-wchar
+CFLAGS+=	-fPIC
 .endif
 
 .include "../Makefile.inc"


More information about the svn-src-head mailing list