Skip to contentSkip to conversation

x86/boot: Remove unused symbols from linker script

PATCH In review Frediano Ziglio 2 participants 2 messages Aug 12, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/boot: Remove unused symbols from linker script

The symbols declared with DECLARE_IMPORT are meant to be used by the 32 bit code.
The __base_relocs_{start,end} symbols were not used by the code.
No functional changes.

---
 xen/arch/x86/boot/build32.lds.S | 2 --
 1 file changed, 2 deletions(-)
xen/arch/x86/boot/build32.lds.S +0 -2
index 1e59732edd..e4f7c7fc2f 100644
@@ -43,8 +43,6 @@ SECTIONS
          * Attention should be paid to pointers taking care of possible later
          * relocation.
          */
-        DECLARE_IMPORT(__base_relocs_start);
-        DECLARE_IMPORT(__base_relocs_end);
         DECLARE_IMPORT(__trampoline_rel_start);
         DECLARE_IMPORT(__trampoline_rel_stop);
         DECLARE_IMPORT(__trampoline_seg_start);
Signature · 1 line
2.43.0