Implement mdebug parsing for static symbols in IDO elfs (#155)

Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
This commit is contained in:
Wiseguy
2025-09-06 18:44:18 -04:00
committed by GitHub
parent a49c51b37f
commit afc2ff93a5
9 changed files with 1196 additions and 11 deletions

View File

@@ -129,11 +129,19 @@ namespace N64Recomp {
std::unordered_map<std::string, size_t> manually_sized_funcs;
// The section names that were specified as relocatable
std::unordered_set<std::string> relocatable_sections;
// Symbols to ignore.
std::unordered_set<std::string> ignored_syms;
// Manual mappings of mdebug file records to elf sections.
std::unordered_map<std::string, std::string> mdebug_text_map;
std::unordered_map<std::string, std::string> mdebug_data_map;
std::unordered_map<std::string, std::string> mdebug_rodata_map;
std::unordered_map<std::string, std::string> mdebug_bss_map;
bool has_entrypoint;
int32_t entrypoint_address;
bool use_absolute_symbols;
bool unpaired_lo16_warnings;
bool all_sections_relocatable;
bool use_mdebug;
};
struct DataSymbol {