diff -r e36d713562b8 pypy/translator/c/dlltool.py
--- a/pypy/translator/c/dlltool.py	Tue Mar 27 01:21:29 2012 +0200
+++ b/pypy/translator/c/dlltool.py	Tue Mar 27 14:05:34 2012 +0200
@@ -26,7 +26,7 @@
 
     def compile(self):
         export_symbols = ([self.db.get(ep) for ep in self.getentrypointptr()] +
-                          ['RPython_StartupCode'])
+                          ['RPython_StartupCode', 'pypy_g_call_startup', 'pypy_g_ObjSpace_startup', 'pypy_g_State_startup', 'pypy_g_State_startup', 'pypy_g_Module_startup', 'pypy_g_pypy_module_cpyext_state_State'])
         extsymeci = ExternalCompilationInfo(export_symbols=export_symbols)
         self.eci = self.eci.merge(extsymeci)
         files = [self.c_source_filename] + self.extrafiles
diff -r e36d713562b8 pypy/translator/c/genc.py
--- a/pypy/translator/c/genc.py	Tue Mar 27 01:21:29 2012 +0200
+++ b/pypy/translator/c/genc.py	Tue Mar 27 14:05:34 2012 +0200
@@ -250,7 +250,7 @@
             if self.config.translation.shared:
                 defines['PYPY_MAIN_FUNCTION'] = "pypy_main_startup"
                 self.eci = self.eci.merge(ExternalCompilationInfo(
-                    export_symbols=["pypy_main_startup"]))
+                    export_symbols=["pypy_main_startup", "RPython_StartupCode", "pypy_g_ObjSpace_startup", "pypy_g_call_startup", "pypy_g_State_startup", "pypy_g_Module_startup", "pypy_g_pypy_module_cpyext_state_State"]))
         self.eci, cfile, extra = gen_source(db, modulename, targetdir,
                                             self.eci, defines=defines,
                                             split=self.split)
@@ -334,7 +334,7 @@
         assert self.c_source_filename 
         assert not self._compiled
         export_symbols = [self.db.get(self.getentrypointptr()),
-                          'RPython_StartupCode',
+                          'RPython_StartupCode', 'pypy_g_call_startup', 'pypy_g_ObjSpace_startup', 'pypy_g_State_startup', 'pypy_g_State_startup', 'pypy_g_Module_startup', 'pypy_g_pypy_module_cpyext_state_State',
                           ]
         if self.config.translation.countmallocs:
             export_symbols.append('malloc_counters')
