From patchwork Wed Nov 29 23:44:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10083929 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 0434C6020B for ; Wed, 29 Nov 2017 23:46:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA72929C84 for ; Wed, 29 Nov 2017 23:46:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF18229D55; Wed, 29 Nov 2017 23:46:10 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97E4229C84 for ; Wed, 29 Nov 2017 23:46:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753117AbdK2Xp4 (ORCPT ); Wed, 29 Nov 2017 18:45:56 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:34028 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753191AbdK2Xo6 (ORCPT ); Wed, 29 Nov 2017 18:44:58 -0500 Received: by mail-pl0-f68.google.com with SMTP id d21so3069683pll.1 for ; Wed, 29 Nov 2017 15:44:58 -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=kEoIbxbzAkxiu0y2Y+aeF2y5rk3CvR6gMiDfwK+55FKQyDGtY0EEN80FtYO8NkU6Ar pC85cFTwA4TOamPpyXEc0nQBq41kjKmBmi0YhTi5hLXwcux82uRAMjS6R68v/jsm3fFC 4txyHsAJUmu222CpYDwyDwJpNvSf7mCmBDBOErhPJ8r8E/vc50ZL+04GfhHZ4q5Cd3+e dKK8YB04jluT5Pw1K0XwfCOl722q5OwoGRL23KJ68ZOHir/tPUjPrFEyU6tclN8cx5BY Kd6bvwufej3KpPB4+8HHuvcPKy6CNUO56qWr+o/i5oHztKPp3+3R88dt5SdRr1mLgxia VG/g== X-Gm-Message-State: AJaThX4RfS3ybRE1nIpbaq/JaTPuIw6ZIw3NIdn37BkLQPFv/gS0NN1u FfYPuAc6pIXPl/2gnUa6kJpUTg== 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 To: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke , Nicholas Piggin Cc: Sami Tolvanen 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> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GNU gold supports different emulations than bfd. Use aarch64_elf64_*_vec instead of aarch64linux. Signed-off-by: Sami Tolvanen Acked-by: Yury Norov --- arch/arm64/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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