https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5367ae576083f18c0fbdf0...
commit 5367ae576083f18c0fbdf0c1e6954c0bb1b47845 Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Mon Feb 22 00:04:40 2021 +0100 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Mon Feb 22 00:08:28 2021 +0100
[FREELDR] Fix check, as FreeLoader x64 compiled with GCC only have 2 sections (.text and .bss) --- boot/freeldr/freeldr/include/mm.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/boot/freeldr/freeldr/include/mm.h b/boot/freeldr/freeldr/include/mm.h index e86424f17ad..dd1bb195633 100644 --- a/boot/freeldr/freeldr/include/mm.h +++ b/boot/freeldr/freeldr/include/mm.h @@ -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 */