Merge branch 'for-5.12/google' into for-linus
[linux-block.git] / arch / ia64 / scripts / check-gas
CommitLineData
1da177e4 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
3dir=$(dirname $0)
4CC=$1
5OBJDUMP=$2
6tmp=${TMPDIR:-/tmp}
7out=$tmp/out$$.o
8$CC -c $dir/check-gas-asm.S -o $out
9res=$($OBJDUMP -r --section .data $out | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
10rm -f $out
11if [ $res != ".text" ]; then
12 echo buggy
13else
14 echo good
15fi
16exit 0