diff options
author | midipix <writeonce@midipix.org> | 2017-10-15 23:33:59 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-10-15 23:33:59 -0400 |
commit | c6e963c421c2e22f06a83b93cb4d0f76c68fb3e9 (patch) | |
tree | 5225c57f531954d613951a0c30b16667e144b76f | |
parent | 4ab9c5092cb1fa7d8a0ead655c02d74b81e54011 (diff) | |
download | mmglue-c6e963c421c2e22f06a83b93cb4d0f76c68fb3e9.tar.bz2 mmglue-c6e963c421c2e22f06a83b93cb4d0f76c68fb3e9.tar.xz |
_start(): integrated __crtopt_ldso, __crtopt_vrfs.
-rw-r--r-- | crt/nt32/crt1.c | 14 | ||||
-rw-r--r-- | crt/nt64/crt1.c | 8 |
2 files changed, 12 insertions, 10 deletions
diff --git a/crt/nt32/crt1.c b/crt/nt32/crt1.c index f58af6e..75a5053 100644 --- a/crt/nt32/crt1.c +++ b/crt/nt32/crt1.c @@ -19,17 +19,17 @@ extern const int __crtopt_vrfs __attribute((weak,alias("__disabled"))); int main(); -__external_routine -__psx_init_routine __psx_init; +__psx_init_routine * __psx_init_fn(void); __external_routine void __libc_entry_routine(void *,void *,int); -void start(void) +void _start(void) { __libc_entry_routine( - main, - __psx_init, - __crtopt_posix | __crtopt_dinga); + main,__psx_init_fn(), + __crtopt_posix + | __crtopt_dinga + | __crtopt_ldso + | __crtopt_vrfs); } - diff --git a/crt/nt64/crt1.c b/crt/nt64/crt1.c index 0d319a1..75a5053 100644 --- a/crt/nt64/crt1.c +++ b/crt/nt64/crt1.c @@ -27,7 +27,9 @@ void __libc_entry_routine(void *,void *,int); void _start(void) { __libc_entry_routine( - main, - __psx_init_fn(), - __crtopt_posix | __crtopt_dinga); + main,__psx_init_fn(), + __crtopt_posix + | __crtopt_dinga + | __crtopt_ldso + | __crtopt_vrfs); } |