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
64 64
65#define SYMBOL_CRC(sym, crc, sec) \65#define SYMBOL_CRC(sym, crc, sec) \
66 asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \66 asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \
67 ".balign 4" "\n" \
67 "__crc_" #sym ":" "\n" \68 "__crc_" #sym ":" "\n" \
68 ".long " #crc "\n" \69 ".long " #crc "\n" \
69 ".previous" "\n")70 ".previous" "\n")