linux/export: Ensure natural alignment of kcrctab array
authorHelge Deller <deller@gmx.de>
Thu, 28 Dec 2023 10:36:03 +0000 (11:36 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 28 Dec 2023 16:25:58 +0000 (01:25 +0900)
The ___kcrctab section holds an array of 32-bit CRC values.
Add a .balign 4 to tell the linker the correct memory alignment.

Fixes: f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs")
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
include/linux/export-internal.h

index cd253eb51d6c02c26d24d3dec101cdf008538577..d445705ac13c03d5db795e9f354281eecbe5c68f 100644 (file)
@@ -64,6 +64,7 @@
 
 #define SYMBOL_CRC(sym, crc, sec)   \
        asm(".section \"___kcrctab" sec "+" #sym "\",\"a\""     "\n" \
+           ".balign 4"                                         "\n" \
            "__crc_" #sym ":"                                   "\n" \
            ".long " #crc                                       "\n" \
            ".previous"                                         "\n")