]> xenbits.xensource.com Git - xen.git/commitdiff
xen/link: Drop .fixup section from non-x86 architectures
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Apr 2025 10:49:02 +0000 (11:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 7 Apr 2025 18:17:38 +0000 (19:17 +0100)
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.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Shawn Anastasio <sanastasio@raptorengineering.com>
xen/arch/arm/xen.lds.S
xen/arch/ppc/xen.lds.S
xen/arch/riscv/xen.lds.S

index 86a6e311cfc5c10c57061aa95e02897c04e4e634..ae1903246f6995d30fec07f9b9cb1e9600ea96f2 100644 (file)
@@ -45,7 +45,6 @@ SECTIONS
        *(.text.*)
 #endif
 
-       *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */
   } :text = 0x9090
index 3f2a7676ec96f6d773825f2d3ecb90ab2f604e9f..1366e2819eed32cd81d5673c4eb25b0cfa3d2ad3 100644 (file)
@@ -38,7 +38,6 @@ SECTIONS
         *(.text.*)
 #endif
 
-        *(.fixup)
         *(.gnu.warning)
         . = ALIGN(POINTER_ALIGN);
         _etext = .;             /* End of text section */
index dffc6ae11913fa52d556ee6639bbbd4abb5f44f9..818aa43669490833ed552b56aa3a3c1911f51707 100644 (file)
@@ -33,7 +33,6 @@ SECTIONS
         *(.text.ident)
         _ident_end = .;
 
-        *(.fixup)
         *(.gnu.warning)
         . = ALIGN(POINTER_ALIGN);
         _etext = .;             /* End of text section */