Should fix #349 - Wrong handling of reloc flag names

This commit is contained in:
pancake 2013-11-13 02:27:18 +01:00
parent e8c120ae89
commit 01b1d409ea

View File

@ -424,8 +424,10 @@ static int bin_relocs (RCore *r, int mode, ut64 baddr, int va) {
r_flag_space_set (r->flags, "relocs");
r_list_foreach (relocs, iter, reloc) {
if (reloc->import) {
snprintf (str, R_FLAG_NAME_SIZE, "reloc.%s", reloc->import->name);
r_str_replace_char (str, '$', '_');
snprintf (str, R_FLAG_NAME_SIZE,
"reloc.%s", reloc->import->name);
r_name_filter (str, 0);
//r_str_replace_char (str, '$', '_');
r_flag_set (r->flags, str, va?baddr+reloc->rva:reloc->offset,
bin_reloc_size (reloc), 0);
} else {