From 53b45fa599f293f62992abea222472acb512c8d3 Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 12 2016 22:35:41 +0000 Subject: PE targets: free-standing environment: library image: mark affiliation. --- diff --git a/src/internal/ntapi_entry_point.c b/src/internal/ntapi_entry_point.c index 7d0f99f..dcf2fd5 100644 --- a/src/internal/ntapi_entry_point.c +++ b/src/internal/ntapi_entry_point.c @@ -6,8 +6,13 @@ #include +static const void * const __ntapi_affiliation + __attr_section__(".freestd") + = 0; + int __stdcall __ntapi_entry_point(void * hinstance, uint32_t reason, void * reserved) { + (void)__ntapi_affiliation; (void)hinstance; (void)reason; (void)reserved;