diff options
-rw-r--r-- | project/extras.mk | 4 | ||||
-rw-r--r-- | src/internal/pe_entry_point.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/project/extras.mk b/project/extras.mk index 3b55c90..f9ddb03 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,5 +1,5 @@ -CFLAGS_SHARED_ATTR += -DPE_EXPORT -fvisibility=protected -CFLAGS_STATIC_ATTR += -DPE_STATIC -fvisibility=protected +CFLAGS_SHARED_ATTR += -DPE_EXPORT +CFLAGS_STATIC_ATTR += -DPE_STATIC CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS) CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ diff --git a/src/internal/pe_entry_point.c b/src/internal/pe_entry_point.c index 0c3154d..188df13 100644 --- a/src/internal/pe_entry_point.c +++ b/src/internal/pe_entry_point.c @@ -10,7 +10,10 @@ static const void * const pe_affiliation #define pe_entry_point __ldso_entry_point #endif -int __stdcall pe_entry_point(void * hinstance, uint32_t reason, void * reserved) +int __stdcall __attr_protected__ pe_entry_point( + void * hinstance, + uint32_t reason, + void * reserved) { (void)pe_affiliation; (void)hinstance; |