Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v5.15 16 lines 312 B view raw
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