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: 83963 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp167970qgi; Thu, 24 Nov 2016 08:13:59 -0800 (PST) X-Received: by 10.98.103.84 with SMTP id b81mr3163135pfc.6.1480004039182; Thu, 24 Nov 2016 08:13:59 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id d7si11495703plj.99.2016.11.24.08.13.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Nov 2016 08:13:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org 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-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:231 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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+patch=linaro.org@lists.infradead.org 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