diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2003-01-01 10:00:39 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2003-01-01 10:00:39 +0000 |
commit | 353549d7441a2a8fddb4467ee796445e9db30abc (patch) | |
tree | 4c2254b36f5ec6fc0e890f471027fc0be694d6be /winsup/mingw/crt1.c | |
parent | 4f66b246ba438eae815dc0e8ec0887f064b09aab (diff) | |
download | cygnal-353549d7441a2a8fddb4467ee796445e9db30abc.tar.gz cygnal-353549d7441a2a8fddb4467ee796445e9db30abc.tar.bz2 cygnal-353549d7441a2a8fddb4467ee796445e9db30abc.zip |
2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
* pseudo-reloc.c (do_pseudo_reloc): Make static.
* pseudo-reloc-list.c: New file.
* crt1.c (_pei386_runtime_relocator): Declare.
(__mingw_CRTStartup): Call it.
* dllcrt1.c (_pei386_runtime_relocator): Declare.
(DllMainCRTStartup): Call it.
* Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
libmingw32.a.
2003-01-01 Egor Duda <deo@logos-m.ru>
* pseudo-reloc.c: New file.
Diffstat (limited to 'winsup/mingw/crt1.c')
-rw-r--r-- | winsup/mingw/crt1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/mingw/crt1.c b/winsup/mingw/crt1.c index ef4623f51..e589b4c14 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 |