summaryrefslogtreecommitdiff
path: root/winsup/mingw/crt1.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/crt1.c')
-rw-r--r--winsup/mingw/crt1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/mingw/crt1.c b/winsup/mingw/crt1.c
index ef4623f515f..e589b4c1447 100644
--- a/winsup/mingw/crt1.c
+++ b/winsup/mingw/crt1.c
@@ -47,6 +47,9 @@
* a-good-idea use of include. */
#include "init.c"
+
+extern void _pei386_runtime_relocator (void);
+
extern int main (int, char **, char **);
/*
@@ -203,6 +206,10 @@ __mingw_CRTStartup ()
*/
_mingw32_init_fmode ();
+
+ /* Adust references to dllimported data that have non-zero offsets. */
+ _pei386_runtime_relocator ();
+
/*
* Call the main function. If the user does not supply one
* the one in the 'libmingw32.a' library will be linked in, and