mirror of
https://github.com/devkitPro/wut.git
synced 2026-08-22 18:45:14 -05:00
Fix corner case with findSymbol in elf2rpl
This commit is contained in:
@@ -89,6 +89,12 @@ struct InputSection
|
||||
static ElfFile::Symbol *
|
||||
findSymbol(ElfFile &file, uint32_t address)
|
||||
{
|
||||
for (auto &symbol : file.symbols) {
|
||||
if (symbol->address == address && symbol->type != elf::STT_NOTYPE) {
|
||||
return symbol.get();
|
||||
}
|
||||
}
|
||||
|
||||
for (auto &symbol : file.symbols) {
|
||||
if (symbol->address == address) {
|
||||
return symbol.get();
|
||||
|
||||
Reference in New Issue
Block a user