aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-10-14 15:09:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-10-14 15:09:08 -0400
commita515d05e96eed14550cbeca08cb9e38dc95b5922 (patch)
tree900e91455d2b61b23b1a6c6a5f5c23b233e77905
parentbe1f16ba35d97aff4d85c0daba0a02da51b7c83c (diff)
parent3dd40cb320fee7c23b574ab821ce140ccd1281c9 (diff)
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
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2835863bdd5a..5bf6fa4d62d8 100644
--- a/Makefile
+++ b/Makefile
@@ -933,7 +933,11 @@ ifdef CONFIG_STACK_VALIDATION
933 ifeq ($(has_libelf),1) 933 ifeq ($(has_libelf),1)
934 objtool_target := tools/objtool FORCE 934 objtool_target := tools/objtool FORCE
935 else 935 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
937 SKIP_STACK_VALIDATION := 1 941 SKIP_STACK_VALIDATION := 1
938 export SKIP_STACK_VALIDATION 942 export SKIP_STACK_VALIDATION
939 endif 943 endif