From owner-svn-src-all@FreeBSD.ORG Thu Apr 9 10:08:11 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B1D965E; Thu, 9 Apr 2015 10:08:11 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85B3AC82; Thu, 9 Apr 2015 10:08:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t39A8BLr011277; Thu, 9 Apr 2015 10:08:11 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t39A8Bs3011276; Thu, 9 Apr 2015 10:08:11 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201504091008.t39A8Bs3011276@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Thu, 9 Apr 2015 10:08:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281300 - head/sys/boot/efi/boot1 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 10:08:11 -0000 Author: andrew Date: Thu Apr 9 10:08:10 2015 New Revision: 281300 URL: https://svnweb.freebsd.org/changeset/base/281300 Log: Only use -fPIC when building boot1.efi for x86. Sponsored by: The FreeBSD Foundation Modified: head/sys/boot/efi/boot1/Makefile Modified: head/sys/boot/efi/boot1/Makefile ============================================================================== --- head/sys/boot/efi/boot1/Makefile Thu Apr 9 10:07:06 2015 (r281299) +++ head/sys/boot/efi/boot1/Makefile Thu Apr 9 10:08:10 2015 (r281300) @@ -15,7 +15,6 @@ INTERNALPROG= # architecture-specific loader code SRCS= boot1.c reloc.c start.S -CFLAGS+= -fPIC CFLAGS+= -I. CFLAGS+= -I${.CURDIR}/../include CFLAGS+= -I${.CURDIR}/../include/${MACHINE_CPUARCH} @@ -35,6 +34,7 @@ LDSCRIPT= ${.CURDIR}/../loader/arch/${MA LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +CFLAGS+= -fPIC LDFLAGS+= -Wl,-znocombreloc .endif