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: 10060321 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 116E360231 for ; Wed, 15 Nov 2017 21:36:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3B6B2A25C for ; Wed, 15 Nov 2017 21:36:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7FE72A319; Wed, 15 Nov 2017 21:36:17 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E7A52A25C for ; Wed, 15 Nov 2017 21:36:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932863AbdKOVgP (ORCPT ); Wed, 15 Nov 2017 16:36:15 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:43770 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759184AbdKOVe6 (ORCPT ); Wed, 15 Nov 2017 16:34:58 -0500 Received: by mail-io0-f195.google.com with SMTP id 189so3075092iow.10 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=bkafZY0+i34dTeCCg6rB09qEBxCO4jPgmatrx0B+zDuZCwVYNHOE9mVouHyOIi8FaA BOxHJ75erx4m7xMHSk15t11Vko7qAAKSwfOcXSCG5zDulDs2McwmeMIFAwE4utPSsSb8 g1lA2jSlCd9uav5uKnlEZ9hZ1zL/bQzvgGCXeL/sQOBvIqDG8PeTM8FIeeX2GutUqHbz MwcChR4RopC0YMWix2E3j+K6SmiBkxfEtB3+MG/e5EMjgoIKZO3T+8x3wm0ehXieJ0sF sQm9S1oKzIBZ4HAov66q868UgtYgUNXqnPz3DiJIyD+1fHKxiAuqDF1dAEfFA4Kpzdmz bmZA== X-Gm-Message-State: AJaThX4n/nEi6u+aS2HgvAAI57dPumGb3H/l4OrCFWfdmtYqydlTg6dS xBPJZvsPIzdUQj3cCnITyODe+g== 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 Cc: Sami Tolvanen 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> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.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