X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=runimp.sh;h=fd049d01764e31fd4661bce80e5eb9e9a5cc10f4;hb=feb96a61a94dddba9f9520d8741ed47122d2de29;hp=25086c78b16aaddb7975d51bc3dcc7c97163f829;hpb=60f7539b5bd64b7bbcd43ef0de297a705e1c1633;p=ia32rtools.git diff --git a/runimp.sh b/runimp.sh index 25086c7..fd049d0 100755 --- a/runimp.sh +++ b/runimp.sh @@ -2,7 +2,8 @@ grep 'extrn ' StarCraft.asm | awk '{print $2}' | awk -F: '{print $1}' > implist -echo -n "" > tramp.s +echo ".data" > tramp.s +echo ".align 4" >> tramp.s cat implist | while read i; do rm -f tmpsym @@ -15,7 +16,7 @@ cat implist | while read i; do ;; esac - grep "\<_$si\>" /usr/i586-mingw32msvc/lib/lib* | awk '{print $3}' | \ + grep "\<_$si\>" /usr/i586-mingw32msvc/lib/lib* *.lib | awk '{print $3}' | \ while read f; do sym=`i586-mingw32msvc-nm $f | grep "\<_$si\>" | grep ' T ' | awk '{print $3}'` if test -n "$sym"; then @@ -31,6 +32,6 @@ cat implist | while read i; do echo ".globl $i" >> tramp.s echo "$i:" >> tramp.s - echo " jmp $sym" >> tramp.s + echo " .long $sym" >> tramp.s echo >> tramp.s done