Browse Source

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

armin 21 years ago
parent
commit
f1d757212f
2 changed files with 12 additions and 0 deletions
  1. 6 0
      rtl/netwlibc/nwl_dlle.as
  2. 6 0
      rtl/netwlibc/nwl_main.as

+ 6 - 0
rtl/netwlibc/nwl_dlle.as

@@ -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 - 0
rtl/netwlibc/nwl_main.as

@@ -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