swh:1:snp:3c665ee4f67729f27f2e40193ab88e7298cf0fef
Raw File
Tip revision: 7379047d5585187d1288486d4627873170d0005a authored by Linus Torvalds on 18 October 2015, 23:08:42 UTC
Linux 4.3-rc6
Tip revision: 7379047
check-gas
#!/bin/sh
dir=$(dirname $0)
CC=$1
OBJDUMP=$2
tmp=${TMPDIR:-/tmp}
out=$tmp/out$$.o
$CC -c $dir/check-gas-asm.S -o $out
res=$($OBJDUMP -r --section .data $out | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
rm -f $out
if [ $res != ".text" ]; then
	echo buggy
else
	echo good
fi
exit 0
back to top