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

Re: [PATCH] xen/link: Remove CONSTRUCTORS from linker script


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 13 Nov 2026 01:33:55 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=jbwW+vhwpRpQTZIAHpOmZOATNTcH+CIUGKN+kQtyNRw=; b=Zm+JavryxfewyeuPfl8OPnljP8jF9n/xsyIlxBEkG2xWbTvbiaHSmqtE2iLeVuUsxLrIwPkCrkIND4YX+hR/PhghCC7DCB7AA7WiHzfd91LMMQKd7JzWeq72kqF0UchQJjzOXwR+AexkmjIpQn0i4qXEEugs98r1xGC/TOPPcssKTRJzQASuIsV6bq8E4drZiM/OL07hFF4G0xAebrZgTdrjg4JcdoDbNQuVLMZf3OkjPjjmrVkRym8K1UsbEmwigwaXQout9I8NhNkwVZHurLl7iXJx1NMwXrCbnVOy/tVXx8yz3sOs+bZSk7IJJ+h7lHO2tckRaD/SauBaSyWddQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Kc3Ps9OIs/cjKDu3v+evNFC5DjM8owTDl/rXG+6DSpIipXhMUOfc9W5zY3jIt53dyHGx7KORLtc1QBYpBYx/xzyYwJp1IfDDPNJUHRcRTaboKD2uBLl5WMNj3jlUqnXNELC0G8HfwYupIcKO2GsVJj0SPOed/37CybSvL0V+hpfNr3paOe04ZIYdwpReC1zU7hC9T+dpbQT5/7dJJIWhfevI8qIGJchK8x0qJ8MjwL0wOGuWCIepqM72SKxcsLEJ3Lo9ixuSvprY3njeb2gqM6Ni2heCB4UWAWoYceQjIkqYI+u8h9Iiq+WFZN3KNIpkAtYlgaId0HFkfai02q04Hg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
  • Delivery-date: Fri, 13 Nov 2026 01:34:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHdcuYXdO6kvJPNQUaD4haEjbTA0g==
  • Thread-topic: [PATCH] xen/link: Remove CONSTRUCTORS from linker script

Hi Andrew,

Andrew Cooper <andrew.cooper3@xxxxxxxxxx> writes:

> The other architectures inherited CONSTRUCTORS from x86, so just as with
> commit b7a7e346c710 ("x86: drop use of CONSTRUCTORS from linker script"), they
> should be dropped.
>
> The .ctors section is handled explicitly in all architectures.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>

> ---
> CC: Jan Beulich <jbeulich@xxxxxxxx>
> CC: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
> CC: Teddy Astie <teddy.astie@xxxxxxxxxx>
> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> CC: Julien Grall <julien@xxxxxxx>
> CC: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> CC: Bertrand Marquis <bertrand.marquis@xxxxxxx>
> CC: Michal Orzel <michal.orzel@xxxxxxx>
> CC: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> CC: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
> CC: Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>
> CC: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
> ---
>  xen/arch/arm/xen.lds.S   | 1 -
>  xen/arch/ppc/xen.lds.S   | 1 -
>  xen/arch/riscv/xen.lds.S | 1 -
>  3 files changed, 3 deletions(-)
>
> diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
> index 8d0954c90afd..b5ccc732bd8d 100644
> --- a/xen/arch/arm/xen.lds.S
> +++ b/xen/arch/arm/xen.lds.S
> @@ -95,7 +95,6 @@ SECTIONS
>         *(.data.page_aligned)
>  
>         *(.data .data.*)
> -       CONSTRUCTORS
>    } :text
>  
>    . = ALIGN(8);
> diff --git a/xen/arch/ppc/xen.lds.S b/xen/arch/ppc/xen.lds.S
> index b2159279169c..fee810791840 100644
> --- a/xen/arch/ppc/xen.lds.S
> +++ b/xen/arch/ppc/xen.lds.S
> @@ -86,7 +86,6 @@ SECTIONS
>          *(.data.page_aligned)
>  
>          *(.data .data.*)
> -        CONSTRUCTORS
>      } :text
>  
>      DT_DEV_INFO                       /* Devicetree based device info */
> diff --git a/xen/arch/riscv/xen.lds.S b/xen/arch/riscv/xen.lds.S
> index d1c5ce59c90d..4dc55f5ad26f 100644
> --- a/xen/arch/riscv/xen.lds.S
> +++ b/xen/arch/riscv/xen.lds.S
> @@ -93,7 +93,6 @@ SECTIONS
>          *(.data.page_aligned)
>          *(.sdata .sdata.*)
>          *(.data .data.*)
> -        CONSTRUCTORS
>      } :text
>  
>      DT_DEV_INFO                       /* Devicetree based device info */
>
> base-commit: 4263fe42b736596cfa5bfec661f2f55f02759aa7
> prerequisite-patch-id: 680071148129321ffaf7bd7435d031904014f556
> prerequisite-patch-id: 4ebfc2a1d8cd14cc1cf477b6db8cc9ef72310674

-- 
WBR, Volodymyr

 


Rackspace

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