Skip to contentSkip to conversation

xen/link: Remove CONSTRUCTORS from linker script

PATCH In review Andrew Cooper 4 participants 4 messages Nov 12 – Nov 13 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/link: Remove CONSTRUCTORS from linker script

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.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Teddy Astie <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Baptiste Le Duc <[email protected]>
CC: Timothy Pearson <[email protected]>
CC: Ross Lagerwall <[email protected]>

---
 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(-)
xen/arch/arm/xen.lds.S +0 -1
index 8d0954c90afd..b5ccc732bd8d 100644
@@ -95,7 +95,6 @@ SECTIONS
        *(.data.page_aligned)
 
        *(.data .data.*)
-       CONSTRUCTORS
   } :text
 
   . = ALIGN(8);
xen/arch/ppc/xen.lds.S +0 -1
index b2159279169c..fee810791840 100644
@@ -86,7 +86,6 @@ SECTIONS
         *(.data.page_aligned)
 
         *(.data .data.*)
-        CONSTRUCTORS
     } :text
 
     DT_DEV_INFO                       /* Devicetree based device info */
xen/arch/riscv/xen.lds.S +0 -1
index d1c5ce59c90d..4dc55f5ad26f 100644
@@ -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

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw

Hi Andrew,

Quoted 7 lines · Andrew Cooper

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.

Quoted 59 lines

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Teddy Astie <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Baptiste Le Duc <[email protected]>
CC: Timothy Pearson <[email protected]>
CC: Ross Lagerwall <[email protected]>

---
 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(-)
xen/arch/arm/xen.lds.S +0 -1
index 8d0954c90afd..b5ccc732bd8d 100644
@@ -95,7 +95,6 @@ SECTIONS
        *(.data.page_aligned)
 
        *(.data .data.*)
-       CONSTRUCTORS
   } :text
 
   . = ALIGN(8);
xen/arch/ppc/xen.lds.S +0 -1
index b2159279169c..fee810791840 100644
@@ -86,7 +86,6 @@ SECTIONS
         *(.data.page_aligned)
 
         *(.data .data.*)
-        CONSTRUCTORS
     } :text
 
     DT_DEV_INFO                       /* Devicetree based device info */
xen/arch/riscv/xen.lds.S +0 -1
index d1c5ce59c90d..4dc55f5ad26f 100644
@@ -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

Signature · 1 line
WBR, Volodymyr