diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-10 01:49:12 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-10 01:49:12 +0300 |
commit | b862c4219812f85712f7c7ea521c1c6cf4bcc198 (patch) | |
tree | fc3940a53b2d70a49fcdfe2c87687bf818db00b0 /winsup/cygwin/lib/_cygwin_crt0_common.cc | |
parent | 97cc22ad0662edd32330fc6e3ab0b9dd82dada1e (diff) |
* lib/pseudo-reloc.c: New file.
* lib/_cygwin_crt0_common.cc: Perform pseudo-relocs during initialization of
cygwin binary (.exe or .dll).
Diffstat (limited to 'winsup/cygwin/lib/_cygwin_crt0_common.cc')
-rw-r--r-- | winsup/cygwin/lib/_cygwin_crt0_common.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/lib/_cygwin_crt0_common.cc b/winsup/cygwin/lib/_cygwin_crt0_common.cc index e0a3e6052..565ba2571 100644 --- a/winsup/cygwin/lib/_cygwin_crt0_common.cc +++ b/winsup/cygwin/lib/_cygwin_crt0_common.cc @@ -26,6 +26,7 @@ int cygwin_attach_noncygwin_dll (HMODULE, MainFunc); int main (int, char **, char **); struct _reent *_impure_ptr; int _fmode; +void _pei386_runtime_relocator (); /* Set up pointers to various pieces so the dll can then use them, and then jump to the dll. */ @@ -94,6 +95,8 @@ _cygwin_crt0_common (MainFunc f, per_process *u) u->data_end = &_data_end__; u->bss_start = &_bss_start__; u->bss_end = &_bss_end__; + + _pei386_runtime_relocator (); return 1; } } /* "C" */ |