From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754008AbdEULMM (ORCPT ); Sun, 21 May 2017 07:12:12 -0400 Received: from terminus.zytor.com ([65.50.211.136]:34375 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751474AbdEULMJ (ORCPT ); Sun, 21 May 2017 07:12:09 -0400 Date: Sun, 21 May 2017 04:07:49 -0700 From: tip-bot for Rob Landley Message-ID: Cc: keescook@chromium.org, hjl.tools@gmail.com, pebolle@tiscali.nl, tglx@linutronix.de, mingo@kernel.org, rob@landley.net, hpa@zytor.com, linux-kernel@vger.kernel.org, jkosina@suse.cz Reply-To: tglx@linutronix.de, mingo@kernel.org, hjl.tools@gmail.com, pebolle@tiscali.nl, keescook@chromium.org, linux-kernel@vger.kernel.org, jkosina@suse.cz, hpa@zytor.com, rob@landley.net In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/boot: Use CROSS_COMPILE prefix for readelf Git-Commit-ID: 3780578761921f094179c6289072a74b2228c602 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3780578761921f094179c6289072a74b2228c602 Gitweb: http://git.kernel.org/tip/3780578761921f094179c6289072a74b2228c602 Author: Rob Landley AuthorDate: Sat, 20 May 2017 15:03:29 -0500 Committer: Thomas Gleixner CommitDate: Sun, 21 May 2017 13:04:27 +0200 x86/boot: Use CROSS_COMPILE prefix for readelf The boot code Makefile contains a straight 'readelf' invocation. This causes build warnings in cross compile environments, when there is no unprefixed readelf accessible via $PATH. Add the missing $(CROSS_COMPILE) prefix. [ tglx: Rewrote changelog ] Fixes: 98f78525371b ("x86/boot: Refuse to build with data relocations") Signed-off-by: Rob Landley Acked-by: Kees Cook Cc: Jiri Kosina Cc: Paul Bolle Cc: "H.J. Lu" Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/ced18878-693a-9576-a024-113ef39a22c0@landley.net Signed-off-by: Thomas Gleixner --- arch/x86/boot/compressed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 44163e8..2c860ad 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -94,7 +94,7 @@ vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o quiet_cmd_check_data_rel = DATAREL $@ define cmd_check_data_rel for obj in $(filter %.o,$^); do \ - readelf -S $$obj | grep -qF .rel.local && { \ + ${CROSS_COMPILE}readelf -S $$obj | grep -qF .rel.local && { \ echo "error: $$obj has data relocations!" >&2; \ exit 1; \ } || true; \