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

Re: [PATCH v1] xen/arm: align *(.proc.info) in the linker script


  • To: Julien Grall <julien@xxxxxxx>, Oleksii <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 2 Mar 2023 12:21:12 +0100
  • 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=cKF6TAbUGlScbXpD6OAey4umo16lxka+ymL8p5TWUUk=; b=irH8yhEcW37J6n7tLpu58J6CxX/18oG//muxaX4lneBlb+RDIGLySCmOvqfL0p07DH3154Sz5IiQAmzxio4PJoJKGGcnR4kQSnTo8HHPcZ+/H+oxvve+Q/QhbBNm9byA02ofP5Gy3iZlZIxh0XLPx8k3ey2vgxsnlmQxDoKMb/eVbFdaAUbnXJIe0PuS2qRiAQ1KPW3Lz5f4XVWRWTzbPbxDSJlTytwk/az4tKuh99xpA2AN0cS1DW+0EstHx70RDzOZeGLZXIpWoMo1qQ0+hN94UboFsQ61+piFEj8B1owOO/R6NJt5Weji02+0qgefi6MN48hbZCo04AknMhwmlw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gSn0GbgUYAflcFQ05L7nhAjkoUlBohfpQL0bZUNQSDlTmCjchPFeV61mWsNpHcRFgXaCu9+qLQ309ON9FaETf1BimOxKDpgHSq5d5U4O0REmre0q99iXSviC3rmT/ro0wWycM5hVaZEedLL5G6bqkBc4heZaP2hU2ErevZCNFRyNSUusCU8w1daT86jo7ZGJ4Eh3pLNJGdcE+p8pF9BL2qbUTwDAUD8+sHdZuOYVO/pqdXIvdzkO4uSIrP7d/SDA2aa5+atqHgoXG3q0og/7ELpDFtGkHw7/Wn+Q872c/vnWOAsk5iZQICICzNLLTbcGmnyuWjCtzSo6rkczihlkHw==
  • 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>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 02 Mar 2023 11:21:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 02.03.2023 12:01, Julien Grall wrote:
> On 02/03/2023 09:45, Jan Beulich wrote:
>> On 01.03.2023 21:38, Julien Grall wrote:
>>> I managed to reproduce it. It looks like that after your bug patch,
>>> *(.rodata.*) will not be end on a 4-byte boundary. Before your patch,
>>> all the messages will be in .rodata.str. Now they are in .bug_frames.*,
>>> so there some difference in .rodata.*.
>>
>> Strings in .bug_frames.*? This sounds like a mistake, which - if indeed
>> the case - will want investigating before the conversion series is
>> actually considered for committing.
> 
> No. I misread the code. But there are definitely a difference in size:
> 
> Before:
> 
> Section Headers:
>    [Nr] Name              Type            Addr     Off    Size   ES Flg 
> Lk Inf Al
>    [ 0]                   NULL            00000000 000000 000000 00 
> 0   0  0
>    [ 1] .text             PROGBITS        00200000 008000 07e7a8 00 WAX 
> 0   0 32
>    [ 2] .rodata           PROGBITS        0027f000 087000 02acc8 00   A 
> 0   0 16
>[...]
> After:
> 
>    [Nr] Name              Type            Addr     Off    Size   ES Flg 
> Lk Inf Al
>    [ 0]                   NULL            00000000 000000 000000 00 
> 0   0  0
>    [ 1] .text             PROGBITS        00200000 008000 07e670 00 WAX 
> 0   0 32
>    [ 2] .rodata           PROGBITS        0027f000 087000 02b3e8 00   A 
> 0   0 16

I still find this concerning (as in: at least needing explanation), as
the bug frame representation shrinks in size: Entries for assertions
remain to be 4 ".long"-s, while all other entries use only two now. So
in a release build the size of all .bug_frame.* together should halve,
while in debug builds it should shrink at least some. And Oleksii's
series doesn't add meaningful other contributions to .rodata, iirc.

Jan



 


Rackspace

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