mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
Let irj print an empty array when no relocation table is present (like isj) (#6974)
This commit is contained in:
parent
542e06f656
commit
de3bd8f09e
@ -1202,9 +1202,6 @@ static int bin_relocs(RCore *r, int mode, int va) {
|
||||
relocs = r_bin_patch_relocs (r->bin);
|
||||
if (!relocs) {
|
||||
relocs = r_bin_get_relocs (r->bin);
|
||||
if (!relocs) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (IS_MODE_RAD (mode)) {
|
||||
@ -1316,7 +1313,7 @@ static int bin_relocs(RCore *r, int mode, int va) {
|
||||
if (IS_MODE_NORMAL (mode)) {
|
||||
r_cons_printf ("\n%i relocations\n", i);
|
||||
}
|
||||
return true;
|
||||
return relocs != NULL;
|
||||
}
|
||||
|
||||
#define MYDB 1
|
||||
|
Loading…
Reference in New Issue
Block a user