summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-17 08:03:10 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-17 08:03:57 +0100
commit8dbb92e920c662fa2fe22693677d90498f2d85d9 (patch)
tree4bdee5a6c7a090f7b0695856f90f694d8923aec2 /dev/LibCompiler/src
parent8287471571b29416ec70bc363806cd24a287b885 (diff)
fix: LibCompiler frontend has been reworked to work on clang. Renamed 'Linkers' irectory to 'Linker'
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src')
-rw-r--r--dev/LibCompiler/src/CodeGen.cc2
-rw-r--r--dev/LibCompiler/src/Linker/DynamicLinker64PEF.cc (renamed from dev/LibCompiler/src/Linkers/DynamicLinker64PEF.cc)28
2 files changed, 3 insertions, 27 deletions
diff --git a/dev/LibCompiler/src/CodeGen.cc b/dev/LibCompiler/src/CodeGen.cc
index 92a1d0f..a6fff71 100644
--- a/dev/LibCompiler/src/CodeGen.cc
+++ b/dev/LibCompiler/src/CodeGen.cc
@@ -10,7 +10,7 @@
/**
* @file CodeGen.cc
* @author amlal (amlal@nekernel.org)
- * @brief Assembler Kit
+ * @brief Assembler Kit (Code generation kit)
* @version 0.1
* @date 2024-01-27
*
diff --git a/dev/LibCompiler/src/Linkers/DynamicLinker64PEF.cc b/dev/LibCompiler/src/Linker/DynamicLinker64PEF.cc
index 7cb93a9..47ff9e5 100644
--- a/dev/LibCompiler/src/Linkers/DynamicLinker64PEF.cc
+++ b/dev/LibCompiler/src/Linker/DynamicLinker64PEF.cc
@@ -3,7 +3,7 @@
Copyright (C) 2024-2025 Amlal El Mahrouss, all rights reserved
@file DynamicLinker64PEF.cc
- @brief: C++ 64-Bit PEF Linker.
+ @brief: C++ 64-Bit PEF Linker for NeKernel.org
------------------------------------------- */
@@ -13,33 +13,16 @@
/// @note Do not look up for anything with .code64/.data64/.zero64!
/// It will be loaded when the program loader will start the image.
-//! Toolchain Kit.
-#include <LibCompiler/Defines.h>
-//! Error ID
+#include <LibCompiler/Defines.h>
#include <LibCompiler/ErrorID.h>
-
-//! Assembler Kit
#include <LibCompiler/CodeGen.h>
-
-//! Preferred Executable Format
#include <LibCompiler/PEF.h>
-
-//! UUID header.
#include <LibCompiler/UUID.h>
-
-//! Release macros.
#include <LibCompiler/Version.h>
-
-//! Advanced Executable Object Format.
#include <LibCompiler/AE.h>
-
-//! LibCompiler utils.
#include <LibCompiler/Util/CompilerUtils.h>
-//! I/O stream from std c++
-#include <iostream>
-
#define kLinkerVersionStr \
"NeKernel.org 64-Bit Linker (Preferred Executable Format) %s, (c) Amlal El Mahrouss " \
"2024-2025 " \
@@ -66,13 +49,6 @@
<< "ld64: " \
<< "\e[0;97m")
-namespace Detail {
-struct DynamicLinkerBlob final {
- std::vector<Char> mBlob{}; // PEF code/bss/data blob.
- UIntPtr mOffset{0UL}; // the offset of the PEF container header...
-};
-} // namespace Detail
-
enum {
kABITypeNull = 0,
kABITypeStart = 0x1010, /* The start of ABI list. */