diff options
author | Helge Deller <deller@gmx.de> | 2023-11-22 23:18:14 +0100 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2024-10-19 13:40:42 -0700 |
commit | 03ddd2f17e28fe0e53a702469b1b751d40f5efbb (patch) | |
tree | ef5b323a8e34647eca34b7d9a27c74bbe0233871 /scripts/module.lds.S | |
parent | 335de24e5e774aa94ff9551b3194fe15f52ea1d9 (diff) |
modules: Add missing entry for __ex_table
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.
As per unaligned-memory-access [0] "unaligned memory accesses [...]
will not work correctly on certain platforms and will cause performance
problems on others", so fix this.
Signed-off-by: Helge Deller <deller@gmx.de>
[mcgrof: added unaligned-memory-access justification]
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/unaligned-memory-access.rst # [0]
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'scripts/module.lds.S')
-rw-r--r-- | scripts/module.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/module.lds.S b/scripts/module.lds.S index 23f9912179ce..69b2423e27ab 100644 --- a/scripts/module.lds.S +++ b/scripts/module.lds.S @@ -29,6 +29,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) } |