From ab2a362dbf30243826d4b9645088ae50c7f944fc Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 12 2016 22:32:46 +0000 Subject: PE targets: free-standing environment: library image: mark affiliation. --- diff --git a/src/internal/pe_entry_point.c b/src/internal/pe_entry_point.c index 4650824..9ea4c3f 100644 --- a/src/internal/pe_entry_point.c +++ b/src/internal/pe_entry_point.c @@ -1,7 +1,12 @@ #include +static const void * const pe_affiliation + __attr_section__(".freestd") + = 0; + int __stdcall pe_entry_point(void * hinstance, uint32_t reason, void * reserved) { + (void)pe_affiliation; (void)hinstance; (void)reason; (void)reserved;