Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 11:13:36 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308124 - head/sys/boot/efi
Message-ID:  <201610311113.u9VBDaxi053993@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610311113.u9VBDaxi053993>