2023-11-22 22:18:57

by Helge Deller

[permalink] [raw]
Subject: [PATCH 4/4] modules: Add missing entry for __ex_table

From: Helge Deller <[email protected]>

The entry for __ex_table was missing, which may make __ex_table
become 1- or 2-byte aligned in modules.
Add the entry to ensure it gets 32-bit aligned.

Signed-off-by: Helge Deller <[email protected]>
Cc: <[email protected]> # v6.0+
---
scripts/module.lds.S | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/module.lds.S b/scripts/module.lds.S
index b00415a9ff27..488f61b156b2 100644
--- a/scripts/module.lds.S
+++ b/scripts/module.lds.S
@@ -26,6 +26,7 @@ SECTIONS {
.altinstructions 0 : ALIGN(8) { KEEP(*(.altinstructions)) }
__bug_table 0 : ALIGN(8) { KEEP(*(__bug_table)) }
__jump_table 0 : ALIGN(8) { KEEP(*(__jump_table)) }
+ __ex_table 0 : ALIGN(4) { KEEP(*(__ex_table)) }

__patchable_function_entries : { *(__patchable_function_entries) }

--
2.41.0


2024-01-29 18:51:06

by Luis Chamberlain

[permalink] [raw]
Subject: Re: [PATCH 4/4] modules: Add missing entry for __ex_table

On Wed, Nov 22, 2023 at 11:18:14PM +0100, [email protected] wrote:
> From: Helge Deller <[email protected]>
>
> The entry for __ex_table was missing, which may make __ex_table
> become 1- or 2-byte aligned in modules.
> Add the entry to ensure it gets 32-bit aligned.
>
> Signed-off-by: Helge Deller <[email protected]>
> Cc: <[email protected]> # v6.0+

Cc'ing stable was overkill, I'll remove it.

Luis

> ---
> scripts/module.lds.S | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/module.lds.S b/scripts/module.lds.S
> index b00415a9ff27..488f61b156b2 100644
> --- a/scripts/module.lds.S
> +++ b/scripts/module.lds.S
> @@ -26,6 +26,7 @@ SECTIONS {
> .altinstructions 0 : ALIGN(8) { KEEP(*(.altinstructions)) }
> __bug_table 0 : ALIGN(8) { KEEP(*(__bug_table)) }
> __jump_table 0 : ALIGN(8) { KEEP(*(__jump_table)) }
> + __ex_table 0 : ALIGN(4) { KEEP(*(__ex_table)) }
>
> __patchable_function_entries : { *(__patchable_function_entries) }
>
> --
> 2.41.0
>
>