Add manual patch symbols (syms.ld) to the output overlay file and relocs

This commit is contained in:
Mr-Wiseguy 2025-01-23 02:48:48 -05:00
parent bccc4990b4
commit 3a37b4503d
3 changed files with 44 additions and 11 deletions

View file

@ -565,6 +565,12 @@ namespace N64Recomp {
void set_all_reference_sections_relocatable() {
all_reference_sections_relocatable = true;
}
bool is_manual_patch_symbol(uint32_t vram) const {
// Zero-sized symbols between 0x8F000000 and 0x90000000 are manually specified symbols for use with patches.
// TODO make this configurable or come up with a more sensible solution for dealing with manual symbols for patches.
return vram >= 0x8F000000 && vram < 0x90000000;
}
};
class Generator;