[FREELDR] Fix check, as FreeLoader x64 compiled with GCC only have 2 sections (.text and .bss)

This commit is contained in:
Hervé Poussineau 2021-02-22 00:04:40 +01:00
parent 78d9c38c37
commit 5367ae5760

View file

@ -21,8 +21,13 @@
extern char __ImageBase;
#ifdef __GNUC__
/* .text/.data/.rdata, .edata and .bss */
#define FREELDR_SECTION_COUNT 3
#ifdef _M_AMD64
/* .text/.data/.rdata, and .bss */
#define FREELDR_SECTION_COUNT 2
#else
/* .text/.data/.rdata, .edata and .bss */
#define FREELDR_SECTION_COUNT 3
#endif
#else
#ifdef _M_AMD64
/* .text, .rdata/.edata, .pdata and .data/.bss */