mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-09 14:29:20 +00:00
Remove ELFSymbolTable from PCB
This commit is contained in:
@ -58,10 +58,9 @@ int sys_fork(SysFrm *Frame)
|
||||
TCB *Thread = thisThread;
|
||||
|
||||
PCB *NewProcess =
|
||||
TaskManager->CreateProcess(Parent,
|
||||
Parent->Name,
|
||||
TaskManager->CreateProcess(Parent, Parent->Name,
|
||||
Parent->Security.ExecutionMode,
|
||||
nullptr, true);
|
||||
true);
|
||||
|
||||
if (!NewProcess)
|
||||
{
|
||||
@ -69,17 +68,6 @@ int sys_fork(SysFrm *Frame)
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
if (Parent->ELFSymbolTable &&
|
||||
Parent->ELFSymbolTable->SymTableExists)
|
||||
{
|
||||
NewProcess->ELFSymbolTable = new SymbolResolver::Symbols(0);
|
||||
foreach (auto sym in Parent->ELFSymbolTable->GetSymTable())
|
||||
{
|
||||
NewProcess->ELFSymbolTable->AddSymbol(sym.Address,
|
||||
sym.FunctionName);
|
||||
}
|
||||
}
|
||||
|
||||
NewProcess->PageTable = Parent->PageTable->Fork();
|
||||
|
||||
TCB *NewThread =
|
||||
|
Reference in New Issue
Block a user