macos: Remove need for TLS patch by storing TCB pointer in FS.

This commit is contained in:
squidbus 2024-09-01 02:22:42 -07:00
parent 7551f061ad
commit 9e5047947b
6 changed files with 103 additions and 28 deletions

View file

@ -106,6 +106,8 @@ void Linker::Execute() {
RunMainEntry(m->GetEntryAddress(), &p, ProgramExitFunc);
}
}
SetTcbBase(nullptr);
}
s32 Linker::LoadModule(const std::filesystem::path& elf_name, bool is_dynamic) {