diff options
| -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 |
