Browse Source

* stkptr fixed

git-svn-id: trunk@2495 -
peter 19 years ago
parent
commit
7dfdc2fe4d
1 changed files with 6 additions and 14 deletions
  1. 6 14
      rtl/win32/wdllprt0.as

+ 6 - 14
rtl/win32/wdllprt0.as

@@ -20,6 +20,7 @@ _WinMainCRTStartup:
      movl     %edi,U_SYSTEM_DLLREASON
      movl     %edi,U_SYSTEM_DLLREASON
      movl     16(%ebp),%edi
      movl     16(%ebp),%edi
      movl     %edi,U_SYSTEM_DLLPARAM
      movl     %edi,U_SYSTEM_DLLPARAM
+     movl     %esp,__stkptr
      call     _FPC_DLL_Entry
      call     _FPC_DLL_Entry
      popl     %edi
      popl     %edi
      popl     %esi
      popl     %esi
@@ -31,13 +32,13 @@ _WinMainCRTStartup:
 asm_exit:
 asm_exit:
     pushl  %eax
     pushl  %eax
 	call   exitprocess
 	call   exitprocess
-	
+
 .text
 .text
 .globl	exitprocess
 .globl	exitprocess
 exitprocess:
 exitprocess:
 	jmp	*.L10
 	jmp	*.L10
 	.balign 4,144
 	.balign 4,144
-	
+
 .text
 .text
 	.balign 4,144
 	.balign 4,144
 
 
@@ -54,7 +55,7 @@ exitprocess:
 
 
 .section .idata$5
 .section .idata$5
 .L8:
 .L8:
-	
+
 
 
 .section .idata$5
 .section .idata$5
 .L10:
 .L10:
@@ -71,14 +72,5 @@ exitprocess:
 .L6:
 .L6:
 	.ascii	"kernel32.dll\000"
 	.ascii	"kernel32.dll\000"
 
 
-
-//
-
-// Revision 1.4  2002/12/04 21:36:44  carl
-//   * libraries would no longer compile because of my profiling fix
-//
-// Revision 1.3  2002/07/28 20:43:51  florian
-//   * several fixes for linux/powerpc
-//   * several fixes to MT
-//
-//
+.bss
+    .comm   __stkptr,4