From: Ben Hutchings Date: Sun, 14 Jan 2018 19:27:18 +0000 (+0000) Subject: Revert "objtool: Fix CONFIG_STACK_VALIDATION=y warning for out-of-tree modules" X-Git-Tag: archive/raspbian/5.7.6-1+rpi1^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d2090f4ca08281467b90c5f14af86ce78c692fd2;p=linux.git Revert "objtool: Fix CONFIG_STACK_VALIDATION=y warning for out-of-tree modules" This reverts commit 9f0c18aec620bc9d82268b3cb937568dd07b43ff. This check doesn't make sense for OOT modules as they should always use a pre-built objtool. Gbp-Pq: Topic debian Gbp-Pq: Name revert-objtool-fix-config_stack_validation-y-warning.patch --- diff --git a/Makefile b/Makefile index 305c3033f18..aaa7faad9e9 100644 --- a/Makefile +++ b/Makefile @@ -1019,17 +1019,6 @@ export mod_sign_cmd HOST_LIBELF_LIBS = $(shell pkg-config libelf --libs 2>/dev/null || echo -lelf) -ifdef CONFIG_STACK_VALIDATION - has_libelf := $(call try-run,\ - echo "int main() {}" | $(HOSTCC) -xc -o /dev/null $(HOST_LIBELF_LIBS) -,1,0) - ifeq ($(has_libelf),1) - objtool_target := tools/objtool FORCE - else - SKIP_STACK_VALIDATION := 1 - export SKIP_STACK_VALIDATION - endif -endif - PHONY += prepare0 export MODORDER := $(extmod-prefix)modules.order @@ -1157,6 +1146,17 @@ uapi-asm-generic: $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \ generic=include/uapi/asm-generic +ifdef CONFIG_STACK_VALIDATION + has_libelf := $(call try-run,\ + echo "int main() {}" | $(HOSTCC) -xc -o /dev/null $(HOST_LIBELF_LIBS) -,1,0) + ifeq ($(has_libelf),1) + objtool_target := tools/objtool FORCE + else + SKIP_STACK_VALIDATION := 1 + export SKIP_STACK_VALIDATION + endif +endif + PHONY += prepare-objtool prepare-objtool: $(objtool_target) ifeq ($(SKIP_STACK_VALIDATION),1)