[MPlayer-cvslog] r21329 - in trunk/loader: stubs.S win32.c

reimar subversion at mplayerhq.hu
Mon Nov 27 17:17:29 CET 2006


Author: reimar
Date: Mon Nov 27 17:17:29 2006
New Revision: 21329

Modified:
   trunk/loader/stubs.S
   trunk/loader/win32.c

Log:
Remove unused unk_exp1 loader asm code


Modified: trunk/loader/stubs.S
==============================================================================
--- trunk/loader/stubs.S	(original)
+++ trunk/loader/stubs.S	Mon Nov 27 17:17:29 2006
@@ -4,29 +4,6 @@
 # define SYM(x) x
 #endif
 	.data
-.LC0:	.asciz	"Called unk_%s\n"
-       .p2align 4
-.globl SYM(unk_exp1)
-SYM(unk_exp1):
-	pushl %ebp
-	movl %esp,%ebp
-	subl $4,%esp
-	movl $1,-4(%ebp)
-	movl -4(%ebp),%eax
-	movl %eax,%ecx
-	movl %ecx,%edx
-	sall $4,%edx
-	subl %eax,%edx
-	leal 0(,%edx,2),%eax
-	movl %eax,%edx
-	addl $SYM(export_names),%edx
-	pushl %edx
-	pushl $.LC0
-	call SYM(printf)
-	addl $8,%esp
-	xorl %eax,%eax
-	leave
-	ret
 .globl SYM(exp_EH_prolog)
 SYM(exp_EH_prolog):
 	pushl $0xff

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	(original)
+++ trunk/loader/win32.c	Mon Nov 27 17:17:29 2006
@@ -5316,7 +5316,6 @@
 
 //static void add_stub(int pos)
 
-extern int unk_exp1;
 static int pos=0;
 static char extcode[20000];// place for 200 unresolved exports
 static const char* called_unk = "Called unk_%s\n";
@@ -5325,11 +5324,6 @@
 {
     // generated code in runtime!
     char* answ = (char*)extcode+pos*0x30;
-#if 0
-    memcpy(answ, &unk_exp1, 0x64);
-    *(int*)(answ+9)=pos;
-    *(int*)(answ+47)-=((int)answ-(int)&unk_exp1);
-#endif
     memcpy(answ, ext_stubs, 0x2f); // 0x2c is current size
     //answ[4] = 0xb8; // movl $0, eax  (0xb8 0x00000000)
     *((int*) (answ + 5)) = pos;



More information about the MPlayer-cvslog mailing list