Rationale
Some code (e.g. actors, level scene code) should not be globally loaded, but no "standard" framework or tooling exists to accomplish this.
Existing work
Various statically loaded overlay formats in games like Kirby 64
libdragon's DSO format includes tooling and an API.
fado creates relocation info suitable for Ocarina of Time.
elf_reloctool aims to be simple to use, but is incomplete.
Simply use the TLB
Notably, all tools and methods listed have their own unique requirements in terms of compiler flags to build an object with (no -ffunction-sections, no gp-relative relocations, etc.). Removing these limitations (if possible) would be ideal.
Rationale
Some code (e.g. actors, level scene code) should not be globally loaded, but no "standard" framework or tooling exists to accomplish this.
Existing work
Various statically loaded overlay formats in games like Kirby 64
libdragon's DSO format includes tooling and an API.
fado creates relocation info suitable for Ocarina of Time.
elf_reloctool aims to be simple to use, but is incomplete.
Simply use the TLBNotably, all tools and methods listed have their own unique requirements in terms of compiler flags to build an object with (no
-ffunction-sections, no gp-relative relocations, etc.). Removing these limitations (if possible) would be ideal.