Message ID | 20171129234442.655-5-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 BD34C60353 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 23:47:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE64729D52 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 23:47:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A32CC29D57; Wed, 29 Nov 2017 23:47:41 +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 43E9B29D52 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 29 Nov 2017 23:47:41 +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=Q2+3N6gr09Hk+GcKhpmMok7VdN /SxD+B5PnmsFEH6zIJgqnsTjqwxtaejSl6+2sXco8vcw0hlgcbwedFXvhVssklLBcnzvxfHUWjo3y r6u3ptQijrmsVn+2DDDs065GOIqwb7fQneg98XgTTPN4nYrML3O8sg+2GN3YhbECvnMaB296NJK7J USsbikYtBdEIOb2LNlZ4Dfq6MugQ5Ou8oyuslhWFs2kG9W+J9wexWEcGJiUoIGbrORsYveU3HVHwT 8aJ71VN7SxUfSXaumSq8MrYVcIQAAmCX/LUXJ38qbBMGNhNgH2hC5nEQPBDupNSY8/eqe10p4LeeK 8jsDNCmA==; 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 1eKC4m-0006wU-N6; Wed, 29 Nov 2017 23:47:36 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eKC2X-0003Zz-CN for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 23:45:35 +0000 Received: by mail-pl0-x244.google.com with SMTP id q7so3094556plk.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 29 Nov 2017 15:44:59 -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=ioOOD29aQAJr3AcZEgbDAY5p4QUQanQNvaTKNumxJ7iDG2JOO4G+zPgnqyhVUj+kFA qruu1TMqAUorPEbxwq910wW80muinn8JZP2Pd49NIypNKNXdwH7m+0wMuF0RHQoPQzJ5 scZGKQ1J27yB6hhRHEv5s8xC2ImesbERFQgjzZ/BL3okmHy+ut6q6fOlC1witjEO4tg4 FWiyCCVJXq9CvpZnNsiBQWvlheR/IMeGuNiI9KhEGVp6mCPMt/s2OplRb1hiYy9i1EQb AayK/6stHuquL0N/l8ibNrg089QeBlb8JwGur72RESQjzCl1NmS3345lkp0Q6TQnnELz W6NQ== 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=VeOZUh5NAgVJTnshdPAY7cMcwauCe0PhTas1VB6CRQzSzx1xYBBZpOjdoYiA46yo4K E2K5tkLsEdwUzM5yF/gECCwQyLmY6P947B2fnNvwE7z/V7BWAYUsuBZwOItX5cn92AS0 4AuY7WuAmUUz7RxTUd7XsaSTX2BR6CsUKG5TpBobWdJMGcl7kybjcP6vAYw0EM+89a1O iRBVlR7cx3BnhMr3trzBJGixVUnPFw6YBQwyizvhZLH7DVI4uv+KHkdpHHQE8OvRmaev 5ND8WbQ5BY84CEfCjuNmRarCYT4GzRBX03dImULXLc/08K2Cg/HLj31F/ALpetzRAOoR o+Bw== X-Gm-Message-State: AJaThX4MhcHeFNJWuM+Co56TBjK35pUwZc+zdODxMqRueNRvKsUvOoQ9 XYT5MdVEIlrE9wnz58pTjo4rAg== X-Google-Smtp-Source: AGs4zMbxNaRV4zN/wFHBOLDlMD3loWZ4bp/yWNtbI3hcMTfl9NDJ29v6P01404y+1cQMc3TLGkzMlA== X-Received: by 10.84.129.70 with SMTP id 64mr572195plb.444.1511999097958; Wed, 29 Nov 2017 15:44:57 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id s14sm5326948pfe.36.2017.11.29.15.44.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Nov 2017 15:44:57 -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 4/7] arm64: fix -m for GNU gold Date: Wed, 29 Nov 2017 15:44:39 -0800 Message-Id: <20171129234442.655-5-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.531.g2ccb3012c9-goog In-Reply-To: <20171129234442.655-1-samitolvanen@google.com> References: <20171129234442.655-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171129_154517_792107_FF224D19 X-CRM114-Status: UNSURE ( 7.86 ) 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