diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-08 07:19:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 07:19:39 +0200 |
commit | ae982a9bdf75970de1e612d824df3f9cf7f5026b (patch) | |
tree | 1a03308eaa5c3c6bf55d6eee761446b925ae04f6 /src/core/loader/deconstructed_rom_directory.cpp | |
parent | Merge pull request #1396 from DarkLordZach/packed-updates (diff) | |
parent | nso/nro: Use default allocation size for arg_data (diff) | |
download | yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.tar yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.tar.gz yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.tar.bz2 yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.tar.lz yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.tar.xz yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.tar.zst yuzu-ae982a9bdf75970de1e612d824df3f9cf7f5026b.zip |
Diffstat (limited to 'src/core/loader/deconstructed_rom_directory.cpp')
-rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp index 9a86e5824..951fd8257 100644 --- a/src/core/loader/deconstructed_rom_directory.cpp +++ b/src/core/loader/deconstructed_rom_directory.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include <cinttypes> +#include <cstring> #include "common/common_funcs.h" #include "common/file_util.h" #include "common/logging/log.h" @@ -140,7 +141,8 @@ ResultStatus AppLoader_DeconstructedRomDirectory::Load(Kernel::Process& process) const FileSys::VirtualFile module_file = dir->GetFile(module); if (module_file != nullptr) { const VAddr load_addr = next_load_addr; - next_load_addr = AppLoader_NSO::LoadModule(module_file, load_addr, pm); + next_load_addr = AppLoader_NSO::LoadModule(module_file, load_addr, + std::strcmp(module, "rtld") == 0, pm); LOG_DEBUG(Loader, "loaded module {} @ 0x{:X}", module, load_addr); // Register module with GDBStub GDBStub::RegisterModule(module, load_addr, next_load_addr - 1, false); |