summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/PEFSharedObjectMain.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Private/Source/PEFSharedObjectMain.cxx')
-rw-r--r--Private/Source/PEFSharedObjectMain.cxx58
1 files changed, 0 insertions, 58 deletions
diff --git a/Private/Source/PEFSharedObjectMain.cxx b/Private/Source/PEFSharedObjectMain.cxx
deleted file mode 100644
index c1803312..00000000
--- a/Private/Source/PEFSharedObjectMain.cxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * ========================================================
- *
- * HCore
- * Copyright Mahrouss Logic, all rights reserved.
- *
- * ========================================================
- */
-
-#include <KernelKit/DebugOutput.hpp>
-#include <KernelKit/PEF.hpp>
-#include <KernelKit/ProcessManager.hpp>
-#include <KernelKit/PEFSharedObject.hxx>
-#include <KernelKit/ThreadLocalStorage.hxx>
-#include <NewKit/Defines.hpp>
-
-using namespace HCore;
-
-/***********************************************************************************/
-/// @file SharedObjectEntry.cxx
-/// @brief Shared Object Init code.
-/***********************************************************************************/
-
-/***********************************************************************************/
-/* @brief Allocate new library to be added to the lookup table.
- */
-/***********************************************************************************/
-
-extern "C" SharedObject *__LibMain(VoidPtr image) {
- SharedObject *library = hcore_tls_new_class<SharedObject>();
-
- if (!library) {
- kcout << "__LibMain: Out of Memory!\n";
- ProcessManager::Shared().Leak().GetCurrent().Leak().Crash();
-
- return nullptr;
- }
-
- library->Mount(hcore_tls_new_class<SharedObject::SharedObjectTraits>());
-
- if (!library->Get()) {
- kcout << "__LibMain: Out of Memory!\n";
- ProcessManager::Shared().Leak().GetCurrent().Leak().Crash();
-
- return nullptr;
- }
-
- library->Get()->fImageObject =
- ProcessManager::Shared().Leak().GetCurrent().Leak().Image;
-
- library->Get()->fImageEntrypointOffset = library->Load<VoidPtr>(kPefStart);
-
- kcout << "__LibMain: Done jumping to library...\n";
-
- return library;
-}
-
-/***********************************************************************************/