notaz.gp2x.de
/
ia32rtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linker script, data syms
[ia32rtools.git]
/
runimp.sh
diff --git
a/runimp.sh
b/runimp.sh
index
25086c7
..
fd049d0
100755
(executable)
--- a/
runimp.sh
+++ b/
runimp.sh
@@
-2,7
+2,8
@@
grep 'extrn ' StarCraft.asm | awk '{print $2}' | awk -F: '{print $1}' > implist
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
cat implist | while read i; do
rm -f tmpsym
@@
-15,7
+16,7
@@
cat implist | while read i; do
;;
esac
;;
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
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 ".globl $i" >> tramp.s
echo "$i:" >> tramp.s
- echo "
jmp
$sym" >> tramp.s
+ echo "
.long
$sym" >> tramp.s
echo >> tramp.s
done
echo >> tramp.s
done