[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] arm32: Avoid using solaris syntax for .section directive


  • To: Julien Grall <julien@xxxxxxx>, Khem Raj <raj.khem@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 2 Aug 2023 09:22:10 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=J+DUHtIaXyD72TldqUTpHnQTaJ8xCIyWshquJfI0BDg=; b=W32Mc3e8J5MMcbgPRpSdnupQJcPoz5/koavFDqNN0nobwchkQDZqVvhDyeYsC65F34e8KePMQjsFKPPFKEMpbZtDLlZV8JZcVv0JOOz9S4tLVL+NMXJ+ZHnOFLtmYeUJz/e9BOd3lBDPaDdiFZqOOF0mSb49xmdHUOslPVpKSPutHKEk+oGzkznqX2ke8CojvO/TKmLBLA0G0sw/cI7QlmmCzu0aBdCBA4r0UrCPpkVMiiG/FDRrcedWr96reIE6B3gmQQu79kVxqq0JU8+2jUvYNK9dO21sBvoF1UkLaEsvzBHcugdY3T2Uq1QmdhXfUZe7H5KcKCZ++baarL6gvA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Du1ULJ7lrsl5Z356G7qKKoAohXkUltzit5Es1uNAtdI8csayD5qZHQofQSCvg6u6ej4Sw5JvtGda1uFf/Hjxxg+UcpDv2MGFiddI3Y5tA7kFjhVHH/MgFWNKxLC+al+e5qeE490OglMF2vjuBq34JBEWtd5+9tccKZuLQL9YeRAlEu6iHP/NmOFmWQl1zZBfz17fiRy7VOYywnUG5maffGEnrLuzO2ELsmUsWAXSerMuQ9KtmNr3T2XHcFpVEX2B9uQe/4XF7YO5X27ppCZg1j+NvgKTPrMwV3cOAHsNe+GsimcatgIdCHUi3mKJmk56YjXJRFGxMVZMLIZAEWFf6g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Wed, 02 Aug 2023 07:22:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 01.08.2023 23:02, Julien Grall wrote:
> Hi,
> 
> Title: This patch is not arm32 specific anymore. So I would replace 
> 'arm32' with 'arm'. This can be done on commit.
> 
> On 01/08/2023 18:49, Khem Raj wrote:
>> Assembler from binutils 2.41 rejects [1] this syntax
>>
>> .section "name"[, flags...]
>>
>> where flags could be #alloc, #write, #execinstr, #exclude, and #tls [2]
>>
>> It is almost like a regression compared to 2.40 or older release,
> 
> The next word after ',' start with an uppercase. Did you intend to use 
> '.' rather than ','?
> 
> That said, the documentation has the following:
> 
> For SPARC ELF targets, the assembler supports another type of .section 
> directive for compatibility with the Solaris assembler:"

But note that "SPARC" was added there only by the commit introducing the
perceived regression.

Jan

> This leads me to think this is not a regression and instead an intended 
> behavior (even though it breaks older build) even it breaks build.
> 
> I would suggest to reword the commit message to:
> 
> "
> Assembler from binutiles 2.41 will rejects ([1], [2]) the following syntax
> 
> .section "name", #alloc
> 
> for any other any target other than ELF SPARC. This means we can't use 
> it in the Arm code.
> 
> So switch to the GNU syntax
> 
> .section name [, "flags"[, @type]]
> 
> [1] https://sourceware.org/bugzilla/show_bug.cgi?id=11601
> [2] https://sourceware.org/binutils/docs-2.41/as.html#Section
> 
> If you agree with the commit message, I can update it while committing.
> 
> We should also consider to backport.
> 
> Cheers,
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.