Commit 753547de authored by Helge Deller's avatar Helge Deller Committed by Masahiro Yamada

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: f3304ecd ("linux/export: use inline assembler to populate symbol CRCs")
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent c1a86271
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment