3 # export decorated symbols using undecorated ones from .asm
8 grep '@' $1 | grep -v '\<DATA\>' | awk '{print $1}' > ${outf}_explist
11 echo ".align 4" >> $outf
13 cat ${outf}_explist | while read i; do
14 s0=`echo $i | cut -c 1`
15 if [ "$s0" = "@" ]; then
16 sym=`echo $i | awk -F@ '{print $2}'`
19 sym=`echo $i | awk -F@ '{print $1}'`
22 if grep -q "$sym" $2; then
26 echo ".globl $pre$i" >> $outf
27 echo "$pre$i:" >> $outf
28 echo " jmp $sym" >> $outf