From bed8ce1f268e61aa201bfc0ef5b2bc2485bf3fce Mon Sep 17 00:00:00 2001
From: Sebastien Bourdeauducq <sb@m-labs.hk>
Date: Fri, 24 Sep 2021 13:25:18 +0800
Subject: [PATCH] nac3embedded: set ELF entry point symbol

---
 nac3embedded/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nac3embedded/src/lib.rs b/nac3embedded/src/lib.rs
index a7b3107..d95d27b 100644
--- a/nac3embedded/src/lib.rs
+++ b/nac3embedded/src/lib.rs
@@ -133,7 +133,7 @@ impl Nac3 {
         };
         let task = CodeGenTask {
             subst: Default::default(),
-            symbol_name: method_name,
+            symbol_name: "__modinit__".to_string(),
             body: instance.body,
             signature,
             resolver: self.resolver.clone(),