diff options
| author | Wolfgang Mauerer <wolfgang@top.mynetix.de> | 2003-03-23 21:56:17 -0800 |
|---|---|---|
| committer | David Mosberger <davidm@tiger.hpl.hp.com> | 2003-03-23 21:56:17 -0800 |
| commit | 1bdbba7a2a4b1e4fcbf3ccf7a493fa53c282bcdd (patch) | |
| tree | 580589e54e5b3aa0e5898b010e806fdccdfdcf67 | |
| parent | 07eac790840d9e60d5e36207d495ab40c4d7b3d1 (diff) | |
[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.
| -rw-r--r-- | arch/ia64/Makefile | 2 | ||||
| -rwxr-xr-x | 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 |
