summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/CCompilerARM64.cc
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-01 08:35:38 +0200
committerAmlal <amlal@nekernel.org>2025-05-01 08:35:38 +0200
commit35ac989886dcab70ff4ba6bc6a1359d1290560ad (patch)
tree4ba89bacb3209e8d5763bf9759776c453a1aa413 /dev/LibCompiler/src/CCompilerARM64.cc
parent6af5722b2b29731b3d96abfa7c2a512f5984312b (diff)
ld64: Make linker more robust, and extend PEF to version 4.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/CCompilerARM64.cc')
-rw-r--r--dev/LibCompiler/src/CCompilerARM64.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/LibCompiler/src/CCompilerARM64.cc b/dev/LibCompiler/src/CCompilerARM64.cc
index b2f36e9..26867f1 100644
--- a/dev/LibCompiler/src/CCompilerARM64.cc
+++ b/dev/LibCompiler/src/CCompilerARM64.cc
@@ -13,6 +13,7 @@
#include <LibCompiler/Backend/Aarch64.h>
#include <LibCompiler/Parser.h>
#include <LibCompiler/UUID.h>
+#include <LibCompiler/Detail/ClUtils.h>
#include <cstdio>
#include <fstream>
#include <iostream>
@@ -86,9 +87,7 @@ struct CompilerState final {
} // namespace Detail
static Detail::CompilerState kState;
-static SizeType kErrorLimit = 100;
static std::string kIfFunction = "";
-static Int32 kAcceptableErrors = 0;
namespace Detail {
/// @brief prints an error into stdout.
@@ -1201,6 +1200,8 @@ static void cc_print_help() {
#define kCExtension ".c"
LIBCOMPILER_MODULE(NeOSCompilerCLangARM64) {
+ ::signal(SIGSEGV, Detail::segfault_handler);
+
kCompilerTypes.push_back({.fName = "void", .fValue = "void"});
kCompilerTypes.push_back({.fName = "char", .fValue = "byte"});
kCompilerTypes.push_back({.fName = "short", .fValue = "hword"});