From 35ac989886dcab70ff4ba6bc6a1359d1290560ad Mon Sep 17 00:00:00 2001 From: Amlal Date: Thu, 1 May 2025 08:35:38 +0200 Subject: ld64: Make linker more robust, and extend PEF to version 4. Signed-off-by: Amlal --- dev/LibCompiler/src/CCompilerARM64.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev/LibCompiler/src/CCompilerARM64.cc') 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 #include #include +#include #include #include #include @@ -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"}); -- cgit v1.2.3