linux/export: Ensure natural alignment of kcrctab array
PATCH 1/1 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.
Signed-off-by Helge Deller <[email protected]>
Fixes f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs")
include/linux/export-internal.h +1 -0
@@ -61,6 +61,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")
Quoted 7 lines · Helge Deller
The
___kcrctabsection holds an array of 32-bit CRC values. Add a .balign 4 to tell the linker the correct memory alignment.Signed-off-by Helge Deller <[email protected]>Fixes f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs")
Applied to linux-kbuild/fixes.
Thanks!
Quoted 12 lines
include/linux/export-internal.h +1
-0@@ -61,6 +61,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")
Signature · 2 lines
Best Regards Masahiro Yamada