diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index 5f699d5..54bf116 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -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();