[RFC PATCH v4 24/37] arm64: ftrace: Skip validation of entry-ftrace.o
Chen Zhongjin
chenzhongjin at huawei.com
Fri Apr 29 02:43:42 PDT 2022
Skip objtool validation of ftrace entry because it doesn't follow
standard calling ABI.
Signed-off-by: Chen Zhongjin <chenzhongjin at huawei.com>
---
arch/arm64/kernel/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index eee5eb7d782b..51fd3d45986f 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -47,6 +47,10 @@ obj-$(CONFIG_KUSER_HELPERS) += kuser32.o
OBJECT_FILES_NON_STANDARD_kuser32.o := y
+ifdef CONFIG_FRAME_POINTER
+OBJECT_FILES_NON_STANDARD_entry-ftrace.o := y
+endif
+
obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o entry-ftrace.o
obj-$(CONFIG_MODULES) += module.o
obj-$(CONFIG_ARM64_MODULE_PLTS) += module-plts.o
--
2.17.1
More information about the linux-arm-kernel
mailing list