From e1c4e4939a31b8a875d9206ae2a5597c62b1ceb2 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Tue, 22 Nov 2016 21:20:42 +0100 Subject: [PATCH] - Fixed the order of the MS sections. --- src/__autostart.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/__autostart.cpp b/src/__autostart.cpp index 3daabbeae3..13e104d753 100644 --- a/src/__autostart.cpp +++ b/src/__autostart.cpp @@ -52,8 +52,8 @@ // a single section during the final link. (.rdata is the standard section // for initialized read-only data.) -#pragma comment(linker, "/merge:.areg=.rdata /merge:.creg=.rdata /merge:.greg=.rdata") -#pragma comment(linker, "/merge:.yreg=.rdata /merge:.freg=.rdata") +#pragma comment(linker, "/merge:.areg=.rdata /merge:.creg=.rdata /merge:.freg=.rdata") +#pragma comment(linker, "/merge:.greg=.rdata /merge:.yreg=.rdata") #pragma section(".areg$a",read) __declspec(allocate(".areg$a")) void *const ARegHead = 0; @@ -61,12 +61,12 @@ __declspec(allocate(".areg$a")) void *const ARegHead = 0; #pragma section(".creg$a",read) __declspec(allocate(".creg$a")) void *const CRegHead = 0; -#pragma section(".greg$a",read) -__declspec(allocate(".greg$a")) void *const GRegHead = 0; - #pragma section(".freg$a",read) __declspec(allocate(".freg$a")) void *const FRegHead = 0; +#pragma section(".greg$a",read) +__declspec(allocate(".greg$a")) void *const GRegHead = 0; + #pragma section(".yreg$a",read) __declspec(allocate(".yreg$a")) void *const YRegHead = 0;