summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-12 17:32:46 -0500
committermidipix <writeonce@midipix.org>2016-11-12 17:32:46 -0500
commitab2a362dbf30243826d4b9645088ae50c7f944fc (patch)
tree006d0369302b65a2a12751b7c8df6a57d85b9824
parent49d95e625948c03a6071fc84f45f7b889e8a0440 (diff)
downloadpemagine-ab2a362dbf30243826d4b9645088ae50c7f944fc.tar.bz2
pemagine-ab2a362dbf30243826d4b9645088ae50c7f944fc.tar.xz
PE targets: free-standing environment: library image: mark affiliation.
-rw-r--r--src/internal/pe_entry_point.c5
1 files changed, 5 insertions, 0 deletions
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 <psxtypes/psxtypes.h>
+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;