[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240927194925.603504509@infradead.org>
Date: Fri, 27 Sep 2024 21:49:08 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: x86@...nel.org
Cc: linux-kernel@...r.kernel.org,
peterz@...radead.org,
alyssa.milburn@...el.com,
scott.d.constable@...el.com,
joao@...rdrivepizza.com,
andrew.cooper3@...rix.com,
jpoimboe@...nel.org,
jose.marchesi@...cle.com,
hjl.tools@...il.com,
ndesaulniers@...gle.com,
samitolvanen@...gle.com,
nathan@...nel.org,
ojeda@...nel.org,
kees@...nel.org,
alexei.starovoitov@...il.com
Subject: [PATCH 12/14] x86: Hacks for hacked up llvm
XXX do this nicely once the llvm hacks are done nice
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
---
arch/x86/Kconfig | 8 ++++----
arch/x86/include/asm/linkage.h | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2444,10 +2444,10 @@ config CC_HAS_ENTRY_PADDING
config FUNCTION_PADDING_CFI
int
- default 59 if FUNCTION_ALIGNMENT_64B
- default 27 if FUNCTION_ALIGNMENT_32B
- default 11 if FUNCTION_ALIGNMENT_16B
- default 3 if FUNCTION_ALIGNMENT_8B
+ default 57 if FUNCTION_ALIGNMENT_64B
+ default 25 if FUNCTION_ALIGNMENT_32B
+ default 9 if FUNCTION_ALIGNMENT_16B
+ default 1 if FUNCTION_ALIGNMENT_8B
default 0
# Basically: FUNCTION_ALIGNMENT - 5*CFI_CLANG
--- a/arch/x86/include/asm/linkage.h
+++ b/arch/x86/include/asm/linkage.h
@@ -102,6 +102,8 @@
CFI_PRE_PADDING \
.byte 0xb8 ASM_NL \
.long __kcfi_typeid_##name ASM_NL \
+ .byte 0xb0 ASM_NL \
+ .byte 0x7f ASM_NL \
CFI_POST_PADDING \
SYM_FUNC_END(__cfi_##name)
Powered by blists - more mailing lists