Message ID | 20171130233905.130602-6-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 BF273605D2 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 1 Dec 2017 00:14:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFD8C2A44D for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 1 Dec 2017 00:14:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A44642A44F; Fri, 1 Dec 2017 00:14:08 +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 378CD2A44E for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 1 Dec 2017 00:14:08 +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=OD+epfEquIJ5hfYFaL8RV9dkPIJvlPVwVukqrfHkwkQ=; b=fCp1d2A/kyWoWxAtgGLMIuQz2X w6ry/ZtUALQDKLghTPtkLz6hQhRx9/ukcmOCNZzlqNp50ET4C0QtBCVwg4+Uh9ofJc6cLFn0vj78b ZAtK+yU+VfijN5pevGXjqrYbd3i+rylIgfCNVt1LQxzggQ9mOL58dzKGAewVRf3NT5XGDMnIUPyak tfB/wgx7zhnhzzeNmKjZr3BBPRG50xUF22ATQP+S+XXpEtCPkU49RlvmbWJ1y49wm+TQ06/nVGGj4 KK4qS8ViREgWvHlRZMD9Iq3i4DkqiXddHChZXzIMEX4o8+QgrET83nmiE8340pxJwmnIiBGB9Q/P5 IqShacaA==; 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 1eKYxz-0005GY-7Q; Fri, 01 Dec 2017 00:14:07 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKYuw-0004RE-8V for linux-arm-kernel@bombadil.infradead.org; Fri, 01 Dec 2017 00:11:02 +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=T36s4U/v0YsWzEb6Bb6uSImAC2+Tk5vnDDCv7yyurEQ=; b=C/U/bY0uxJUN5r2bz31R21aQQ aTN4dnn5CVFoi4CPG+jzeHaHKcAzozKdaoDsLtkM2mKNbUcWw/TRDZEMFwZQvaTypEnFWRKdNPQtB KVpOh9spQ3PnO9oqy7SIV71VnD2MugAwfkGcLOme34lEX9+JlaLVdllUSGMriiIqFMa86z4Wl8yEh 1TQoHg7dqeRi1N4I/OWGQ+fg6xf3h628Qo6aeEby6Rc2FLbuqrQdf0mH6x9MS6uv1iiCFj+4zrsZb x6Ta7xs/Yqt0zCdQ5gV8kCOPt7VFJaBK+DJGngMh/U/G+MDp5/5FjSGjyg2GZVeuPOR5+x/tWUMrE cAGnZ0p0w==; Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKYQe-0005Ve-57 for linux-arm-kernel@lists.infradead.org; Thu, 30 Nov 2017 23:39:43 +0000 Received: by mail-it0-x241.google.com with SMTP id d16so528078itj.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 30 Nov 2017 15:39:19 -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=T36s4U/v0YsWzEb6Bb6uSImAC2+Tk5vnDDCv7yyurEQ=; b=hCq4Jm7FRdZh5lco23/ER1acjAhGB4pRFU7uoKKoTf+Rz6915WQ94nElFUlMsR9RkF eoYLDaLZLNOWm+VFOtpq93uMs7vrUSpyMkxwYTCI+eMCtu3AMb4VoOWWFtvuuWAjKBNs g65RjUz0sRTyQwBLooCQcQYFtNT1WxsUILl110TBC/cJ6UfKT1IkhqjIOu4ttrUJTeA5 8X1i5yBQB6nYQ2tUNSXX0+KTdKzKTGS41OP+6FUH6e4F5kb+JdJe2fhHUUA8nBrd9miz WzRgXsCxhKB3hSFi1L14Kgr8IO81tqXqdL8rw06NtqzG4+U0oWozj3QTQlz5WzwDLQdF kqsw== 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=T36s4U/v0YsWzEb6Bb6uSImAC2+Tk5vnDDCv7yyurEQ=; b=Ua76yOYYqg8E91C0MJsVuymRlvKytDbqNgh8pBGrzzApub+JQdL8kVmruYwnIJiyJN MmJ9VcD2gXSnw1ua8Y8P6U6bCy+/uHv8jCqngQ1PKOjP/w6I29WpguYP93I4PXlpCe5O q3XayMQqyo93F+3a6FU5+O/09IO8yaWR6yg0U99dqaeGDmBdNhZPmLdVzr5o1lfb4fQI AaFohKyoWCmAaZVaEKirFkTIASZvuXwAnVTh4hZC86HeBd3sBYmv4HncBfw4dRPda6Ng jnsn65f6NTUbfGlNgeGLmAS+fizPKXU1tL3eZlHxCh2hFDAgKH1E34ccrZ1HIrqGgQ6i 2tQw== X-Gm-Message-State: AJaThX4PfzNERMZ2cCpx6O5kXuqvZ3DosEZSAkaND6GXWV8tzax26sIu 70smRj7D8J5Bi9oA/O2OYhe17Q== X-Google-Smtp-Source: AGs4zMaVRSsrdV5EGbboc7PzvdxMGcF+EyFvq1gbF0T8bIE5Lkm00N3KaS56lwu5PmkE5ppJNrHE9g== X-Received: by 10.36.73.210 with SMTP id e79mr5426295itd.78.1512085157030; Thu, 30 Nov 2017 15:39:17 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id h73sm2896676itb.21.2017.11.30.15.39.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 15:39:16 -0800 (PST) From: Sami Tolvanen <samitolvanen@google.com> To: Alex Matveev <alxmtvv@gmail.com>, Andi Kleen <ak@linux.intel.com>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Greg Hackmann <ghackmann@google.com>, Kees Cook <keescook@chromium.org>, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>, Michal Marek <michal.lkml@markovi.net>, Nick Desaulniers <ndesaulniers@google.com>, Yury Norov <ynorov@caviumnetworks.com>, Matthias Kaehlcke <mka@chromium.org>, Nicholas Piggin <npiggin@gmail.com> Subject: [PATCH v2 5/7] arm64: fix -m for GNU gold Date: Thu, 30 Nov 2017 15:39:03 -0800 Message-Id: <20171130233905.130602-6-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.531.g2ccb3012c9-goog In-Reply-To: <20171130233905.130602-1-samitolvanen@google.com> References: <20171129234442.655-1-samitolvanen@google.com> <20171130233905.130602-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171130_233940_445410_347D08F8 X-CRM114-Status: UNSURE ( 8.77 ) 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> 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 b35788c909f1..82a0df6e865e 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -64,14 +64,22 @@ KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__AARCH64EB__ AS += -EB LD += -EB +ifeq ($(ld-name),gold) +LDFLAGS += -maarch64_elf64_be_vec +else LDFLAGS += -maarch64linuxb +endif UTS_MACHINE := aarch64_be else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__AARCH64EL__ AS += -EL LD += -EL +ifeq ($(ld-name),gold) +LDFLAGS += -maarch64_elf64_le_vec +else LDFLAGS += -maarch64linux +endif UTS_MACHINE := aarch64 endif