Message ID | 20180325180959.28008-3-stefan@agner.ch (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 67D28600CC for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 25 Mar 2018 22:17:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A4702836F for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 25 Mar 2018 22:17:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D61E283C5; Sun, 25 Mar 2018 22:17:53 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AD44D2836F for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 25 Mar 2018 22:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=E0MJNaCVvKbhZwihJNAidVCmyJMfQajPAtpBAUWa9rA=; b=fCic079A6mTLlOwnOeWvVGZzod NXfouVAzuU0tWac89L4wpVQ0B9eVQNgW5J8H+R6YtxEdxy4x9HDJ/iSqvtcHEaMS5Mrl+5vW3XPt8 4AwcqpZcoEC4q4gSnfCxlRuPNvYQVBPKbHm/Gm1WyAF0IN8r+qWNgD2+YTgLAM4bmrlNnWRJZHIiw 2AOdLEihuz01fddxHUBkcnS1vZjE7HZZ9ycEih7q3NITIBE/TgzeWzwE1y0jspOYzcrdP+FJlLdX7 8/GI0mmwing0qClhNS3cRn6jlGOIL1fW568abuM5jaRtc/p8aF5oBzf8WN4eM9JgFFLC+4xObvACs 6cPyBVmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0DxT-0001tU-5B; Sun, 25 Mar 2018 22:17:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0Dpu-0000ce-ET for linux-arm-kernel@bombadil.infradead.org; Sun, 25 Mar 2018 22:09:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FYUREkuYv5sk1RFCaEmXqnY8S469ERoOHMQV9jck9gU=; b=gAvYC282l7kEylM6Xv8jBTLPZ CD9IzJ3/2hLwadaKl0aU50h1mVH6SVRgSnt1lAEgOaFHpnRXpg+cRJMwLDXEGgD2A+tBH14XdymZB terBrISPFl3VBL1aQ7EQlA2Aar0lHkx/eW4iP70pa4bZR0ZKKqhi01Mtvzz327RviicfSqTxX8ly+ EVufDp00n9dhrCjGYklOdkxKRdUKEdTfQuwLbE72NeuEYusDo2+acHybSngHR0hkEn3F9YMuZDzmo 7uPK4Xmam07E4RSzl2L+pQXAqo/ZPS4b3gxLFdeUW0jEgpbkq6TOE6VrhHSG2QUFVlEMUHfoCb/vJ fzuWOpauA==; Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0A6v-0002qD-Ui for linux-arm-kernel@lists.infradead.org; Sun, 25 Mar 2018 18:11:19 +0000 Received: from trochilidae.lan (unknown [IPv6:2001:1620:c6e:0:814c:3584:bd88:6cb6]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 0200A5C1FB0; Sun, 25 Mar 2018 20:09:35 +0200 (CEST) From: Stefan Agner <stefan@agner.ch> To: linux@armlinux.org.uk, ard.biesheuvel@linaro.org, arnd@arndb.de Subject: [PATCH v2 2/6] efi/libstub/arm: add support for building with clang Date: Sun, 25 Mar 2018 20:09:55 +0200 Message-Id: <20180325180959.28008-3-stefan@agner.ch> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180325180959.28008-1-stefan@agner.ch> References: <20180325180959.28008-1-stefan@agner.ch> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1522001376; bh=FYUREkuYv5sk1RFCaEmXqnY8S469ERoOHMQV9jck9gU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ZukqXhLNtsicQ1Fm05j2HGGub3SLWYHxSuGkSpNwg7k1l1pclQG+fV1tEulQcdCzFeIQixsIVnSsHbjU6sVVCpDkgiPfZOpuhbFPABxKVlYtAQEmE25UoUXtnxU+s0MMWH7QUuL9pOlRLO0K/E5Sy9vd0qUXLSgAWyq1213T2cY= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180325_191118_019790_BD6812D2 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: nicolas.pitre@linaro.org, keescook@chromium.org, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, Stefan Agner <stefan@agner.ch>, mka@chromium.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, Bernhard.Rosenkranzer@linaro.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index 7b3ba40f0745..2bf69cca0d87 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -13,7 +13,8 @@ cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ -O2 \ cflags-$(CONFIG_ARM64) := $(subst -pg,,$(KBUILD_CFLAGS)) -fpie cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) \ - -fno-builtin -fpic -mno-single-pic-base + -fno-builtin -fpic \ + $(call cc-option,-mno-single-pic-base,) cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt
Use cc-options call for -mno-single-pic-base since the option is not available in clang. LLVM/clang always assumes a fixed displacement between text/data and hence uses PC relative addressing. Signed-off-by: Stefan Agner <stefan@agner.ch> --- drivers/firmware/efi/libstub/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)