Skip to content

Commit

Permalink
Find relocs at instr. location first, then the dest ##disasm
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoLCR authored and radare committed Jul 18, 2019
1 parent 718698d commit 3fa8767
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libr/core/disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4782,7 +4782,11 @@ static char *ds_sub_jumps(RDisasmState *ds, char *str) {
if (fcn) {
name = fcn->name;
} else if (f) {
RBinReloc *rel = r_core_getreloc (ds->core, addr, ds->analop.size);
RBinReloc *rel;
rel = r_core_getreloc (ds->core, ds->analop.addr, ds->analop.size);
if (!rel) {
rel = r_core_getreloc (ds->core, addr, ds->analop.size);
}
if (rel) {
if (rel && rel->import && rel->import->name) {
name = rel->import->name;
Expand Down

0 comments on commit 3fa8767

Please sign in to comment.