Received: by 10.223.164.202 with SMTP id h10csp1752650wrb; Thu, 16 Nov 2017 03:51:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMaZ1FkyatVAdyzqrkY1B01ASPtsmgyZoKOT0t0F3hDsy5OrDUrscSKezxdc2l/qdI22mODv X-Received: by 10.84.129.228 with SMTP id b91mr1448994plb.56.1510833081238; Thu, 16 Nov 2017 03:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510833081; cv=none; d=google.com; s=arc-20160816; b=LxOzw39b/QM/KFO1D9S3qDg9o8Ekrtv2OLK/AKL1yPa/wwhjELdWnT9/ezDhGe0HTN VJGWGskSl1cpTA69XtjIDL0CIXk0KN6SULxwy5A4Av1OHlrz+b3O3DJB3/jQZcSycwFN IyBWrSHZEcYsQG2hdB1eCaDyTOu3K1nT9RTdmIp+k/F4hcphzPTPtLOazR4cofhn4FOB UYH743rMAPY0Q/01yQcjehMWYgKZvNbquaDzFbqRpqEDGy8TIloQba58lMoUOq5M1nl/ F2FxmPUR5VQyCabv05oHfBTGdmADl36UcbdMHNQLkB1GCS+M0viBSnhrf2sAeaEMnnXp 1XGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=TAuIqQafM+/B4+DTMgFE3BEihgxYgLZv81SyupnJDVQ=; b=rKHSwkeY3bE5FvLZr0reJd7R2ZWtxt6Qu+aOYROWog0PtnwDGD8APbtkGwm5TiWopp cLck59cSDZS/Zztyi4MlUVsgw9InKwhc9BZwVk+FY8BCDNZCvwbBP8JjHMFDq/dTfAg5 w9EVpRbjUaYlLG0QYdzS1cKiGL7cHx1q+7QmKgxec0aFmkc32JayRD3D1QfI2zYhympX vHSet8tnArlvwB2m0PVZMRK38wzJ1/yLMv3NHrPWKKCvezmm/TthT1FgrXdVNtssk5QD NYEBi02YXXKgvG7F7liX6jRFLpGebAdVPEqswGZolDEjBShfpXUq2xl2YvP/RJuJh/sF gGzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=Ys4PDtin; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g71si801658pfd.400.2017.11.16.03.51.08; Thu, 16 Nov 2017 03:51:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=Ys4PDtin; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934048AbdKPK4A (ORCPT + 91 others); Thu, 16 Nov 2017 05:56:00 -0500 Received: from mail-sn1nam01on0044.outbound.protection.outlook.com ([104.47.32.44]:52633 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758221AbdKPKzx (ORCPT ); Thu, 16 Nov 2017 05:55:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TAuIqQafM+/B4+DTMgFE3BEihgxYgLZv81SyupnJDVQ=; b=Ys4PDtinzJCdGbEEbv5ikwojziQGlMSV8X7eSf/OygdnSz6LNK9K35zL9y3Rfqt0JNSJ9XCDrKUlaHRFtpq2MvLQ+0vPfGnMtVL+Ub+qMEdF1tRcKjNw8FL1GwbUMzouRPRADek2H7OYcH3DHNmlXp4Mfv52kPjFnmpGRIneYgk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (95.26.151.157) by DM5PR0701MB3830.namprd07.prod.outlook.com (2603:10b6:4:7f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.12; Thu, 16 Nov 2017 10:55:50 +0000 Date: Thu, 16 Nov 2017 13:55:41 +0300 From: Yury Norov To: Sami Tolvanen Cc: 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 , Matthias Kaehlcke Subject: Re: [PATCH v2 05/18] arm64: fix -m for GNU gold Message-ID: <20171116105541.fqf3zgrqnbug7deq@yury-thinkpad> References: <20171115213428.22559-1-samitolvanen@google.com> <20171115213428.22559-6-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171115213428.22559-6-samitolvanen@google.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [95.26.151.157] X-ClientProxiedBy: VI1PR08CA0120.eurprd08.prod.outlook.com (2603:10a6:800:d4::22) To DM5PR0701MB3830.namprd07.prod.outlook.com (2603:10b6:4:7f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a0a0653-de24-4299-1f55-08d52ce09a09 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);SRVR:DM5PR0701MB3830; X-Microsoft-Exchange-Diagnostics: 1;DM5PR0701MB3830;3:f3P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Pgvq2guPGHroklK87gBkSf/qqepB32JQBvGzxVQLOx5a34D+xLvwZDbLBW+G6dcbeTEzTjRQrnZpCGFoVKaObgprDqhRuKajhIbrlo2T8Ma1UfFPzS9uxc/HxU500o+vXtw5mytJxgb/6mY7gJIP1/jjtUFXgRM/HDa4jjNaMeFWWUcXtr6vFo4SY73cC7pl8g6o0xX1Kix2lYgBM6rs5kBSPHb61iq+EiNVVJi0HUbfb1gk8JECv/pRG7N2NqlLOLo8sTqwMkm/XbnsKjggC5e2RuFlUcVGPCdzP1nicM+iqpAVdDycjMXWK64k+vXJ1XrqmWWVmXToMebsJAbwl2Ycw81wz36GIFS7FZQojLVvzBG9t6JPB6mcyYagixGxsiyfNLoX5yWiGAl4wFKR6X8bt5QNdL570sMgVsLNfwpkutcl5Y0F1CGi+sO7X/Lp6Lk4Ud699eMgbr2uW2+DUk8bwudHLl47UFTXis= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211936372134217)(153496737603132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(3231022)(920507027)(93006095)(6041248)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR0701MB3830;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR0701MB3830; X-Microsoft-Exchange-Diagnostics: 1;DM5PR0701MB3830;4:8Vf8kj/bmlTTiHtVaBbGXPSn60hSEoTlYmezZI3ldXFlUogtocEC20EOu/6xY1+fumzei/Jct0kDhNivmZTEbYyAgqRCvYp/DO9qidw32RIY2HNsnhIJn2SrDI5uLRxZtvFndVTOX8UGHmVd2q/6nUD1m5FrEvL51DvHDjX82e9f4IPMHJyiR0lFo38vWm3fjhjJP5Tx8caU6lpwsoOdORgUZJhlwVVs9Y1NnRp3DLkymeGkFHiLkrOUdg+7AwbDBG5y1ZQeXGLiAc2U83jTkkEvWqadWFhQnQfUuLH2TxzlgR8PNshP1PVbz3KGb69aeP6wyHXXLcTOWWNO8nbCd0QN2TyAxoMnAFJz1qfK/FM= X-Forefront-PRVS: 0493852DA9 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(7916004)(376002)(346002)(199003)(24454002)(189002)(2906002)(81166006)(23726003)(97736004)(83506002)(72206003)(25786009)(16526018)(39060400002)(478600001)(1076002)(33716001)(5660300001)(8936002)(8676002)(9686003)(189998001)(6486002)(7416002)(66066001)(6246003)(54906003)(81156014)(6496005)(53936002)(106356001)(76506005)(101416001)(34040400001)(68736007)(105586002)(305945005)(7736002)(58126008)(4326008)(229853002)(33646002)(50466002)(2950100002)(47776003)(6666003)(316002)(6116002)(16586007)(6916009)(50986999)(54356999)(3846002)(76176999)(42882006);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR0701MB3830;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR0701MB3830;23:WbaSqkX0KiOR0WhzwO+oslpfSuNAwu9pq3b5SxT?= =?us-ascii?Q?68lF5LgujdmkbqXlVfXJsDGMsNei00NOoU57lA+Qm0ZNGX+SCo7uwNwL2OJA?= =?us-ascii?Q?RxNq121NtqqQtkP9U4GR/1BcJBELoxP5Dz+zvaugUsMSK4C7WNIxVxzFrriu?= =?us-ascii?Q?1uBBjbwTI3txfL4coFVmIGjg0ezpIWMW6jpx0V1v6j+jdMnsK4L4wnlIYCdY?= =?us-ascii?Q?Ih2ETXJVPWThmx0zgOgv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aOvP4Xx+ZZUXdwnp5jz2gmRKsaonUjAhM27W4o2P4pVxu8ZeioWrdSPP3GqxP3ftqfAF+hfBpH+KSDCEQYZUZNckNLTD+f0MLF3aTWWaq5aLaXWtNYrFSFhlOqun0YEnrI/Z1V6z0cS3Lw+xtEl0YcRAGe99joq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2017 10:55:50.7628 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a0a0653-de24-4299-1f55-08d52ce09a09 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0701MB3830 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 15, 2017 at 01:34:15PM -0800, Sami Tolvanen wrote: > 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 > > -- > 2.15.0.448.gf294e3d99a-goog From 1584176828413681691@xxx Wed Nov 15 23:32:33 +0000 2017 X-GM-THRID: 1584176828413681691 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread