mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-14 08:12:19 +00:00
Skip internal symbols when dumping context (#116)
This commit is contained in:
parent
fc696046da
commit
6dafc108f3
1 changed files with 21 additions and 18 deletions
|
@ -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.
|
// 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()) {
|
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);
|
uint32_t vram = static_cast<uint32_t>(value);
|
||||||
|
|
||||||
// Place this symbol in the absolute symbol list if it's in the absolute section.
|
// 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;
|
return found_entrypoint_func;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue