Skip to content

Commit 753547d

Browse files
hdellermasahir0y
authored andcommitted
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: f3304ec ("linux/export: use inline assembler to populate symbol CRCs") Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent c1a8627 commit 753547d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/export-internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
#define SYMBOL_CRC(sym, crc, sec) \
6666
asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \
67+
".balign 4" "\n" \
6768
"__crc_" #sym ":" "\n" \
6869
".long " #crc "\n" \
6970
".previous" "\n")

0 commit comments

Comments
 (0)