Skip to contentSkip to conversation

xen/link: Drop .fixup section from non-x86 architectures

PATCH In review Andrew Cooper 4 participants 4 messages Apr 3, 2025 – Apr 7, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/link: Drop .fixup section from non-x86 architectures

The fixup section is only used by x86, and we're working to remove it there too. Logic in the fixup section is unconnected to it's origin site, and interferes with backtraces/etc.

Remove the section from the architectures which don't use it.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[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 86a6e311cfc5..ae1903246f69 100644
@@ -45,7 +45,6 @@ SECTIONS
        *(.text.*)
 #endif
 
-       *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */
   } :text = 0x9090
xen/arch/ppc/xen.lds.S +0 -1
index 3f2a7676ec96..1366e2819eed 100644
@@ -38,7 +38,6 @@ SECTIONS
         *(.text.*)
 #endif
 
-        *(.fixup)
         *(.gnu.warning)
         . = ALIGN(POINTER_ALIGN);
         _etext = .;             /* End of text section */
xen/arch/riscv/xen.lds.S +0 -1
index dffc6ae11913..818aa4366949 100644
@@ -33,7 +33,6 @@ SECTIONS
         *(.text.ident)
         _ident_end = .;
 
-        *(.fixup)
         *(.gnu.warning)
         . = ALIGN(POINTER_ALIGN);
         _etext = .;             /* End of text section */

base-commit: ae5fd39be98c6219a302045aec7c25bdafa81781

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 53 lines · Andrew Cooper

The fixup section is only used by x86, and we're working to remove it there too. Logic in the fixup section is unconnected to it's origin site, and interferes with backtraces/etc.

Remove the section from the architectures which don't use it.

---
CC: Anthony PERARD<[email protected]>
CC: Michal Orzel<[email protected]>
CC: Jan Beulich<[email protected]>
CC: Julien Grall<[email protected]>
CC: Roger Pau Monné<[email protected]>
CC: Stefano Stabellini<[email protected]>
CC: Volodymyr Babchuk<[email protected]>
CC: Bertrand Marquis<[email protected]>
CC: Shawn Anastasio<[email protected]>
CC: Oleksii Kurochko<[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 86a6e311cfc5..ae1903246f69 100644
@@ -45,7 +45,6 @@ SECTIONS
         *(.text.*)
  #endif
 
-       *(.fixup)
         *(.gnu.warning)
         _etext = .;             /* End of text section */
    } :text = 0x9090
xen/arch/ppc/xen.lds.S +0 -1
index 3f2a7676ec96..1366e2819eed 100644
@@ -38,7 +38,6 @@ SECTIONS
          *(.text.*)
  #endif
 
-        *(.fixup)
          *(.gnu.warning)
          . = ALIGN(POINTER_ALIGN);
          _etext = .;             /* End of text section */
xen/arch/riscv/xen.lds.S +0 -0
index dffc6ae11913..818aa4366949 100644

xen/arch/riscv/xen.lds.S SECTIONS · line 38

Quoted 7 lines
xen/arch/riscv/xen.lds.S +0 -1
@@ -33,7 +33,6 @@ SECTIONS
          *(.text.ident)
          _ident_end = .;
 
-        *(.fixup)
          *(.gnu.warning)
          . = ALIGN(POINTER_ALIGN);
          _etext = .;             /* End of text section */

#riscv

~ Oleksii

Quoted 2 lines

base-commit: ae5fd39be98c6219a302045aec7c25bdafa81781