diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-27 02:11:12 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-27 02:11:12 +0100 |
| commit | 2fd3475239d4258ca4407ffb2c0720d90d711d6c (patch) | |
| tree | f56bbe4a03196ff41d197a617c263dbb13658ef4 /dev/LibCompiler/src/DynamicLinkerELF.cc | |
| parent | 2b2ac6e8c5dd2b3234b74d38833066dcd483267b (diff) | |
ADD: `dbg` C++ debugger program.
META: Ran format command with correct C++ extensions.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/src/DynamicLinkerELF.cc')
| -rw-r--r-- | dev/LibCompiler/src/DynamicLinkerELF.cc | 32 |
1 files changed, 16 insertions, 16 deletions
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<CharType> 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<CharType> 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<LibCompiler::String> kObjectList; +static std::vector<LibCompiler::String> kObjectList; static std::vector<Detail::DynamicLinkerBlob> 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) |
