diff options
author | midipix <writeonce@midipix.org> | 2015-09-25 22:22:31 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-09-26 14:46:43 -0400 |
commit | f4b4a3bcc6d68b4ca4604a3c751277ed45902281 (patch) | |
tree | aaf10c0f4c8755035d04e96d6c1b9a6edde12b55 | |
parent | 18eb4842536d1c9df278e7f65c16ce5679b99d39 (diff) | |
download | pemagine-f4b4a3bcc6d68b4ca4604a3c751277ed45902281.tar.bz2 pemagine-f4b4a3bcc6d68b4ca4604a3c751277ed45902281.tar.xz |
normalize the name of the library's entry point.
-rw-r--r-- | project/common.mk | 2 | ||||
-rw-r--r-- | project/extras.mk | 4 | ||||
-rw-r--r-- | src/internal/pe_entry_point.c | 6 | ||||
-rw-r--r-- | src/internal/pe_lib_entry_point.c | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/project/common.mk b/project/common.mk index 4c74d04..1b98bcd 100644 --- a/project/common.mk +++ b/project/common.mk @@ -11,7 +11,7 @@ COMMON_SRCS = \ src/headers/pe_get_image_special_hdr_addr.c \ src/imports/pe_enum_image_import_hdrs.c \ src/internal/pe_impl.c \ - src/internal/pe_lib_entry_point.c \ + src/internal/pe_entry_point.c \ src/meta/pe_get_image_stack_heap_info.c \ src/meta/pe_get_symbol_module_info.c \ src/meta/pe_get_symbol_name.c \ diff --git a/project/extras.mk b/project/extras.mk index 2af3716..fe95d37 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -9,7 +9,7 @@ LDFLAGS_SHARED += --out-implib $(SHARED_IMPLIB) LDFLAGS_SHARED += --exclude-all-symbols ifeq ($(HOST_BITS),32) - LDFLAGS_SHARED += --entry $(HOST_UNDERSCORE)pe_lib_entry_point@12 + LDFLAGS_SHARED += --entry $(HOST_UNDERSCORE)pe_entry_point@12 else - LDFLAGS_SHARED += --entry $(HOST_UNDERSCORE)pe_lib_entry_point + LDFLAGS_SHARED += --entry $(HOST_UNDERSCORE)pe_entry_point endif diff --git a/src/internal/pe_entry_point.c b/src/internal/pe_entry_point.c new file mode 100644 index 0000000..e76f137 --- /dev/null +++ b/src/internal/pe_entry_point.c @@ -0,0 +1,6 @@ +#include <psxtypes/psxtypes.h> + +int __stdcall pe_entry_point(void * hinstance, uint32_t reason, void * reserved) +{ + return 1; +} diff --git a/src/internal/pe_lib_entry_point.c b/src/internal/pe_lib_entry_point.c deleted file mode 100644 index efdaa26..0000000 --- a/src/internal/pe_lib_entry_point.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <psxtypes/psxtypes.h> - -int __stdcall pe_lib_entry_point(void * hinstance, uint32_t reason, void * reserved) -{ - return 1; -} |