From patchwork Fri Nov 3 17:11:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040885 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 62086602D8 for ; Fri, 3 Nov 2017 17:23:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4894D29743 for ; Fri, 3 Nov 2017 17:23:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D7BF2974E; Fri, 3 Nov 2017 17:23: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 CF82D29743 for ; Fri, 3 Nov 2017 17:23:14 +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=bpULWUJyqs5l1j0i0sV6zftcJtdIv0JWhe3mIyj6ovE=; b=h8wcF2XQkKr+DkzpI+l0E4Rxhx Tn4ZjuZHWbrm3DSUBUoi5BuEhkzZ4YM4rKEaSZQufQ9jMAbzI0xnREVQYTYzdIAgFniJ2n22Fp5Sp bvAT5x44EMF8b7DVp7xx0A35O0KtQuKEq+d4i3Q/yqyRTu0tzh1ZH2OOPueRVkTz0a+tpd6CdkbFF mWbOUdBRoUzHTMj1iCu8npZq+w4gt1EQQYxtK5z5EVPgo+7/jlWvcScDGPY3toSg7XI5CdVk+unpM sOzL61AdqBky/Xie2hn94PJ2ROARlmLGjHjHJq6YbpkxkSduEXsWSurmL8vCUsr47paeEFGeu2NB2 s6tlUzpA==; 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 1eAfgQ-0001Ai-Og; Fri, 03 Nov 2017 17:23:06 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAff1-0007HN-Oj for linux-arm-kernel@bombadil.infradead.org; Fri, 03 Nov 2017 17:21:39 +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=44o6a7Ns3QAVKMh8qUMnkD8vmoGmeE3OxCex5xwrVdI=; b=gsZQfU9K4G6mTr8gNFvTme0Dh EwKnuc7Kux3T0rsHGI7Ohn6412nuX5eUWIS4GqB/1wXmjpoMm3kTSsm2bmL0c5qt/XSsZOPnKYEvY x5CxZgmQS6+SlF7GWKT0dAmxq+HNuZwtkJ8OPaE/VYinTTWQ85u3hcDG48xM/O+F/Quc0/L1rUNWp Sxy54lJfZ91nbZRS9zHtdv0b5cZ7aKT57WikD5H1nXQr+WtDWPGANbLfpcWbXvmfw1AJaCxjOkrrH uEbDWNYCJXPklcLrAOqZ0ZZIGzqzyvbnhe34NwDdclhNGWBnaj14xCPhFJTnrU7ZU5exwuNSsVx1S h6teIC/ew==; Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWq-0003sj-Sx for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:15 +0000 Received: by mail-io0-x242.google.com with SMTP id p186so7697491ioe.12 for ; Fri, 03 Nov 2017 10:12:52 -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=44o6a7Ns3QAVKMh8qUMnkD8vmoGmeE3OxCex5xwrVdI=; b=Zw0SMJrLEV2Mt7d83sGkyBjwK37sgCD6nBRrB38ygql+gf4h9SNXbzGHv/cdjh6rga tMfahmxmsiYMohrVd+IMvl5qpCvbwzW3QBBuWApYl3mQCr0WdjybKVsA+9sFdRcWd9PY Ocz2uY+HF6Mh3HMNcNK9zgVRVxP3A3/dblCzfRLob1uxDWK49eZuQRuePB86e8vOGWUU yt3/Q7oyiNMiHzXf50lP6oSowBOZLBjuUBrSC/R8k0XizRNeKtLjxXLT5L92ExWgA9gh rk59JlfiIeQKtj9+XvEiWoer9+A+vPWwh8QpIOfSaxbJR/qP5KGKb74Myqh9OGK6K3n+ PSvA== 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=44o6a7Ns3QAVKMh8qUMnkD8vmoGmeE3OxCex5xwrVdI=; b=DRlDuPBZRjrUWRWyWNGjsgeYF7LtYR4C9UCuvhAyk7fk3VOUKFALoCTaYfFjF8N6p/ vGk1CqIkHdXOnGbvt+2h3j52zqLqmb897B8sY4ba6N2tw6hEJS1mBYrmMVuHooRyOssS 6FDUSSxjfOcEemK/KS8JOpR0ilbghtqdNRVbhuYI1ussKqmfbW4cTP5g4S2i8eQIAtcH wqEmeuKzqOmuAednChrJmGhngTtAzzUkdqCkSM7lbEiHSnWCL3G9S3YPbU0IM49kEFZk OWGhI80uwnOVpKug6O9wEResYVqCCfwlPZzOPBocVsLta1IVoyOC6J/1T9UYZsP6nBiH bziw== X-Gm-Message-State: AJaThX6Dv6A2ZaRZdoMfjGnwC7soe9PP6R0dtJmMxKcHrITLUOSL+nqJ S31EWdvJwSEHzkKlwZCLAySoVQ== X-Google-Smtp-Source: ABhQp+S6lb4vbEnqj4pjum0txR4WEtxh9q0FpGvPp9/2A0FKdlgSNJYEICgMGOKj7QkFJ31qMGBqzQ== X-Received: by 10.107.145.86 with SMTP id t83mr9049368iod.190.1509729171152; Fri, 03 Nov 2017 10:12:51 -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.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:50 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 08/15] arm64: don't pass -maarch64linux to GNU gold Date: Fri, 3 Nov 2017 10:11:53 -0700 Message-Id: <20171103171203.107569-10-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_171313_036146_715D3E59 X-CRM114-Status: UNSURE ( 9.92 ) 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 This change fixes the following error message when linking with GNU gold: ld.gold: error: unrecognized emulation aarch64linux Signed-off-by: Sami Tolvanen --- arch/arm64/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index eb6f3c9ec6cb..c16bd1ab37f8 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -64,14 +64,18 @@ KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__AARCH64EB__ AS += -EB LD += -EB +ifneq ($(ld-name),gold) LDFLAGS += -maarch64linuxb +endif UTS_MACHINE := aarch64_be else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__AARCH64EL__ AS += -EL LD += -EL +ifneq ($(ld-name),gold) LDFLAGS += -maarch64linux +endif UTS_MACHINE := aarch64 endif