Skip to contentSkip to conversation

arm/link: Remove exception table sections

PATCH In review Andrew Cooper 2 participants 2 messages Aug 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/link: Remove exception table sections

This was almost certainly copy&paste from x86. ARM does not us these nor selects HAS_EX_TABLE, so drop the sections and their boundary markers.

No functional change.

---
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]>

Found because I'm getting rid of .ex_table.pre on x86 too.

---
 xen/arch/arm/xen.lds.S | 10 ----------
 1 file changed, 10 deletions(-)
xen/arch/arm/xen.lds.S +0 -10
index 9f30c3a13ed1..db17ff1efa98 100644
@@ -86,16 +86,6 @@ SECTIONS
   } : text
 
   .data.read_mostly : {
-       /* Exception table */
-       __start___ex_table = .;
-       *(.ex_table)
-       __stop___ex_table = .;
-
-       /* Pre-exception table */
-       __start___pre_ex_table = .;
-       *(.ex_table.pre)
-       __stop___pre_ex_table = .;
-
        *(.data.read_mostly)
   } :text
 
Signature · 1 line
2.39.5
Acked-by on v1 1/1
#1 lore raw

Hi Andrew,

Quoted 6 lines · Andrew Cooper

This was almost certainly copy&paste from x86. ARM does not us these nor selects HAS_EX_TABLE, so drop the sections and their boundary markers.

No functional change.

Cheers,

Quoted 33 lines

---
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]>

Found because I'm getting rid of .ex_table.pre on x86 too.

---
  xen/arch/arm/xen.lds.S | 10 ----------
  1 file changed, 10 deletions(-)
xen/arch/arm/xen.lds.S +0 -10
index 9f30c3a13ed1..db17ff1efa98 100644
@@ -86,16 +86,6 @@ SECTIONS
    } : text
 
    .data.read_mostly : {
-       /* Exception table */
-       __start___ex_table = .;
-       *(.ex_table)
-       __stop___ex_table = .;
-
-       /* Pre-exception table */
-       __start___pre_ex_table = .;
-       *(.ex_table.pre)
-       __stop___pre_ex_table = .;
-
         *(.data.read_mostly)
    } :text
 
Signature · 1 line
Julien Grall