Skip to content

Commit 472605f

Browse files
authored
Merge pull request wolfSSL#9183 from douzzer/20250911-linuxkm-dont-undefine-CONFIG_OBJTOOL
20250911-linuxkm-dont-undefine-CONFIG_OBJTOOL
2 parents edf3c31 + de50268 commit 472605f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

linuxkm/Kbuild

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ ifeq "$(ENABLED_LINUXKM_PIE)" "yes"
130130
$(obj)/linuxkm/module_hooks.o: ccflags-y += $(PIE_SUPPORT_FLAGS)
131131
# using inline retpolines leads to "unannotated intra-function call"
132132
# warnings from objtool without this:
133-
undefine CONFIG_OBJTOOL
134-
$(WOLFCRYPT_PIE_FILES): OBJECT_FILES_NON_STANDARD := y
133+
ifneq "$(CONFIG_MITIGATION_RETPOLINE)$(CONFIG_MITIGATION_RETHUNK)" ""
134+
$(WOLFCRYPT_PIE_FILES): OBJECT_FILES_NON_STANDARD := y
135+
endif
135136
endif
136137

137138
ifdef KERNEL_EXTRA_CFLAGS_REMOVE

0 commit comments

Comments
 (0)