From patchwork Wed Nov 15 21:34:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10060359 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 8D31F60231 for ; Wed, 15 Nov 2017 21:38:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AE092A2DA for ; Wed, 15 Nov 2017 21:38:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E52B2A31D; Wed, 15 Nov 2017 21:38:25 +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 0B3CD2A2DA for ; Wed, 15 Nov 2017 21:38:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759562AbdKOViX (ORCPT ); Wed, 15 Nov 2017 16:38:23 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:39711 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758875AbdKOVeu (ORCPT ); Wed, 15 Nov 2017 16:34:50 -0500 Received: by mail-io0-f196.google.com with SMTP id x63so3079620ioe.6 for ; Wed, 15 Nov 2017 13:34:49 -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=zko+2dW5fre/mRz7nu4KbKxHy6cwgY1Fh2MCB32Vop0=; b=bP7g8TkGmu9dLl7SBrFBYksyw36IWsBXBdBZ728fSWn8WNZfKsHnHiPDmxQDPDgIxR m3JBMa0GJD9WFgOw6GsVDhBtCkpWM5bk12WoSDw07cVVQV5bSfZXtlPI1nYNGSF1hfJ2 fybr3yvIjypehzIKU+P8nw1NtLcVq7IsocSEJveETP24WBrEIOaitEfzDZuVI6UsIjuB m1lYzeNJX4FqN/pIaJtfw1/FQg706aU3HnCLnvEF91PjXKiB5T1CA0oWOPL1wKRWWTmD /38uwI/fSDc4nXTRgafQb1X3dI3XWtvIHZcPmZzoprKCiasLnMQoZx76Jw6962qwvULO QnHw== 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=zko+2dW5fre/mRz7nu4KbKxHy6cwgY1Fh2MCB32Vop0=; b=VLVf5zteZT85jeXrKLLhOu+m0H4psIjuMBAE4XYNQKBPyoZe7WA9/GJeNmEwYYoKxY 3YlKmSY/KzydMGkyDeOvr0/Ph120eLxixZsYW32vXfKPeJyd4pYf5Ek1DD1EUGjEzdlU hAISIUUN/D/eo1iUhRhagNW9zuqqItALwihC+QywN83asDY2zkP+bUB6LHLm9USoWkmU QMz2N+8TPBveARAcmDis967uvJbztr39vhHNqUTFBxB5oNjZvYzHsTk3gg5TF0vNGWfR BxENimF3tTMer3z4b+CYRrVTRrxL9j/usHGAd3XVMiIht4ifFXptp2PcbCK7DnmvG/iU RKOQ== X-Gm-Message-State: AJaThX4+3wwiDH7k85pKhZKIg6hMcolQ084g4uEDeq9b1vegdASXQL4J vEGtRD8q3Mfl8koU/9Bze+orQA== X-Google-Smtp-Source: AGs4zMY+M2HFkmqYzuFsdl7SNouL/y1Jp3EiHGTYzPsWm3m6E6p8cxXys6gTZkxlVWVQs8aqtcmvUQ== X-Received: by 10.107.69.14 with SMTP id s14mr20904251ioa.113.1510781689111; Wed, 15 Nov 2017 13:34:49 -0800 (PST) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id 68sm9735197iov.2.2017.11.15.13.34.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 13:34:47 -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 Cc: Sami Tolvanen Subject: [PATCH v2 05/18] arm64: fix -m for GNU gold Date: Wed, 15 Nov 2017 13:34:15 -0800 Message-Id: <20171115213428.22559-6-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171115213428.22559-1-samitolvanen@google.com> References: <20171115213428.22559-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 ecd5ed11c764..6059c8169513 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -70,14 +70,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