kern: fix debug build

This commit is contained in:
Michael Scire 2024-10-09 15:12:25 -07:00
parent c8e73003f3
commit 117da7ff37

View file

@ -15,6 +15,28 @@
*/
#include <mesosphere.hpp>
/* <stratosphere/rocrt/rocrt.hpp> */
namespace ams::rocrt {
constexpr inline const u32 ModuleHeaderVersion = util::FourCC<'M','O','D','0'>::Code;
struct ModuleHeader {
u32 signature;
u32 dynamic_offset;
u32 bss_start_offset;
u32 bss_end_offset;
u32 exception_info_start_offset;
u32 exception_info_end_offset;
u32 module_offset;
};
struct ModuleHeaderLocation {
u32 pad;
u32 header_offset;
};
}
namespace ams::kern::arch::arm64 {
namespace {
@ -657,7 +679,7 @@ namespace ams::kern::arch::arm64 {
return PrintAddressWithModuleName(address, has_module_name, module_name, base_address);
}
dyn_address = module.start_address + mod_offset + temp_32;
dyn_address = base_address + mod_offset + temp_32;
}
/* Locate tables inside .dyn. */