gprt0.as 916 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Startup code for WIN32 port of Free Pascal
  2. // with profiling enabled.
  3. .text
  4. .globl _mainCRTStartup
  5. _mainCRTStartup:
  6. movb $1,U_SYSTEM_ISCONSOLE
  7. call _FPC_EXE_Entry
  8. .globl _WinMainCRTStartup
  9. _WinMainCRTStartup:
  10. movb $0,U_SYSTEM_ISCONSOLE
  11. call _FPC_EXE_Entry
  12. .globl asm_exit
  13. asm_exit:
  14. pushl %eax
  15. call __mcleanup
  16. popl %eax
  17. pushl %eax
  18. call exitprocess
  19. .text
  20. .globl exitprocess
  21. exitprocess:
  22. jmp *.L10
  23. .balign 4,144
  24. .text
  25. .balign 4,144
  26. .section .idata$2
  27. .rva .L7
  28. .long 0,0
  29. .rva .L6
  30. .rva .L8
  31. .section .idata$4
  32. .L7:
  33. .rva .L9
  34. .long 0
  35. .section .idata$5
  36. .L8:
  37. .section .idata$5
  38. .L10:
  39. .rva .L9
  40. .long 0
  41. .section .idata$6
  42. .L9:
  43. .short 0
  44. .ascii "ExitProcess\000"
  45. .balign 2,0
  46. .section .idata$7
  47. .L6:
  48. .ascii "kernel32.dll\000"
  49. //
  50. // $Log$
  51. // Revision 1.1 2002-11-30 18:17:35 carl
  52. // + profiling support
  53. //
  54. //
  55. //