summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/internal/pe_entry_point.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/pe_entry_point.c b/src/internal/pe_entry_point.c
index 2ebd928..0c3154d 100644
--- a/src/internal/pe_entry_point.c
+++ b/src/internal/pe_entry_point.c
@@ -6,6 +6,10 @@ static const void * const pe_affiliation
__attr_section__(".freestd")
= 0;
+#ifdef PE_LDSO
+#define pe_entry_point __ldso_entry_point
+#endif
+
int __stdcall pe_entry_point(void * hinstance, uint32_t reason, void * reserved)
{
(void)pe_affiliation;