From 1bdbba7a2a4b1e4fcbf3ccf7a493fa53c282bcdd Mon Sep 17 00:00:00 2001 From: Wolfgang Mauerer Date: Sun, 23 Mar 2003 21:56:17 -0800 Subject: [PATCH] ia64: Cross-compile fix the attached patch (against bk-current) fixes a cross compilation problem by using the target specific objdump tool instead of the host specific one. --- arch/ia64/Makefile | 2 +- arch/ia64/scripts/check-gas | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile index 854f27e120ca..04b54e8e258b 100644 --- a/arch/ia64/Makefile +++ b/arch/ia64/Makefile @@ -23,7 +23,7 @@ CFLAGS_KERNEL := -mconstant-gp GCC_VERSION=$(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.') -GAS_STATUS=$(shell arch/ia64/scripts/check-gas $(CC)) +GAS_STATUS=$(shell arch/ia64/scripts/check-gas $(CC) $(OBJDUMP)) ifeq ($(GAS_STATUS),buggy) $(error Sorry, you need a newer version of the assember, one that is built from \ diff --git a/arch/ia64/scripts/check-gas b/arch/ia64/scripts/check-gas index ef652caf82ae..b7a4b1261ac5 100755 --- a/arch/ia64/scripts/check-gas +++ b/arch/ia64/scripts/check-gas @@ -1,8 +1,9 @@ #!/bin/sh dir=$(dirname $0) CC=$1 +OBJDUMP=$2 $CC -c $dir/check-gas-asm.S -res=$(objdump -r --section .data check-gas-asm.o | fgrep 00004 | tr -s ' ' |cut -f3 -d' ') +res=$($OBJDUMP -r --section .data check-gas-asm.o | fgrep 00004 | tr -s ' ' |cut -f3 -d' ') if [ $res != ".text" ]; then echo buggy else -- cgit v1.2.3