From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9wcD-00083R-Eo for qemu-devel@nongnu.org; Thu, 24 Nov 2016 11:11:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9wcB-0006Li-Ug for qemu-devel@nongnu.org; Thu, 24 Nov 2016 11:11:13 -0500 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:36306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9wcB-0006Hr-66 for qemu-devel@nongnu.org; Thu, 24 Nov 2016 11:11:11 -0500 Received: by mail-wm0-x22a.google.com with SMTP id g23so119487996wme.1 for ; Thu, 24 Nov 2016 08:11:10 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 24 Nov 2016 16:10:28 +0000 Message-Id: <20161124161033.11456-7-alex.bennee@linaro.org> In-Reply-To: <20161124161033.11456-1-alex.bennee@linaro.org> References: <20161124161033.11456-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [kvm-unit-tests PATCH v7 06/11] arm/Makefile.common: force -fno-pic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, marc.zyngier@arm.com Cc: qemu-devel@nongnu.org, mttcg@listserver.greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, bobby.prani@gmail.com, nikunj@linux.vnet.ibm.com, mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, serge.fdrv@gmail.com, rth@twiddle.net, peter.maydell@linaro.org, claudio.fontana@huawei.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= As distro compilers move towards defaults for build hardening for things like ASLR we need to force -fno-pic. Failure to do can lead to weird relocation problems when we build our "lat" binaries. Signed-off-by: Alex Bennée --- arm/Makefile.common | 1 + 1 file changed, 1 insertion(+) diff --git a/arm/Makefile.common b/arm/Makefile.common index 52f7440..cca0d9c 100644 --- a/arm/Makefile.common +++ b/arm/Makefile.common @@ -21,6 +21,7 @@ phys_base = $(LOADADDR) CFLAGS += -std=gnu99 CFLAGS += -ffreestanding +CFLAGS += -fno-pic CFLAGS += -Wextra CFLAGS += -O2 CFLAGS += -I lib -I lib/libfdt -- 2.10.1