summaryrefslogtreecommitdiffhomepage
path: root/Sources
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-27 16:19:47 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-27 16:19:47 +0200
commit0fceaef4af5fbb97ec74d215177bae7a60729062 (patch)
tree556fad0ba92f38bf66036b7ae3fb1402fa9de37b /Sources
parent242b40a6605145199f1624adbff47e8a5547e51e (diff)
MHR-20: Fix codegen.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Sources')
-rw-r--r--Sources/64asm.cc2
-rw-r--r--Sources/64x0-cc.cc2
-rw-r--r--Sources/link.cc6
-rw-r--r--Sources/ppc-cc.cc2
4 files changed, 6 insertions, 6 deletions
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 <random>
#include <vector>
+//! Dist version
+#include <Headers/Version.hxx>
+
//! Advanced Executable Object Format
#include <Headers/StdKit/AE.hpp>
-//! Dist version
-#include <Version.hxx>
-
//! C++ I/O headers.
#include <fstream>
#include <iostream>
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 += ",";