mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:21:52 +01:00
Merge pull request #13 from shinyquagsire23/findsymbol-fix
Fix corner case with findSymbol in elf2rpl
This commit is contained in:
commit
c9f357d695
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user