]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 Apr 2016 18:25:01 +0000 (11:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 Apr 2016 18:25:01 +0000 (11:25 -0700)
Pull objtool fixes from Ingo Molnar:
 "A handful of objtool fixes: two improvements to how warnings are
  printed plus a false positive warning fix, and build environment fix"

* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  objtool: Fix Makefile to properly see if libelf is supported
  objtool: Detect falling through to the next function
  objtool: Add workaround for GCC switch jump table bug

1  2 
Makefile

diff --combined Makefile
index 873411873c036622755caf194037d5e6b2ba17bc,70ca38ef9f4b6d3f203f1931aec699e57107d5ec..012b7dd3ed2435bfe8bf86ce73928cc8a1375c57
+++ b/Makefile
@@@ -1,7 -1,7 +1,7 @@@
  VERSION = 4
  PATCHLEVEL = 6
  SUBLEVEL = 0
 -EXTRAVERSION = -rc3
 +EXTRAVERSION = -rc4
  NAME = Blurry Fish Butt
  
  # *DOCUMENTATION*
@@@ -1008,7 -1008,8 +1008,8 @@@ prepare0: archprepare FORC
  prepare: prepare0 prepare-objtool
  
  ifdef CONFIG_STACK_VALIDATION
-   has_libelf := $(shell echo "int main() {}" | $(HOSTCC) -xc -o /dev/null -lelf - &> /dev/null && echo 1 || echo 0)
+   has_libelf := $(call try-run,\
+               echo "int main() {}" | $(HOSTCC) -xc -o /dev/null -lelf -,1,0)
    ifeq ($(has_libelf),1)
      objtool_target := tools/objtool FORCE
    else