diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-21 21:18:15 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-21 21:18:15 +0100 |
| commit | 33a2e3de5e0b1e30a9f1dfcc4e1d2cab0bc2f874 (patch) | |
| tree | 6a8112337f8978f6909c859fb48e89db74538caa /dev | |
| parent | 241a20562f19a3fd6b2e6e9b95ec803b75816eaf (diff) | |
feat: LibCompiler/CxxDrv: correct origin according to PEF ABI.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/LibCompiler/src/Frontend/CPlusPlusCompilerAMD64.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/LibCompiler/src/Frontend/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/Frontend/CPlusPlusCompilerAMD64.cc index 1aaf091..793385c 100644 --- a/dev/LibCompiler/src/Frontend/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/Frontend/CPlusPlusCompilerAMD64.cc @@ -7,7 +7,7 @@ * ======================================================== */ -/// BUGS: 1 +/// BUGS: 0 #define kPrintF printf @@ -17,6 +17,7 @@ #include <LibCompiler/Backend/X64.h> #include <LibCompiler/Frontend.h> #include <LibCompiler/UUID.h> +#include <LibCompiler/PEF.h> #include <LibCompiler/Util/CompilerUtils.h> /* NeKernel C++ Compiler Driver */ @@ -153,7 +154,7 @@ const char* CompilerFrontendCPlusPlusAMD64::Language() { return "AMD64 C++"; } -static std::uintptr_t kOrigin = 0x1000000; +static std::uintptr_t kOrigin = kPefBaseOrigin; static std::vector<std::pair<LibCompiler::STLString, std::uintptr_t>> kOriginMap; ///////////////////////////////////////////////////////////////////////////////////////// |
