History

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.

Helge Deller committed 2 years ago

Commit 753547d1 parent c1a86271 file · +1 −0Browse files

Unified · Split

include/linux/export-internal.h+1−0
@@ -64,6 +64,7 @@ · 63 unmodified lines
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")