From patchwork Thu Nov 24 16:10:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 9446005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 050E560235 for ; Thu, 24 Nov 2016 16:14:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB4012808C for ; Thu, 24 Nov 2016 16:14:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEE7E280D0; Thu, 24 Nov 2016 16:14:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AA0F62808C for ; Thu, 24 Nov 2016 16:14:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9wds-0004jI-Rn; Thu, 24 Nov 2016 16:12:56 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9wcR-0003Qu-Sg for linux-arm-kernel@lists.infradead.org; Thu, 24 Nov 2016 16:11:30 +0000 Received: by mail-wm0-x231.google.com with SMTP id g23so119487998wme.1 for ; Thu, 24 Nov 2016 08:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LZR6SkX1zgpVoL5t1nJ00hLbehcdB5h2QLb+bLKTv0Y=; b=RtY5wcdguqTOwlIviaWwL8736Ocvxv7K/sH3oMRFlu4mKiYfhOYjri1ai3nIwN+9ca KxqQLHXdP2P+6nq2mBwST67YOEZNtegsrHBIEyoSOP/B8EvmeRSJCeUwdvri3zaqbfSi 6CnNPrsa2HVWWTgNhjLOoLdRwrVHQ9pbFqkzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LZR6SkX1zgpVoL5t1nJ00hLbehcdB5h2QLb+bLKTv0Y=; b=AllSuVlD8EitoV5WV7Uub0ePHmg7ga3dMaOcJLPfWNjihJXWO2C+4efwBrPuotYnHC X7yEdAupsJh5rrsANV+4FtVMVc8URjUG90it+MxDs9btBcVOG2uFvk6wfB62H+4kmWYl 1CiFhJtW872ML4mwgJN3x4De8L2/sraiIo2CenWLiaHZh26NJA2Dt1IJDImbWuMz8rRK JYAlL5giJhiY7/SteCwwL/REbHwvmM3KV49kw7vDVfl+233F7ejgtm67PCpEgU/3kCSI HYUEqssFbMvfsZd8vJa8CW28hQ3qQw6Ebf/4RUV2UlZqwtOuyAxh4mvxBjUaMwZ92Lth y68w== X-Gm-Message-State: AKaTC00i6R3M/sC0O+R3D6lBzwpQ8M+PPU2sFqYLlRs6yD9gAYBOTxvx64TcSvu8P+CqEU2M X-Received: by 10.28.236.83 with SMTP id k80mr2997186wmh.0.1480003866338; Thu, 24 Nov 2016 08:11:06 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id yg1sm42527611wjb.12.2016.11.24.08.11.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Nov 2016 08:11:02 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 177253E0566; Thu, 24 Nov 2016 16:11:00 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, marc.zyngier@arm.com Subject: [kvm-unit-tests PATCH v7 06/11] arm/Makefile.common: force -fno-pic Date: Thu, 24 Nov 2016 16:10:28 +0000 Message-Id: <20161124161033.11456-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161124161033.11456-1-alex.bennee@linaro.org> References: <20161124161033.11456-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161124_081128_282651_9D47CB1E X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mttcg@listserver.greensocs.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, nikunj@linux.vnet.ibm.com, jan.kiszka@siemens.com, mark.burton@greensocs.com, a.rigo@virtualopensystems.com, qemu-devel@nongnu.org, cota@braap.org, serge.fdrv@gmail.com, pbonzini@redhat.com, bobby.prani@gmail.com, rth@twiddle.net, =?UTF-8?q?Alex=20Benn=C3=A9e?= , fred.konrad@greensocs.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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