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

Re: [PATCH 0/2][XTF] build: suppress GNU ld 2.39 warnings


  • To: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 4 Oct 2022 09:01:51 +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=9rMCXh5lcyI/4KD223irbp/iwJHL0sSbEzfWQQ1Rnuo=; b=KvV8ErwcYrtF4VZi+EqelnmiHYoMyvQwaxXWxsFPUyP8mO+jJ9NQg8Ahf1dhHvT3IV6KlodjR6RaoL4u2SC7nAAwPqDPOq42gXDxYo9m4MJkTA7/Rd5DsadwKCQnnowIxoslS3PHC9omUq3P+OU6C2zc+fMUf7FDs6DNzGaEmsvf0SdQ8/vgY5frTelme650acauHBwinOh4GbzeGczzmLuGCDYtBPS0DLtvGZtd5+BPSU35RNhTOs+SDYdlw7/SJ7GNUFIASdzcfD0UxaKspXXUHnKAEFyYKyfrirUCEDl/o1JlH8L9QTJzkMxHNpRWAeJ5BO+WJGa7tWFeXfITng==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NMsbFcHFPll3oO6QKDyF7G6VaTCzeoFhprvgaxNFBF0ADqisIwJ6N3GUV7UtNUERpIZ9j+7a3Aq6CbvjfEbKgQoGEzYYTp+058ZLoXWFBQ9IWOoGe0JAB0RN1Nhw5+87oFFzLtkQVo6clRQMs+ZDMnis7KlxHJXk/erLBXvlkkaFlBBXulxWO7NkSUEvphwxvtUWsa5s/sg+BIlIVosMXAUkFMw2EvBGen29Mv7Vc6cvNYv7Mi+mXszo3X7NykqgVNDaY/K5KnBBleLhTe+15yvgktDUp9D1K+Hx3WLunrTdIPJwI/1uvT09N+cYsAQ3laNyxOQUazHoKJW/W+y/OQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 04 Oct 2022 07:02:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 03.10.2022 15:44, Andrew Cooper wrote:
> On 29/09/2022 11:03, Jan Beulich wrote:
>> Like done previously for the hypervisor and elsewhere.
>>
>> 1: suppress GNU ld 2.39 warning about RWX load segments
>> 2: silence GNU ld 2.39 warning about executable stacks
> 
> I've taken these, and dropped the `-no-pie`, but there's something else too.
> 
> $readelf -Wa tests/example/test-hvm64-example
> ...
> 
> No version information found in this file.
> 
> Displaying notes found in: .note
>   Owner                Data size     Description
>   GNU                  0x00000020    NT_GNU_PROPERTY_TYPE_0         
> Properties: x86 feature used: x86, <corrupt type (0) datasz: 0xc0010002>
> 
> readelf: Warning: note with invalid namesz and/or descsz found at offset
> 0x30
> readelf: Warning:  type: 0x12, namesize: 0x00000004, descsize:
> 0x00000004, alignment: 8
> 
> 
> It's only hvm64 which reads as corrupt, so I think there's some
> collateral damage with the conversion between ELF64 and ELF32.

Iirc there was a binary-incompatible change (accompanying an
incompatible change to the ELF spec) to how notes are generated /
processed for 64-bit objects (some hand waving involved here, as
this did happen quite a while back). I assume the .note section(s)
will need converting (to insert / remove padding) in the course of
converting between ELF32 and ELF64.

Jan



 


Rackspace

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