Skip to content

Commit

Permalink
orbis-kernel: extend max load segments count
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Nov 18, 2024
1 parent 48c1ea0 commit ffe2837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orbis-kernel/include/orbis/module/Module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct Module final {
ptr<void> ehFrame{};
uint32_t ehFrameHdrSize{};
uint32_t ehFrameSize{};
ModuleSegment segments[4]{};
ModuleSegment segments[16]{};
uint32_t segmentCount{};
std::uint8_t fingerprint[20]{};
ptr<void> base{};
Expand Down
4 changes: 2 additions & 2 deletions orbis-kernel/src/sys/sys_sce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,8 @@ orbis::sys_dynlib_get_info_ex(Thread *thread, SceKernelModule handle,
result.ehFrameHdrSize = module->ehFrameHdrSize;
result.ehFrameSize = module->ehFrameSize;
std::memcpy(result.segments, module->segments,
sizeof(ModuleSegment) * module->segmentCount);
result.segmentCount = module->segmentCount;
sizeof(ModuleSegment) * 2);
result.segmentCount = 2;
result.refCount = 1;
ORBIS_LOG_WARNING(__FUNCTION__, result.id, result.name, result.tlsIndex,
result.tlsInit, result.tlsInitSize, result.tlsSize,
Expand Down

0 comments on commit ffe2837

Please sign in to comment.