mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 09:30:21 +02:00
+a script allowing cross-assembling and cross-linking
This commit is contained in:
parent
11f582061e
commit
2c270121d8
14
tests/sparc/asld.sh
Normal file
14
tests/sparc/asld.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
DoExitAsm ()
|
||||
{ echo "An error occurred while assembling $1"; exit 1; }
|
||||
DoExitLink ()
|
||||
{ echo "An error occurred while linking $1"; exit 1; }
|
||||
echo Assembling system
|
||||
/usr/local/bin/sparc-linux/as -o system.o system.s
|
||||
if [ $? != 0 ]; then DoExitAsm system; fi
|
||||
echo Assembling sparctest
|
||||
/usr/local/bin/sparc-linux/as -o test0001.o test0001.s
|
||||
if [ $? != 0 ]; then DoExitAsm sparctest; fi
|
||||
echo Linking sparctest
|
||||
/usr/local/bin/sparc-linux/ld -s -L. -o test0001 link.res
|
||||
if [ $? != 0 ]; then DoExitLink sparctest; fi
|
Loading…
Reference in New Issue
Block a user