diff options
author | Helge Deller | 2023-12-28 11:36:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2024-01-05 15:18:38 +0100 |
commit | 95e21657ffe90b031ed1e789255389fb2122fdb4 (patch) | |
tree | 0797f835a9b1b6465e7ee903a8b8929f2c96139a /include/linux | |
parent | bb4f791cb2de1140d0fbcedfe9e791ff364021d7 (diff) |
linux/export: Ensure natural alignment of kcrctab array
[ Upstream commit 753547de0daecbdbd1af3618987ddade325d9aaa ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-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 fe7e6ba918f1..29de29af9546 100644 --- a/include/linux/export-internal.h +++ b/include/linux/export-internal.h @@ -12,6 +12,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") |