mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-17 03:13:16 +00:00
Fix reloc ordinal resolution issue
This commit is contained in:
parent
0a5e666d10
commit
3dd01a5514
@ -697,14 +697,14 @@ static int bin_relocs (RCore *r, int mode, ut64 baddr, int va) {
|
||||
db = sdb_new (NULL, filename, 0);
|
||||
}
|
||||
}
|
||||
if (db) {
|
||||
// ordinal-1 because we enumerate starting at 0
|
||||
symname = resolveModuleOrdinal (db, module, ordinal-1);
|
||||
if (symname) {
|
||||
snprintf (reloc->import->name,
|
||||
sizeof (reloc->import->name),
|
||||
"%s.%s", module, symname);
|
||||
}
|
||||
}
|
||||
if (db) {
|
||||
// ordinal-1 because we enumerate starting at 0
|
||||
symname = resolveModuleOrdinal (db, module, ordinal-1);
|
||||
if (symname) {
|
||||
snprintf (reloc->import->name,
|
||||
sizeof (reloc->import->name),
|
||||
"%s.%s", module, symname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user