xref: /kernel/linux/linux-6.6/arch/ia64/scripts/check-gas (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/ia64/scripts/
162306a36Sopenharmony_ci#!/bin/sh
262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
362306a36Sopenharmony_cidir=$(dirname $0)
462306a36Sopenharmony_ciCC=$1
562306a36Sopenharmony_ciOBJDUMP=$2
662306a36Sopenharmony_citmp=${TMPDIR:-/tmp}
762306a36Sopenharmony_ciout=$tmp/out$$.o
862306a36Sopenharmony_ci$CC -c $dir/check-gas-asm.S -o $out
962306a36Sopenharmony_cires=$($OBJDUMP -r --section .data $out | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
1062306a36Sopenharmony_cirm -f $out
1162306a36Sopenharmony_ciif [ $res != ".text" ]; then
1262306a36Sopenharmony_ci	echo buggy
1362306a36Sopenharmony_cielse
1462306a36Sopenharmony_ci	echo good
1562306a36Sopenharmony_cifi
1662306a36Sopenharmony_ciexit 0
17

Indexes created Thu Nov 07 10:32:03 CST 2024