Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp516139lqo; Thu, 16 May 2024 12:52:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8mAERc1h7EirKrXp2xk5WPjus+TPSDnAwGsboJs4PhaZf+h2njCoNQICIoD4pl/K2kDuYx4VpAr277NIl6M0zSSwnhFXgzoqFKVlz3w== X-Google-Smtp-Source: AGHT+IGCIKfoBA2bFnpa+fT7GX0aRjoop7MZauiA+g/tES235hOjSerZCKKzcK8K7RJyz/zOzGga X-Received: by 2002:a17:906:af14:b0:a59:ca33:6840 with SMTP id a640c23a62f3a-a5a2d5cb813mr1128523466b.44.1715889160244; Thu, 16 May 2024 12:52:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715889160; cv=pass; d=google.com; s=arc-20160816; b=tkFEq4JVfF79FRw86MaooakhJ8pXxnQFebretWrZEu9RiUHH0QSirrkmaMsNqSQi8G Lq3fyFXQXP/fISOs0iOIoqah9Fr56iG/Q8MgNEymHLv75oi3dZoOfaNXZtb+DMzmWW4s F3uRc+FLjG8k/wb4BpB1Yk+Zc5JYTJZz+YCcgjkMSkp+oJE4YrZ0VEMsn973kJ1NCC0l jiaVB9omv9FFa/iN3YmX6jv4k2b5syRWfq/XtmWeO8poYHC6cwC7xNmEzj16KPxpqhcK Weng7wi37fRPSczn0dBKUzCyOUPV82gIvcRC5FrhGBNhjAZQq+JolKbR2mYWGrsCJhWh T0xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=AQWVMTbSbf1h4rjPghmzRYGsML+jmyYsg0Hy9vl2HPQ=; fh=9F3aJzpF8fc0iXkzHaHBvZwRivI7MFsrvOI1fF+1TtE=; b=CGViONAtREgRDl2NQEMz9gjJHubQq8/iL/ZkDV30TIWAExB/JAdZWECit0dtyYp+Q2 ab2ZTuW7g5gRIeNme4N7yDquTQMAlU5wxpOpuGbM3/rwsJeGx7R0951ZBBseNgOhG6Ov EaevPtdPMoBxdPc8pMNLYrBITjekU+Zd152yf/J2xM479RtPdjOwNQOy3smWrQjzllR4 R/x0e+CIEvTrzhCizVFcmpZcod8LkHw+FlLxX6p/SdtWY0OiEgFeP5foilMMBKWc/26g 9CE79LCsJWzkQ3iXKDN2sAx14uMV/902yISFkDPNFqV+L6SQVnrqmOvy3vD7GaNFSWF1 1h0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kernel.crashing.org); spf=pass (google.com: domain of linux-crypto+bounces-4218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4218-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5cdfa7acebsi136000966b.708.2024.05.16.12.52.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 12:52:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kernel.crashing.org); spf=pass (google.com: domain of linux-crypto+bounces-4218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4218-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 003BD1F213FB for ; Thu, 16 May 2024 19:52:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED63515746A; Thu, 16 May 2024 19:52:36 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2853814B95D; Thu, 16 May 2024 19:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.228.1.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715889156; cv=none; b=J+CFAdFlxshNt4HPm79qUKfxfjAIyNKB8XdFsv5Tn7pe9xbBUBEWAJjlLmxD36hCz3aGwIFUbku/ViODLliQaS/Dzy6IWKGA1ZblriAJjZtlvY23kKRRB/wrJGs+iCuF+VnRocwU3W5pKQCCTolhNKJcGCSVKa90fS91IdGjKRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715889156; c=relaxed/simple; bh=mia+mIXfeByfPzOjI+pmzibnMHWgK7mRmUIiOyT+wdU=; h=Date:From:To:Cc:Subject:Message-ID:References:Mime-Version: Content-Type:Content-Disposition:In-Reply-To; b=n/2yMTp00DQrIdMtKpW+uvayAM4wYDykKjiHtHctLcnUBeYSiHhHJDhCgSX7kDUFIUt701OwBp41piw95IrSab/ayKVpvubj15uP67LewJczxncQ03BtU29716v0f/Id7G9F3/wAEV6uj2JPLmsA7gZkE5odNFU60yKOjdjnqIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org; spf=pass smtp.mailfrom=kernel.crashing.org; arc=none smtp.client-ip=63.228.1.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 44GJmEdc016902; Thu, 16 May 2024 14:48:14 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 44GJmCLk016900; Thu, 16 May 2024 14:48:12 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 16 May 2024 14:48:12 -0500 From: Segher Boessenkool To: Michael Ellerman Cc: Andy Polyakov , Danny Tsen , linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, dtsen@us.ibm.com, nayna@linux.ibm.com, linux-kernel@vger.kernel.org, ltcgcw@linux.vnet.ibm.com, leitao@debian.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 1/3] crypto: X25519 low-level primitives for ppc64le. Message-ID: <20240516194812.GN19790@gate.crashing.org> References: <20240514173835.4814-1-dtsen@linux.ibm.com> <20240514173835.4814-2-dtsen@linux.ibm.com> <87a5kqwe59.fsf@mail.lhotse> <89e7b4b0-9804-41be-b9b1-aeba57cd3cc6@cryptogams.org> <875xvevu3h.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875xvevu3h.fsf@mail.lhotse> User-Agent: Mutt/1.4.2.3i Hi! On Thu, May 16, 2024 at 10:06:58PM +1000, Michael Ellerman wrote: > Andy Polyakov writes: > >>> +.abiversion 2 > >> > >> I'd prefer that was left to the compiler flags. > > > > Problem is that it's the compiler that is responsible for providing this > > directive in the intermediate .s prior invoking the assembler. And there > > is no assembler flag to pass through -Wa. > > Hmm, right. But none of our existing .S files include .abiversion > directives. > > We build .S files with gcc, passing -mabi=elfv2, but it seems to have no > effect. Yup. You coulds include some header file, maybe? Since you run the assembler code through the C preprocessor anyway, for some weird reason :-) > But the actual code follows ELFv2, because we wrote it that way, and I > guess the linker doesn't look at the actual ABI version of the .o ? It isn't a version. It is an actual different ABI. GNU LD allows linking together whatever, yes. > Is .abiversion documented anywhere? I can't see it in the manual. Yeah me neither. https://sourceware.org/bugzilla/enter_bug.cgi ? A commandline flag (to GAS) would seem best? Segher