Mercurial > mplayer.hg
annotate loader/stubs.S @ 21290:efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
author | nplourde |
---|---|
date | Mon, 27 Nov 2006 02:44:06 +0000 |
parents | |
children | fe547c3298eb |
rev | line source |
---|---|
21290
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
1 #if defined(__APPLE__) || defined(__OpenBSD__) |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
2 # define SYM(x) _ ## x |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
3 #else |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
4 # define SYM(x) x |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
5 #endif |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
6 .data |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
7 .LC0: .asciz "Called unk_%s\n" |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
8 .p2align 4 |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
9 .globl SYM(unk_exp1) |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
10 SYM(unk_exp1): |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
11 pushl %ebp |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
12 movl %esp,%ebp |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
13 subl $4,%esp |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
14 movl $1,-4(%ebp) |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
15 movl -4(%ebp),%eax |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
16 movl %eax,%ecx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
17 movl %ecx,%edx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
18 sall $4,%edx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
19 subl %eax,%edx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
20 leal 0(,%edx,2),%eax |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
21 movl %eax,%edx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
22 addl $SYM(export_names),%edx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
23 pushl %edx |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
24 pushl $.LC0 |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
25 call SYM(printf) |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
26 addl $8,%esp |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
27 xorl %eax,%eax |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
28 leave |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
29 ret |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
30 .globl SYM(exp_EH_prolog) |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
31 SYM(exp_EH_prolog): |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
32 pushl $0xff |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
33 pushl %eax |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
34 pushl %fs:0 |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
35 movl %esp, %fs:0 |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
36 movl 12(%esp), %eax |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
37 movl %ebp, 12(%esp) |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
38 leal 12(%esp), %ebp |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
39 pushl %eax |
efc774a1e5a4
fix compilation for win32 dll codec support for intel osx
nplourde
parents:
diff
changeset
|
40 ret |