File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/coreclr/src/nativeaot/Bootstrap Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -192,14 +192,18 @@ int main(int argc, char* argv[])
192192#endif // !CORERT_DLL
193193
194194#ifdef CORERT_DLL
195- struct InitializeRuntimePointerHelper
195+ static struct InitializeRuntimePointerHelper
196196{
197197 InitializeRuntimePointerHelper ()
198198 {
199199 RhSetRuntimeInitializationCallback (&InitializeRuntime);
200200 }
201- };
201+ } initializeRuntimePointerHelper;
202+
203+ extern " C" void * CoreRT_StaticInitialization ();
202204
203- extern " C" InitializeRuntimePointerHelper CoreRT_StaticInitialization;
204- InitializeRuntimePointerHelper CoreRT_StaticInitialization;
205+ void * CoreRT_StaticInitialization ()
206+ {
207+ return &initializeRuntimePointerHelper;
208+ }
205209#endif // CORERT_DLL
You can’t perform that action at this time.
0 commit comments