Linux Audio

Check our new training course

Loading...
v3.1
 1#!/bin/sh
 
 2dir=$(dirname $0)
 3CC=$1
 4OBJDUMP=$2
 5tmp=${TMPDIR:-/tmp}
 6out=$tmp/out$$.o
 7$CC -c $dir/check-gas-asm.S -o $out
 8res=$($OBJDUMP -r --section .data $out | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
 9rm -f $out
10if [ $res != ".text" ]; then
11	echo buggy
12else
13	echo good
14fi
15exit 0
v5.9
 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