From 0fceaef4af5fbb97ec74d215177bae7a60729062 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 27 Apr 2024 16:19:47 +0200 Subject: MHR-20: Fix codegen. Signed-off-by: Amlal El Mahrouss --- Sources/64asm.cc | 2 +- Sources/64x0-cc.cc | 2 +- Sources/link.cc | 6 +++--- Sources/ppc-cc.cc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Sources') diff --git a/Sources/64asm.cc b/Sources/64asm.cc index 566dfd8..a3b3f00 100644 --- a/Sources/64asm.cc +++ b/Sources/64asm.cc @@ -361,7 +361,7 @@ static bool asm_read_attributes(std::string &line) { } // export is a special keyword used by 64asm to tell the AE output stage to // mark this section as a header. it currently supports .code64, .data64., - // page_zero + // .zero64 else if (ParserKit::find_word(line, "export")) { if (kOutputAsBinary) { detail::print_error("Invalid export directive in flat binary mode.", diff --git a/Sources/64x0-cc.cc b/Sources/64x0-cc.cc index 7cee282..9492b6e 100644 --- a/Sources/64x0-cc.cc +++ b/Sources/64x0-cc.cc @@ -475,7 +475,7 @@ bool CompilerBackendCLang::Compile(const std::string &text, const char *file) { if (textBuffer[text_index_2] == '=') { if (!kInBraces) { substr.replace(substr.find("export .data64"), - strlen("export .data64"), "export .page_zero "); + strlen("export .data64"), "export .zero64 "); } substr += ","; diff --git a/Sources/link.cc b/Sources/link.cc index 3ce54e8..2725598 100644 --- a/Sources/link.cc +++ b/Sources/link.cc @@ -27,12 +27,12 @@ #include #include +//! Dist version +#include + //! Advanced Executable Object Format #include -//! Dist version -#include - //! C++ I/O headers. #include #include diff --git a/Sources/ppc-cc.cc b/Sources/ppc-cc.cc index 318cf0a..5b0c334 100644 --- a/Sources/ppc-cc.cc +++ b/Sources/ppc-cc.cc @@ -490,7 +490,7 @@ bool CompilerBackendCLang::Compile(const std::string &text, const char *file) { if (textBuffer[text_index_2] == '=') { if (!kInBraces) { substr.replace(substr.find("export .data64"), - strlen("export .data64"), "export .page_zero "); + strlen("export .data64"), "export .zero64 "); } substr += ","; -- cgit v1.2.3