initial work on linker

This commit is contained in:
georgemoralis 2023-05-23 07:48:25 +03:00
parent 76987fb932
commit a09e2eb65a
4 changed files with 68 additions and 1 deletions

16
src/Core/PS4/Linker.cpp Normal file
View file

@ -0,0 +1,16 @@
#include "Linker.h"
Linker::Linker()
{
}
Linker::~Linker()
{
}
Module* Linker::LoadModule(const std::string& elf_name)
{
auto* m = new Module;
return m;
}

17
src/Core/PS4/Linker.h Normal file
View file

@ -0,0 +1,17 @@
#pragma once
#include "../../Loader/Elf.h"
/*this struct keeps neccesary info about loaded modules.Main executeable is included too as well*/
struct Module
{
Elf* elf = nullptr;
};
class Linker
{
public:
Linker();
virtual ~Linker();
Module* LoadModule(const std::string& elf_name);
};