Add more functions

This commit is contained in:
Angie 2024-05-13 23:07:28 -04:00 committed by angie
parent cdaf6ba3a7
commit 706a1935d4

View file

@ -537,13 +537,21 @@ std::unordered_set<std::string> ignored_funcs {
}; };
std::unordered_set<std::string> renamed_funcs{ std::unordered_set<std::string> renamed_funcs{
// Math
"sincosf", "sincosf",
"sinf", "sinf",
"cosf", "cosf",
"__sinf", "__sinf",
"__cosf", "__cosf",
"asinf",
"acosf",
"atanf",
"atan2f",
"tanf",
"sqrt", "sqrt",
"sqrtf", "sqrtf",
// Memory
"memcpy", "memcpy",
"memset", "memset",
"memmove", "memmove",
@ -557,8 +565,12 @@ std::unordered_set<std::string> renamed_funcs{
"bzero", "bzero",
"bcopy", "bcopy",
"bcmp", "bcmp",
// long jumps
"setjmp", "setjmp",
"longjmp", "longjmp",
// Math 2
"ldiv", "ldiv",
"lldiv", "lldiv",
"ceil", "ceil",
@ -576,17 +588,43 @@ std::unordered_set<std::string> renamed_funcs{
"roundf", "roundf",
"trunc", "trunc",
"truncf", "truncf",
// printf family
"vsprintf", "vsprintf",
"__assert",
"malloc",
"free",
"realloc",
"rand",
"srand",
"random",
"gcvt", "gcvt",
"fcvt", "fcvt",
"ecvt", "ecvt",
"__assert",
// allocations
"malloc",
"free",
"realloc",
"calloc",
// rand
"rand",
"srand",
"random",
// gzip
"huft_build",
"huft_free",
"inflate_codes",
"inflate_stored",
"inflate_fixed",
"inflate_dynamic",
"inflate_block",
"inflate",
"expand_gzip",
"auRomDataRead"
"data_write",
"unzip",
"updcrc",
"clear_bufs",
"fill_inbuf",
"flush_window",
}; };
bool read_symbols(RecompPort::Context& context, const ELFIO::elfio& elf_file, ELFIO::section* symtab_section, uint32_t entrypoint, bool has_entrypoint, bool use_absolute_symbols) { bool read_symbols(RecompPort::Context& context, const ELFIO::elfio& elf_file, ELFIO::section* symtab_section, uint32_t entrypoint, bool has_entrypoint, bool use_absolute_symbols) {