summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/Util
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/Util
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/Util')
-rw-r--r--dev/LibCompiler/Util/CompilerUtils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/LibCompiler/Util/CompilerUtils.h b/dev/LibCompiler/Util/CompilerUtils.h
index 19e247d..172907a 100644
--- a/dev/LibCompiler/Util/CompilerUtils.h
+++ b/dev/LibCompiler/Util/CompilerUtils.h
@@ -11,6 +11,7 @@
#include <LibCompiler/Frontend.h>
#include <LibCompiler/Version.h>
#include <Vendor/Dialogs.h>
+#include <iostream>
#define kZero64Section ".zero64"
#define kCode64Section ".code64"
@@ -34,6 +35,12 @@ inline static bool kVerbose = false;
inline static bool kOutputAsBinary = false;
namespace Detail {
+/// @brief Linker specific blob metadata structure
+struct DynamicLinkerBlob final {
+ std::vector<Char> mBlob{}; // PEF code/bss/data blob.
+ UIntPtr mOffset{0UL}; // the offset of the PEF container header...
+};
+
inline void print_error(std::string reason, std::string file) noexcept {
if (reason[0] == '\n') reason.erase(0, 1);