initial PT_TLS support

This commit is contained in:
georgemoralis 2023-11-21 17:27:11 +02:00
parent b6d98d4b72
commit af18453950
2 changed files with 15 additions and 20 deletions

View file

@ -43,6 +43,11 @@ struct LibraryInfo {
std::string enc_id;
};
struct PS4ThreadLocal {
u64 image_virtual_addr = 0;
u64 image_size = 0;
u64 handler_virtual_addr = 0;
};
struct DynamicModuleInfo {
void* hash_table = nullptr;
u64 hash_table_size = 0;
@ -99,6 +104,8 @@ struct Module {
Loader::SymbolsResolver export_sym;
Loader::SymbolsResolver import_sym;
PS4ThreadLocal tls;
};
class Linker {