From 2fd3475239d4258ca4407ffb2c0720d90d711d6c Mon Sep 17 00:00:00 2001 From: Amlal Date: Mon, 27 Jan 2025 02:11:12 +0100 Subject: ADD: `dbg` C++ debugger program. META: Ran format command with correct C++ extensions. Signed-off-by: Amlal --- dev/LibCompiler/src/DynamicLinkerELF.cc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'dev/LibCompiler/src/DynamicLinkerELF.cc') diff --git a/dev/LibCompiler/src/DynamicLinkerELF.cc b/dev/LibCompiler/src/DynamicLinkerELF.cc index 2e52928..870b5f3 100644 --- a/dev/LibCompiler/src/DynamicLinkerELF.cc +++ b/dev/LibCompiler/src/DynamicLinkerELF.cc @@ -35,12 +35,12 @@ #define kLinkerVersionStr "TQ 64-Bit Linker (ELF) %s, (c) Amlal EL Mahrouss. 2024, all rights reserved.\n" #define MemoryCopy(DST, SRC, SZ) memcpy(DST, SRC, SZ) -#define StringCompare(DST, SRC) strcmp(DST, SRC) +#define StringCompare(DST, SRC) strcmp(DST, SRC) #define kPefNoCpu 0U #define kPefNoSubCpu 0U -#define kWhite "\e[0;97m" +#define kWhite "\e[0;97m" #define kStdOut (std::cout << kWhite << "ld64: ") @@ -53,24 +53,24 @@ namespace Detail { -struct DynamicLinkerBlob final -{ - std::vector mBlob{}; // PEF code/bss/data blob. - UIntPtr mObjOffset{0UL}; // the offset of the PEF container header.. -}; -} - -static Bool kFatBinaryEnable = false; -static Bool kStartFound = false; -static Bool kDuplicateSymbols = false; -static Bool kVerbose = false; + struct DynamicLinkerBlob final + { + std::vector mBlob{}; // PEF code/bss/data blob. + UIntPtr mObjOffset{0UL}; // the offset of the PEF container header.. + }; +} // namespace Detail + +static Bool kFatBinaryEnable = false; +static Bool kStartFound = false; +static Bool kDuplicateSymbols = false; +static Bool kVerbose = false; /* object code and list. */ -static std::vector kObjectList; +static std::vector kObjectList; static std::vector kObjectBytes; -static uintptr_t kMIBCount = 8; -static uintptr_t kByteCount = 1024; +static uintptr_t kMIBCount = 8; +static uintptr_t kByteCount = 1024; #define kPrintF printf #define kLinkerSplash() kPrintF(kWhite kLinkerVersionStr, kDistVersion) -- cgit v1.2.3