mirror of
https://github.com/wiiu-env/CustomRPXLoader.git
synced 2024-11-22 01:49:16 +01:00
OSFatal if the relocations fail
This commit is contained in:
parent
49c4c267c8
commit
cd73d30f7f
@ -119,6 +119,7 @@ uint32_t do_start(int argc, char **argv) {
|
|||||||
std::vector<RelocationData> relocData = moduleData->getRelocationDataList();
|
std::vector<RelocationData> relocData = moduleData->getRelocationDataList();
|
||||||
if (!doRelocation(relocData, gModuleData->trampolines, DYN_LINK_TRAMPOLIN_LIST_LENGTH)) {
|
if (!doRelocation(relocData, gModuleData->trampolines, DYN_LINK_TRAMPOLIN_LIST_LENGTH)) {
|
||||||
DEBUG_FUNCTION_LINE("relocations failed");
|
DEBUG_FUNCTION_LINE("relocations failed");
|
||||||
|
OSFatal("Relocations failed");
|
||||||
}
|
}
|
||||||
if (moduleData->getBSSAddr() != 0) {
|
if (moduleData->getBSSAddr() != 0) {
|
||||||
DEBUG_FUNCTION_LINE("memset .bss %08X (%d)", moduleData->getBSSAddr(), moduleData->getBSSSize());
|
DEBUG_FUNCTION_LINE("memset .bss %08X (%d)", moduleData->getBSSAddr(), moduleData->getBSSSize());
|
||||||
|
Loading…
Reference in New Issue
Block a user