File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,9 +147,15 @@ ifeq "$(ENABLED_LINUXKM_PIE)" "yes"
147147 $(WOLFCRYPT_PIE_FILES ) : ccflags-y += $(PIE_FLAGS )
148148 $(WOLFCRYPT_PIE_FILES ) : ccflags-remove-y += -pg \
149149 $(call cc-option,-ftrivial-auto-var-init=zero)
150- ifdef FORCE_GLOBAL_OBJTOOL_OFF
151- undefine CONFIG_OBJTOOL
152- endif
150+ endif
151+
152+ # On some kernels/configs, objtool runs and warns on the linked libwolfssl.o,
153+ # ignoring the below "OBJECT_FILES_NON_STANDARD := y" annotations. This
154+ # mechanism, activated with "make KBUILD_EXTRA_FLAGS=FORCE_GLOBAL_OBJTOOL_OFF=1",
155+ # inhibits objtool completely. This may be necessary on modules compiled with
156+ # assembly accelerations and/or ENABLED_LINUXKM_PIE.
157+ ifdef FORCE_GLOBAL_OBJTOOL_OFF
158+ undefine CONFIG_OBJTOOL
153159endif
154160
155161ifdef KERNEL_EXTRA_CFLAGS_REMOVE
You can’t perform that action at this time.
0 commit comments