[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZY1Pk61PP5HvLDag@p100>
Date: Thu, 28 Dec 2023 11:36:03 +0100
From: Helge Deller <deller@...nel.org>
To: Masahiro Yamada <masahiroy@...nel.org>, linux-kernel@...r.kernel.org,
linux-parisc@...r.kernel.org
Subject: [PATCH] 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 <deller@....de>
Fixes: f3304ecd7f06 ("linux/export: use inline assembler to populate symbol CRCs")
Link: https://lore.kernel.org/r/CAK7LNAT5gyn0C9EJhh1EeFT7gF0rOudWcdqAVN=+C4jR42W90w@mail.gmail.com/
diff --git a/include/linux/export-internal.h b/include/linux/export-internal.h
index 69501e0ec239..51b8cf3f60ef 100644
--- a/include/linux/export-internal.h
+++ b/include/linux/export-internal.h
@@ -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")
Powered by blists - more mailing lists