From 03a18278b9217490f69da3fe6b5ac84c484889fa Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 17 Jan 2026 11:29:45 +0100 Subject: feat! breaking changes on Mach-O and PEF linker. Signed-off-by: Amlal El Mahrouss --- include/CompilerKit/MachO.h | 3 ++- include/CompilerKit/Utilities/Compiler.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/CompilerKit') diff --git a/include/CompilerKit/MachO.h b/include/CompilerKit/MachO.h index a22fa9d..a8a8b78 100644 --- a/include/CompilerKit/MachO.h +++ b/include/CompilerKit/MachO.h @@ -8,6 +8,7 @@ #include +#include #include #include @@ -17,7 +18,7 @@ namespace MachO { /// @brief Mach-O segment names constexpr const char* kSegmentText = "__TEXT"; constexpr const char* kSegmentData = "__DATA"; - constexpr const char* kSegmentLinkedit = "__LINKEDIT"; + constexpr const char* kSegmentPageZero = "__PAGEZERO"; /// @brief Mach-O section names constexpr const char* kSectionText = "__text"; diff --git a/include/CompilerKit/Utilities/Compiler.h b/include/CompilerKit/Utilities/Compiler.h index 6777ca5..97d1e9c 100644 --- a/include/CompilerKit/Utilities/Compiler.h +++ b/include/CompilerKit/Utilities/Compiler.h @@ -36,6 +36,7 @@ inline static UInt32 kErrorLimit = 0; inline static UInt32 kAcceptableErrors = 0; inline static bool kVerbose = false; inline static bool kOutputAsBinary = false; +inline static bool kNasmOutput = false; namespace CompilerKit::Detail { /// @brief Blob structure -- cgit v1.2.3