diff options
author | midipix <writeonce@midipix.org> | 2016-02-15 13:38:38 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-02-15 13:38:38 -0500 |
commit | e43f5af7ce8bc242313ec65d93a50100f36cfebb (patch) | |
tree | 7ea1c16c369e013f3838ba55f8bfa8ea58aae4b5 | |
parent | c5e6e59c2681cab7ac731766b7c25cfbc60d6e7b (diff) | |
download | mmglue-e43f5af7ce8bc242313ec65d93a50100f36cfebb.tar.bz2 mmglue-e43f5af7ce8bc242313ec65d93a50100f36cfebb.tar.xz |
rename __libc_entry_point _dlstart, match musl's dynamic loader entry routine.
-rw-r--r-- | arch/nt32/src/_dlstart.c (renamed from arch/nt32/src/libc_entry_point.c) | 2 | ||||
-rw-r--r-- | arch/nt64/src/_dlstart.c (renamed from arch/nt64/src/libc_entry_point.c) | 2 | ||||
-rw-r--r-- | musl.lzy | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/nt32/src/libc_entry_point.c b/arch/nt32/src/_dlstart.c index 0929cc4..2cfbcbf 100644 --- a/arch/nt32/src/libc_entry_point.c +++ b/arch/nt32/src/_dlstart.c @@ -1,6 +1,6 @@ typedef unsigned int uint32_t; -int __libc_entry_point( +int dlstart( void * hinstance, uint32_t reason, void * reserved) diff --git a/arch/nt64/src/libc_entry_point.c b/arch/nt64/src/_dlstart.c index 0929cc4..40498da 100644 --- a/arch/nt64/src/libc_entry_point.c +++ b/arch/nt64/src/_dlstart.c @@ -1,6 +1,6 @@ typedef unsigned int uint32_t; -int __libc_entry_point( +int _dlstart( void * hinstance, uint32_t reason, void * reserved) @@ -22,7 +22,7 @@ lz_project_definitions() musl_cflags_shared="-fPIC" if [ "$lz_pecoff_winnt"x = yesx ]; then - pe_excluded_symbols="__libc_entry_point" + pe_excluded_symbols="_dlstart" pe_excluded_symbols="$pe_excluded_symbols,__syscall_vtbl" pe_excluded_symbols="$pe_excluded_symbols,__ldso_vtbl" pe_excluded_symbols="$pe_excluded_symbols,__psx_vtbl" @@ -31,7 +31,7 @@ lz_project_definitions() pe_excluded_symbols="$pe_excluded_symbols,__vm_lock_impl" pe_excluded_symbols="$pe_excluded_symbols,__vm_unlock_impl" - musl_libc_so_ldflags="-shared -e "$lz_default_underscore"__libc_entry_point \ + musl_libc_so_ldflags="-shared -e _dlstart \ -Bsymbolic-functions \ --subsystem windows \ --output-def $lz_build_dir/lib/libc.so.def \ |