Skip internal symbols when dumping context (#116)

This commit is contained in:
Wiseguy 2025-01-02 20:50:46 -05:00 committed by GitHub
parent fc696046da
commit 6dafc108f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,6 +165,8 @@ bool read_symbols(N64Recomp::Context& context, const ELFIO::elfio& elf_file, ELF
// The symbol wasn't detected as a function, so add it to the data symbols if the context is being dumped.
if (!recorded_symbol && dumping_context && !name.empty()) {
// Skip internal symbols.
if (ELF_ST_VISIBILITY(other) != ELFIO::STV_INTERNAL) {
uint32_t vram = static_cast<uint32_t>(value);
// Place this symbol in the absolute symbol list if it's in the absolute section.
@ -188,6 +190,7 @@ bool read_symbols(N64Recomp::Context& context, const ELFIO::elfio& elf_file, ELF
);
}
}
}
return found_entrypoint_func;
}