xref: /kernel/linux/linux-5.10/arch/ia64/scripts/check-gas (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/ia64/scripts/
18c2ecf20Sopenharmony_ci#!/bin/sh
28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
38c2ecf20Sopenharmony_cidir=$(dirname $0)
48c2ecf20Sopenharmony_ciCC=$1
58c2ecf20Sopenharmony_ciOBJDUMP=$2
68c2ecf20Sopenharmony_citmp=${TMPDIR:-/tmp}
78c2ecf20Sopenharmony_ciout=$tmp/out$$.o
88c2ecf20Sopenharmony_ci$CC -c $dir/check-gas-asm.S -o $out
98c2ecf20Sopenharmony_cires=$($OBJDUMP -r --section .data $out | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
108c2ecf20Sopenharmony_cirm -f $out
118c2ecf20Sopenharmony_ciif [ $res != ".text" ]; then
128c2ecf20Sopenharmony_ci	echo buggy
138c2ecf20Sopenharmony_cielse
148c2ecf20Sopenharmony_ci	echo good
158c2ecf20Sopenharmony_cifi
168c2ecf20Sopenharmony_ciexit 0
17

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