parisc: Mark ex_table entries 32-bit aligned in uaccess.h
authorHelge Deller <deller@gmx.de>
Mon, 20 Nov 2023 14:39:03 +0000 (15:39 +0100)
committerHelge Deller <deller@gmx.de>
Sat, 25 Nov 2023 08:43:17 +0000 (09:43 +0100)
Add an align statement to tell the linker that all ex_table entries and as
such the whole ex_table section should be 32-bit aligned in vmlinux and modules.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v6.0+
arch/parisc/include/asm/uaccess.h

index 2bf660eabe421e4490a45e0cb8d2a7bfc0065248..4165079898d9e7af239a31a1bc77821e6081706a 100644 (file)
@@ -41,6 +41,7 @@ struct exception_table_entry {
 
 #define ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr )\
        ".section __ex_table,\"aw\"\n"                     \
+       ".align 4\n"                                       \
        ".word (" #fault_addr " - .), (" #except_addr " - .)\n\t" \
        ".previous\n"