]> sourceware.org Git - systemtap.git/commitdiff
PR30716: Turn off objtool warnings on systemtap instrumentation modules
authorWilliam Cohen <wcohen@redhat.com>
Thu, 7 Mar 2024 18:44:06 +0000 (13:44 -0500)
committerWilliam Cohen <wcohen@redhat.com>
Thu, 7 Mar 2024 18:44:06 +0000 (13:44 -0500)
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

index bb7bdcc9d6c3d07c9d33f0693fba3b13cda2f311..ea00b663c263ab64b39985cb6e5939fed00dc76f 100644 (file)
@@ -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;
This page took 0.025617 seconds and 5 git commands to generate.