Skip to content

Commit a515d05

Browse files
committed
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fix from Ingo Molnar: "A single objtool fix: avoid silently broken ORC debuginfo builds and error out instead" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Upgrade libelf-devel warning to error for CONFIG_ORC_UNWINDER
2 parents be1f16b + 3dd40cb commit a515d05

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,11 @@ ifdef CONFIG_STACK_VALIDATION
933933
ifeq ($(has_libelf),1)
934934
objtool_target := tools/objtool FORCE
935935
else
936-
$(warning "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
936+
ifdef CONFIG_ORC_UNWINDER
937+
$(error "Cannot generate ORC metadata for CONFIG_ORC_UNWINDER=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
938+
else
939+
$(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
940+
endif
937941
SKIP_STACK_VALIDATION := 1
938942
export SKIP_STACK_VALIDATION
939943
endif

0 commit comments

Comments
 (0)