From f15c3854c18244d17c0649be3f9d2a94146ed769 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Sat, 3 May 2025 21:28:26 -0500 Subject: [PATCH] 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()` --- src/core/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/module.cpp b/src/core/module.cpp index 440585d1a..28380ad53 100644 --- a/src/core/module.cpp +++ b/src/core/module.cpp @@ -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) - : memory{memory_}, file{file_}, name{file.stem().string()} { + : memory{memory_}, file{file_}, name{file.filename().string()} { elf.Open(file); if (elf.IsElfFile()) { LoadModuleToMemory(max_tls_index);