Commit Graph

  • 5f9e2f8725 Use a custom heap for the relocator and modules SetupPayload-20210219-090717 Maschell 2021-02-19 10:05:02 +0100
  • 18b1b25160 Update the Dockerfile to use the latest devkitppc and WUMS images SetupPayload-20210101-192507 Maschell 2021-01-01 20:22:41 +0100
  • f48a375a34 Just skip modules if imports fail instead of crashing the console on purpose Maschell 2021-01-01 02:07:02 +0100
  • fddf436554 Call INIT_WUT and FINI_WUT for modules, make sure APPLICATION_ENDS and FINI_WUT hooks are actually called by a sepeate module Maschell 2021-01-01 02:06:03 +0100
  • 98c8de7479 Implementation of InitBeforeRelocationDoneHook and SkipEntrypoint module options Maschell 2020-12-26 16:01:46 +0100
  • 6e352b0085 Only use OSDynload_Acquire if really needed Maschell 2020-12-26 13:22:12 +0100
  • 42d73fa539 relocator: UseOSDynLoad_IsModuleLoaded instead of OSDynLoad_Acquire Maschell 2020-12-26 13:18:47 +0100
  • 7df0cf32f2 [Workflow] Use Environment Files instead of ::set-env SetupPayload-20201201-120916 Maschell 2020-12-01 13:07:18 +0100
  • f38d44243e Display user selection if no default user is set. Maschell 2020-12-01 13:07:09 +0100
  • 6a2a7ca1fd Fix checking the size of modules before linking Maschell 2020-12-01 13:06:58 +0100
  • c68e375567 Minor improvements Maschell 2020-12-01 13:06:40 +0100
  • fe7521b8a6 Use the latest version of WUMS in the Dockerfile SetupPayload-20200812-153809 Maschell 2020-08-12 17:36:26 +0200
  • bf870c148f Don't push the buider image anymore. Maschell 2020-08-12 17:30:17 +0200
  • 095f001b44 Testing the CI on pull requests #3 Maschell 2020-08-10 17:39:10 +0200
  • becc30b8dc Add Github Action workflows for pushes and pull requests Maschell 2020-08-10 17:37:08 +0200
  • c05a566420 Testing if CI works for pull requests #2 Maschell 2020-08-10 17:23:43 +0200
  • 76a47c7d6c Add Github Action workflows for pushes and pull requests Maschell 2020-08-10 17:17:19 +0200
  • dbdb232a81 Use -lz directly to be compatible to latest wut version Maschell 2020-08-10 15:25:36 +0200
  • be06478ad4 test #1 Maschell 2020-08-10 17:12:00 +0200
  • ccad64a68b Update Maschell 2020-08-10 17:11:23 +0200
  • 3b43f06afb d Maschell 2020-08-10 17:06:59 +0200
  • 317a51216b tewtsd Maschell 2020-08-10 15:32:10 +0200
  • d7cffb51b0 Use -lz directly to be compatible to latest wut version Maschell 2020-08-10 15:25:36 +0200
  • 142c4e75bb Update the Makefile Maschell 2020-07-01 13:18:27 +0200
  • 10db6e943a Fix the location of the module information Maschell 2020-07-01 13:18:14 +0200
  • 40deae7e98 Update the Dockerfile Maschell 2020-06-26 20:28:28 +0200
  • d14f764960 Add a Dockerfile Maschell 2020-06-25 19:13:12 +0200
  • d1a5a7f1c2 Update the build flags for the relocator Maschell 2020-06-25 19:11:49 +0200
  • 2b733e117a Fix compiler warnings Maschell 2020-06-25 19:11:31 +0200
  • 1ed1b96bdb Move the gModuleData struct into a different location in memory, move defines into a new globals.h which both projects are using Maschell 2020-06-25 19:01:25 +0200
  • 3853f3876e Use bin2s instead of xxd to include the relocator.elf Maschell 2020-06-25 18:57:41 +0200
  • d1581b392f Make sure to build the relocator if their files changes Maschell 2020-06-25 18:56:36 +0200
  • c3e7fe0f51 Add support for the WUMS_HOOK_RELOCATIONS_DONE hook Maschell 2020-06-10 16:20:20 +0200
  • 00a8f16314 Do not replace the reloactions of the memory function (will be replaced by module) Maschell 2020-06-10 14:13:06 +0200
  • 306b2c1e70 Improve logging Maschell 2020-06-07 15:42:47 +0200
  • b5f345e22a Formatting Maschell 2020-06-07 14:18:34 +0200
  • 44b65558ef Fix compiler warnings Maschell 2020-06-07 14:17:02 +0200
  • e84b6f63bf Save the current module information struct version inside the struct. Maschell 2020-06-07 14:09:58 +0200
  • de4938474c Formatting Maschell 2020-06-07 13:59:02 +0200
  • e70ec9b345 Modules do now have a flag if they should be run before their entrypoint. Maschell 2020-06-07 13:58:55 +0200
  • 6a6a41bf1d Outsource the function patching to the FunctionPatcherModule and DynLoadPatchModule Maschell 2020-06-06 22:14:26 +0200
  • b46639975e Adopt the hook-call of WUMS_HOOK_INIT to provide a pointer to the module_information_t struct Maschell 2020-06-06 22:12:18 +0200
  • 3f6f956b70 Move module defines into WUMS Maschell 2020-06-06 17:02:31 +0200
  • 10d74d9f6d Adopt to changes of WUMS. The main() of modules are now called only once, but the WUMS_HOOK_APPLICATION_STARTS hook is called on every application start. The .bss section is not cleared anymore, modules will always considered running in the background (and not ending when the application end) For this to work we need to force the init of the kernel + memorymapping module to be done in the right order. Maschell 2020-06-03 19:41:05 +0200
  • 62dd3cc0c5 Add support for calling hooks of a single module Maschell 2020-06-03 19:37:32 +0200
  • 94d40374f9 Fix calling the hooks Maschell 2020-06-03 19:36:16 +0200
  • eac22b0583 relocator: Fix location of Init-Hook call Maschell 2020-06-01 18:43:58 +0200
  • 2442bb46c5 Fix several compiler warnings Maschell 2020-06-01 16:41:46 +0200
  • 985691e608 relocator: formatting Maschell 2020-06-01 16:38:13 +0200
  • 29c90bc943 relocator: Fix KiIsEffectiveRangeValid to return a boolean. Maschell 2020-06-01 16:36:00 +0200
  • 40359e1211 relocator: Save ordered list of modules based on dependencies, move hook calling into a new file Maschell 2020-06-01 16:35:34 +0200
  • 3b94c82ed2 relocator: add missing KiPhysicalToEffectiveUncached address Maschell 2020-05-31 02:25:37 +0200
  • 0225c49e3a reloactor: Add KiIsEffectiveRangeValid patch Maschell 2020-05-31 02:25:07 +0200
  • 6695815a6e relocator: reduce number of warning in the logs by using our memory mapping test before the real one Maschell 2020-05-31 02:24:18 +0200
  • 9809b1b48d relocator: Fix compling Maschell 2020-05-31 02:23:31 +0200
  • 82dc811f42 relocator: Patch the kernel to allow usage of our custom memory mapping Maschell 2020-05-30 22:02:21 +0200
  • 166ecb6bda relocator: Replace the malloc/free function of modules with the ones from the memory_mapping module (but not for the memory_mapping module itself and only after the inital setup) Maschell 2020-05-30 22:01:55 +0200
  • ce14fc8a6e relocator: Make sure to call the memory_mapping main() function at first Maschell 2020-05-30 22:00:17 +0200
  • 8d46cf5303 relocator: Save the address of the PhysicalToEffective + EffectiveToPhysical function from the memory module is present. Maschell 2020-05-30 21:59:42 +0200
  • f6031a0ef0 relocator: Add initial support for kernel function patches Maschell 2020-05-30 21:57:20 +0200
  • 74b3394180 relocator: remove logs when using a custom findexport Maschell 2020-05-30 21:56:23 +0200
  • e925f0bdc6 relocator: Fix the logging when patching functions Maschell 2020-05-30 21:55:47 +0200
  • a3310579b8 Call module init hooks Maschell 2020-05-29 19:27:30 +0200
  • 28926f6a9b Fix flushing the cache are doing the relocations Maschell 2020-05-29 18:26:19 +0200
  • 6cb4f4e358 Add initial support for storing and loadings hooks of modules (but not calling them) Maschell 2020-05-29 17:36:10 +0200
  • 02441dab81 relocator: Add missing ExportData loading for ModuleData in persistence Maschell 2020-05-29 17:31:53 +0200
  • c52592c016 relocator: Remove unused ModuleDataPersistence::saveModuleData function Maschell 2020-05-29 17:30:44 +0200
  • cd3065b9e5 ModuleDataPersistence: Add missing export name loading Maschell 2020-05-29 17:30:10 +0200
  • c6c12798ea Fix loading ModuleData from persistence Maschell 2020-05-29 17:29:17 +0200
  • fa68c980af Fix support for loading multiple modules Maschell 2020-05-28 21:45:44 +0200
  • b9064883a2 OSFatal on failed find export Maschell 2020-05-28 20:26:02 +0200
  • db3fe907ef Change way of detecting relocations of imports Maschell 2020-05-28 20:17:28 +0200
  • 51fc349237 Add support for WUMS, support for handling and resolving exports Maschell 2020-05-17 21:14:27 +0200
  • 2ee3011ae8 Formatting Maschell 2020-05-17 19:05:51 +0200
  • 373579cd6f Inital support for patching the OSDynload_Acquire and OSDynload_FindExport Maschell 2020-05-17 13:14:19 +0200
  • ee045acdc8 Save information about sections of a module Maschell 2020-05-17 13:13:24 +0200
  • b526acbded Allocate everything on the stack instead of the heap Maschell 2020-05-17 13:11:52 +0200
  • d36ad9bf3d Change address/endAddress in ModuleData to startAddress/endAddress Maschell 2020-05-03 00:06:11 +0200
  • 48b5f853e3 Add the size and address to the ModuleData Maschell 2020-04-29 12:35:40 +0200
  • ebf09003d3 [relocator] Re-use the header from the SetupPayload and move some files into /utils Maschell 2020-04-29 12:35:13 +0200
  • 7fe051d2cf Added some logging Maschell 2020-04-29 12:06:47 +0200
  • 7b8a421d7a Remove the ../source entry from the Makefile of the relocator Maschell 2020-04-29 12:05:39 +0200
  • 13e31e31f3 Fix a softlock by implementing the memory functions properly Maschell 2020-04-29 12:04:33 +0200
  • 06cb0efe34 Fix the address of the module_information_t struct Maschell 2020-04-29 11:43:45 +0200
  • 65260dbaa0 Fix logging the wrong filepath Maschell 2020-04-29 11:10:41 +0200
  • 7611a54a63 Fix the path for modules Maschell 2020-04-28 15:05:45 +0200
  • 9a4068d15b first commit Maschell 2020-04-28 14:43:07 +0200