repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WIP FPC-III support
[linux/fpc-iii.git]
/
arch
/
ia64
/
scripts
/
check-gas
blob
787cf9b6b04a68374047748a231b7fe6dee2c7b1
1
#!/bin/sh
2
# SPDX-License-Identifier: GPL-2.0
3
dir
=
$
(
dirname
$0
)
4
CC
=
$1
5
OBJDUMP
=
$2
6
tmp
=
${TMPDIR:-/tmp}
7
out
=
$tmp
/
out$$.o
8
$CC
-c
$dir
/
check-gas-asm.S
-o
$out
9
res
=
$
(
$OBJDUMP
-r --section
.data
$out
| fgrep
00004
|
tr
-s
' '
|cut
-f3 -d
' '
)
10
rm
-f
$out
11
if
[
$res
!=
".text"
];
then
12
echo
buggy
13
else
14
echo
good
15
fi
16
exit
0