From patchwork Wed Nov 15 21:34:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10060409 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 04404604D4 for ; Wed, 15 Nov 2017 21:48:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC2212A31C for ; Wed, 15 Nov 2017 21:48:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E128F2A323; Wed, 15 Nov 2017 21:48: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.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 C31FB2A322 for ; Wed, 15 Nov 2017 21:48:25 +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=1ogB9Ao3mbqFxNFR3YuVFqz0PRqzgthfxkimgYeXHwY=; b=ZazIxgI5yHBtYBAcHfUwL3hxrv PRXPS7WFm/VfRZ9Z2hBB2gS0B2lh6Wi0yKhaum/p3b75b+UdF74gTjiq/7zX/kA3WIYETR/4pPyKK FD1NoloYE3XNBOGTXdprZ0l74bjwFC8j4oTVidgYVAbKlvpeyfLoFH9E7ZYPtC8/ORqaocQOv2ogd q9znzx7vQKAXsQwE/wH3fAatmeJDW/gJidprO/eDh/4TqVsTb+Chh+mFotTXSwhUFWneZY1FfcBxO qq+P8bNBV2UX37N2l7FNuapVpSrZIe/7xiCoUP0t7Zxkt8h5BoKTj4YDJjZjWuv8PdPeDz6i0mhUG RLG0jxjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eF5Xg-0003BD-2P; Wed, 15 Nov 2017 21:48:20 +0000 Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eF5L2-00089R-2Y for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2017 21:35:22 +0000 Received: by mail-io0-x243.google.com with SMTP id g73so3074135ioj.8 for ; Wed, 15 Nov 2017 13:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8StG8QHZwm9gfyGmCGrLal/sIH/HHmFm38o1V3xw61M=; b=TtMNz5JQ5E4TB76F3Pe3D0nRFH1282i2dZBwupxdj5la7XcDMa2otE7vHsT/FP+uYB jEClEGnx5vQWDDldf2aQSbJTAZ7j4YF9JUB5rX+FgtJm+VwbqjLC0m3qyZW90d5WK952 ehjJI2qK1IS8LKKwk/bWnVlvRZK/gzcMJp/JWeW0Rut4KLdgWdRvX0u4OXD1hSBS1vMV N3Lr3EGf202dY3ZbKpsQbFiCnYNz2p+iAWVsejSBC2cbJo8F7GoDFuRDzRFB3lxMa71D 8Cj9/3BKb9h8AVGirdwpN1h79+v/pSGJEO8jhK3yE24eNTNJVqS9hFb2nqQBdDTadDiG MoiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8StG8QHZwm9gfyGmCGrLal/sIH/HHmFm38o1V3xw61M=; b=bqv0D1RX7xeauOqorqOo0b4QJyPIOiv9fCE/vvfuJIJYI5esAYHNYu/So++YBttLJq a7fLJdLcPx/WGZWxm9AMt5CXIHdwTnoduru21jUUki7E9+S25tNqUAoN8fCD67jBMUx2 oEUpC4JEJEVsrdguDxSG5P+8QjLnF/2itRUd1M8OpT4IeuS1QaUC+DR19QAXAv1GVWKP 96k6bF5PcePqHYLfKAKuJodqNiGp6WuRUg8BI+5vcHiraYOcGpOiXLAqdkoM35eEzZcp H2EbIjV43XmpcezQfOReg/yw+/k+xrNsWR+LmaTtDA4XumtpC3bmAo1jdIpOoEcS38Nj hl0w== X-Gm-Message-State: AJaThX4nrc6e+NowkOPK3CAL7pYFc3tAo/HCjmeDC+iFUmnb5O4xjVoi MU5DGwu/KJ5gQOmRRU56UH0s7A== X-Google-Smtp-Source: AGs4zMbXfCxeb9NXk9GYms3ltMLCR6CNlubx3tjPVivhrmVU6JyqS8Mgf5i7Qymy40oDb96gHqW2mQ== X-Received: by 10.107.162.67 with SMTP id l64mr20743660ioe.278.1510781697452; Wed, 15 Nov 2017 13:34:57 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id 68sm9735197iov.2.2017.11.15.13.34.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 13:34:56 -0800 (PST) From: Sami Tolvanen To: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Subject: [PATCH v2 09/18] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold Date: Wed, 15 Nov 2017 13:34:19 -0800 Message-Id: <20171115213428.22559-10-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171115213428.22559-1-samitolvanen@google.com> References: <20171115213428.22559-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_133516_748802_1E0112BC X-CRM114-Status: UNSURE ( 9.43 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen MIME-Version: 1.0 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 Some versions of GNU gold are known to produce broken code with --fix-cortex-a53-843419 as explained in this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21491 If ARM64_ERRATUM_843419 is disabled and we're using GNU gold, pass --no-fix-cortex-a53-843419 to the linker to ensure the erratum fix is not used even if the linker is configured to enable it by default. Signed-off-by: Sami Tolvanen --- arch/arm64/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 6059c8169513..ca700b201736 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -30,6 +30,11 @@ LDFLAGS_vmlinux += --fix-cortex-a53-843419 endif endif +ifeq ($(CONFIG_ARM64_ERRATUM_843419),) +# https://sourceware.org/bugzilla/show_bug.cgi?id=21491 +LDFLAGS_GOLD += --no-fix-cortex-a53-843419 +endif + KBUILD_DEFCONFIG := defconfig # Check for binutils support for specific extensions