Fix module mapping names

On real hardware, the file extension is part of the mapping name. Easiest way to manage this is to swap the name to be `file.filename().string()` instead of `file.stem().string()`
This commit is contained in:
Stephen Miller 2025-05-03 21:28:26 -05:00
parent ecffd80ba2
commit f15c3854c1

View File

@ -83,7 +83,7 @@ static std::string StringToNid(std::string_view symbol) {
} }
Module::Module(Core::MemoryManager* memory_, const std::filesystem::path& file_, u32& max_tls_index) Module::Module(Core::MemoryManager* memory_, const std::filesystem::path& file_, u32& max_tls_index)
: memory{memory_}, file{file_}, name{file.stem().string()} { : memory{memory_}, file{file_}, name{file.filename().string()} {
elf.Open(file); elf.Open(file);
if (elf.IsElfFile()) { if (elf.IsElfFile()) {
LoadModuleToMemory(max_tls_index); LoadModuleToMemory(max_tls_index);