check-gas (312B)
1#!/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