* added objects to provide main or DllMain for Programs or Libraries

This commit is contained in:
armin 2004-09-19 18:13:13 +00:00
parent 014395198b
commit f1d757212f
2 changed files with 12 additions and 0 deletions

6
rtl/netwlibc/nwl_dlle.as Normal file
View File

@ -0,0 +1,6 @@
//for a non-library we should not have DllMain
//link this only for libraries
.text
.globl DllMain
DllMain:
jmp _FPC_DLL_Entry

6
rtl/netwlibc/nwl_main.as Normal file
View File

@ -0,0 +1,6 @@
//for a library we should not have main
//link this only for non libraries
.text
.globl main
main:
jmp _FPC_NLM_Entry