From 155c689b2a75dcb217a1c52886c04982f4c169f2 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Thu, 7 Mar 2024 13:44:06 -0500 Subject: [PATCH] PR30716: Turn off objtool warnings on systemtap instrumentation modules The previous approaches to turning off the objtool warnings did not work for x86_64 RHEL9. The systemtap generated code is not on the whitelist to use certain kernel functions. The additional objtool warning output mentioning the systemtap code using those functions with UACCESS enabled caused a number of the tests in the testsuite to fail. The generated Makefile now includes a line to turn off running objtool on the systemtap generated module and eliminates those warnings. --- buildrun.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildrun.cxx b/buildrun.cxx index bb7bdcc9d..ea00b663c 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -305,6 +305,8 @@ compile_pass (systemtap_session& s) if (s.verbose > 6) redirecterrors = ""; + // PR30716 Turn off objtool + o << "OBJECT_FILES_NON_STANDARD:=y" << endl; // Support O= (or KBUILD_OUTPUT) option // but flags= filter was removed from kernel scripts/Kbuild.include mid-2019 o << "_KBUILD_CFLAGS := $(call flags,KBUILD_CFLAGS) $(KBUILD_CFLAGS)" << endl; -- 2.43.5