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

Re: [PATCH] x86: also discard .fini_array in linker script


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 4 Mar 2022 10:17:22 +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=prXitb9VmFyu1Stn09SlA17CbeW+6mCPB+vTer0PBZY=; b=XPoJxsSRwyRNo5IdrNmZQsMw/Gpa2k4QBdlp7LowJzNH0q02OlB+lnD9XoNjsoXQmNnCR9w7Pit/bAVPFekPRzfgk58HrGw1SUzS9CmDLQg+iCTsxQdcmuEdFbHGtZi0xd3ErpiYl/8nNQJTLRW18UE3csmRn1qXvB7GQWfqQjjQerzvq365nSJbvIOe+IMCwoc0n1IJoQott7BcgLFykxyBOvp98l1d6ZIg2ze0FjMW+VPdLc5ZAPkzsG7KBdaIKf90aFSJo3kj9Nv1lZJAln2GpBR5v/2O2LEArw+7k/pvCKkgmvJiKUBpngyS1GC4flM4UJ6I65qgJ9PHrmLRxQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fYnok4SAwBz+K43JsKsx3TBdjJft4fSdIYfwYW++Dum/aa6zlpO7D4B/i90DlIjA8l7Ma0iVW970oSoOYQjcX0/GU+pR2pf4/mUtsgFEcR7HJye9I3LGwsjzpMlw+AZ4Biq/95U0SNcauR1Pcfq03t6Ms/HvlGIISAsa5VwXXbaeiPS3PgN5QPQGdy6EbcHNMphM2K3DxENRMKm8ltnRd/yF1PHgWQ2Cxckn+o9nkAcoG/pP/maXn2mL4qd9wGsmfWf2wKP3/o3Fq35CR/JSCWP8eBWv3qAImBsCQ1DlPZ1veErO21x/OSN363U0t8G8/Rw1kbKRC52x+bw0P0sZaw==
  • 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>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 04 Mar 2022 09:17:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 04.03.2022 09:57, Roger Pau Monné wrote:
> On Fri, Mar 04, 2022 at 08:49:39AM +0100, Jan Beulich wrote:
>> This simply parallels .dtors. Both section types can reference
>> .text.exit, which requires them to be discarded together with that one.
>> Compilers, depending on their findings during the configure phase, may
>> elect to use either model. While .{init,fini}_array look to be
>> preferred, cross compilers apparently have this guessed, likely
>> resulting in a fallback to .{c,d}tors. Hence we need to support both
>> sets.
> 
> Do we also need to consider discarding .fini? Or that's guaranteed to
> not be used by the compiler?

I'm not aware of it being used anymore; if it was used, we'd also need
to deal with .init (which - logically, but not technically - would
conflict with our own section of this same name in xen.efi).

Jan




 


Rackspace

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