blob: 787cf9b6b04a68374047748a231b7fe6dee2c7b1 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
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