Message ID | 20171103171203.107569-16-samitolvanen@google.com (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 108FF60384 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Nov 2017 17:15:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E97B92971E for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Nov 2017 17:15:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCCD32974D; Fri, 3 Nov 2017 17:15:30 +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 70C322971E for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 3 Nov 2017 17:15:30 +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=M7/xsXSVntHum5C8kaeYTyLEp2 70upSIQXQh7ge+8AAQA4+bxX9CUVHtzsXlyTd+UaFzcmpG8U+ktXlpTKkQwKZlbUgmXEfrky+s796 7PxPKpAqrNlgRuu9QHOkPKftl2umpHL793arIsbfxU+Em88Da/7xfIeZElEjyhNFC8YQQ/pHXfSfQ E0yJOl+lKTrCbvfGyW1wYEOc9Czz0eNWc5btu2CMwG6z0ytjkx0mFx0dsuNgVBBL3+m1KEeBGWN5Q J9h3kkGcg5hhryOm5TFab+NP/t/ThMzQf3N1kX0LYWz2HE99GSaiCI8tiPh+kdvMKv2UB0HtlSHVN 2SP3Mw0Q==; 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 1eAfZ0-0003aI-87; Fri, 03 Nov 2017 17:15:26 +0000 Received: from mail-io0-x241.google.com ([2607:f8b0:4001:c06::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWy-00007E-8t for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:55 +0000 Received: by mail-io0-x241.google.com with SMTP id 134so7790414ioo.0 for <linux-arm-kernel@lists.infradead.org>; Fri, 03 Nov 2017 10:13:02 -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=iMkrsEnpchgsyiwJlKfaiht2R1CS1ckT7djOEko4KfRBoLLzl+h8TS5w0s3bWf+AEP o8CokeqA4cQOLvlygXOZsUCJzuL7gnxj7QqwLW72KM0X7VJGUMSYMee6fKs+QhxWI9UE 7yJN4enVEZFrswCHtkiGNiB+iLcjPz59ZlSI3ee+izV6GEDG0lBNbkIRpjK0CSNT6kIR B59xD220FynYbMg6fGVMumat5HfQpg+AkYG95P+epF6Flhk10Q4koSKKZUn0vyh1QMhi B1VpKEq/YDpo62a0JnK1oGhkTdjcnfh98FD6uRnPll4IGfQ3ib0YnRQfbrK1ZYsL4kOC NqpA== 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=OvPsx31/dzLozVBA9fuS/ESrN5ycPFSClg09JWMUbMKysOyX31dTyHt4vnvvvwIOk5 vo541Hpr8SLjwFD6ZduYVuH17K9nk3+/i4h8IWvjWM7gghylrdOvU1WhtmgOdeIaQw/K 33P4DoayTRTH5NsOSCVBZDOPxj5WfQtDRHpIHww2Jxd3c76K9JFj4TShXBrZWkUI2vWM RnnOyMMPK3wLnMYxLQojLzbxOS9z9PVSXFah4nDkBMksD/zi5352+3RRfm+3lAR6yr+K Clt9RTiFm5tOQIPIb4QB+d6t7NFztUNrW7mBjZyr4fH7oOvJ04UDVDkP4DcfQCftODwz GKQg== X-Gm-Message-State: AJaThX5dwZmZNlP8XVeFFNbNMBg/vdZRbyFGmB1xXiiFilqcSLPeql5S lxyZuVaZnZTmTxGjR2EC3XauZQ== X-Google-Smtp-Source: ABhQp+QvullU42u42IEG4y2r88Buf63L3I2N0AkuMBx8WFXwzyxA0aTCD8iGZaF9gMu9vlgu8cSbEw== X-Received: by 10.36.2.147 with SMTP id 141mr706416itu.146.1509729181909; Fri, 03 Nov 2017 10:13:01 -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.13.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:13:01 -0700 (PDT) From: Sami Tolvanen <samitolvanen@google.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 12/15] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold Date: Fri, 3 Nov 2017 10:11:59 -0700 Message-Id: <20171103171203.107569-16-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_101321_109416_721A8949 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: <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: Sami Tolvanen <samitolvanen@google.com>, Matthias Kaehlcke <mka@chromium.org>, Nick Desaulniers <ndesaulniers@google.com>, Kees Cook <keescook@chromium.org>, Greg Hackmann <ghackmann@google.com> 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/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
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 <samitolvanen@google.com> --- arch/arm64/Makefile | 5 +++++ 1 file changed, 5 insertions(+)