diff options
author | Helge Deller <deller@gmx.de> | 2023-12-28 11:36:03 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-12-29 01:25:58 +0900 |
commit | 753547de0daecbdbd1af3618987ddade325d9aaa (patch) | |
tree | a808668fe440b417dfb9bf205bcd3deeed8b620e /include/linux/export-internal.h | |
parent | c1a8627164dbe8b92958aea10c7c0848105a3d7f (diff) |
linux/export: Ensure natural alignment of kcrctab array
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>
Diffstat (limited to 'include/linux/export-internal.h')
-rw-r--r-- | include/linux/export-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/export-internal.h b/include/linux/export-internal.h index cd253eb51d6c..d445705ac13c 100644 --- a/include/linux/export-internal.h +++ b/include/linux/export-internal.h @@ -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") |