From f4b4a3bcc6d68b4ca4604a3c751277ed45902281 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 25 Sep 2015 22:22:31 -0400 Subject: normalize the name of the library's entry point. --- project/common.mk | 2 +- project/extras.mk | 4 ++-- src/internal/pe_entry_point.c | 6 ++++++ src/internal/pe_lib_entry_point.c | 6 ------ 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 src/internal/pe_entry_point.c delete mode 100644 src/internal/pe_lib_entry_point.c 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 + +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 - -int __stdcall pe_lib_entry_point(void * hinstance, uint32_t reason, void * reserved) -{ - return 1; -} -- cgit v1.2.3