From patchwork Fri Nov 3 17:11:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040867 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 1C789602D8 for ; Fri, 3 Nov 2017 17:21:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 043AA29099 for ; Fri, 3 Nov 2017 17:21:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC9BE29743; Fri, 3 Nov 2017 17:21:15 +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 7129829099 for ; Fri, 3 Nov 2017 17:21:15 +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=o97oHZtzfcQhe17DgYLOYHZT58IoHvyUEPDAfDumz8E=; b=K59UUMfCIGTyqFyBaPrILPn5Ku mwwH7Lzf1tBxBbeLhjHMWcIFKovU27ipynHJXHfST54fX1NFunvNkjzja9J9bcqvUZtLxbL8HRYsV 61icgH9UXOjygj+MxmKOfVZZaBT9zc3mWhyVanKbjnXiN6sMza4Z0RIvDd4IcuodDhqG6xaAGwCYF nEB6E/St4zhfFcWz3gySRd7t5UoogrWoJN+q4N3yHmvFyRNC8A4DLNrSFOvsodEjgfb/BuCZeVufW zzR/fb09IcoQveKiTQHNUNL+N38+Q2tOhbvQNY46r67zagnH2kJqZ86lVDFMntW1eg0Nj+mJHPqIA +4B/cr8A==; 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 1eAfeP-0007Vp-Pa; Fri, 03 Nov 2017 17:21:01 +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 1eAfWs-0008W0-Vr for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:43 +0000 Received: by mail-io0-x243.google.com with SMTP id 97so7735272iok.7 for ; Fri, 03 Nov 2017 10:12:57 -0700 (PDT) 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=Hy6eE+fUHcyEwQfoHu8f2vVZojEZtdYuaUvxgzM6S3o=; b=ZRMBvneHRSk4sRQcvlRE511ByGb9ZKDl0nD8orplEP7sc+77LLULjcElE09s6T2uG1 imWjdm7aNZhKDci96xYwApMb2xe56+k4idIAcXjLupZs1WtrLy+HL55de1vwaN7vhIBR 4LOcK0n0vrY7NzSCTCYFQIp06moWrexXFF/1/8YTdMrICXsizLLR+A0F6hdQghzOIZm/ cUTdgeBf3IrLnpFCDUN2QzTJrgCZ2vChLCRqqRsWd7j5sBh23f+gZYubzz2cm2/C7K1O teUOSlknBHFEoF1FBZErogbs/f0+wd9F0hd6xM7R6/NQDUjsJCbA9iog/8yzR5pNwV+D Xaxw== 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=Hy6eE+fUHcyEwQfoHu8f2vVZojEZtdYuaUvxgzM6S3o=; b=lRvZYwgE0DlQOH5lJ/V1dYysOyJgogsapPI1dIktKhu5q2in/WJ/ERpAaqMYLsQR58 XyKed+9MTUouH5CFf050lyo7/vBMWShGcjSxjh2+EpFegynKGencJiEXdpNgyxlrHOx4 /zMgZkqIRnI2NJC8pf3/oVMRFMjxse4bYxRxPiJlHe78sWgVOzc4amjW3Z3DG822PARN +zHtmfI0ZREIGYvfm2QhklwE0iwFPyg5IDZSihHbGGASoOcjiNayMFw1bFcIexS3jC0m 31/fFN8mWLDs9iTDfjNu3sZgDplkr42C7LzH3S9jPAwk/i49AKorRgWehAftq4Y5FUDB qpZA== X-Gm-Message-State: AJaThX58ND5RyPQPL7Ln/XGyjTiWSd/uTe/uw6trX4OJaiD2XIZ421k8 Tu2rWo+OxP8iU4gMMhMyxJg0uw== X-Google-Smtp-Source: ABhQp+Tm1jKB+bKQ/FJM8+0Ry6jeWpyOQo2gxhObLcPlwLqJW8k6RRUYb+85KSLAB76N3vWjNApoBw== X-Received: by 10.36.214.193 with SMTP id o184mr698901itg.71.1509729176836; Fri, 03 Nov 2017 10:12:56 -0700 (PDT) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id d186sm1370787itd.38.2017.11.03.10.12.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:55 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 11/15] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold Date: Fri, 3 Nov 2017 10:11:56 -0700 Message-Id: <20171103171203.107569-13-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog In-Reply-To: <20171103171203.107569-1-samitolvanen@google.com> References: <20171103171203.107569-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_101315_597800_C0099201 X-CRM114-Status: UNSURE ( 9.94 ) 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 , Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann 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 c16bd1ab37f8..0c1fb297c98e 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -26,6 +26,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