2
0
Эх сурвалжийг харах

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

armin 21 жил өмнө
parent
commit
f1d757212f

+ 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