annotate loader/stubs.s @ 4213:f1e1b02314ef

-zr* added - patch by Rik Snel <rsnel@cube.dyndns.org>
author arpi
date Thu, 17 Jan 2002 01:28:20 +0000
parents b36fb1ae4b53
children a306c3258e4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 713
diff changeset
1 .data
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 713
diff changeset
2 .LC0: .string "Called unk_%s\n"
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 .align 4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 .globl unk_exp1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 unk_exp1:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 pushl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 movl %esp,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 subl $4,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 movl $1,-4(%ebp)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 movl -4(%ebp),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 movl %eax,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 movl %ecx,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 sall $4,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 subl %eax,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 leal 0(,%edx,2),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 movl %eax,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 addl $export_names,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 pushl %edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 pushl $.LC0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 call printf
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 addl $8,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 xorl %eax,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 leave
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 ret