mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-01 17:11:51 +00:00
Detecting rust binaries for Mach-O (#11718)
This commit is contained in:
parent
a0f274629c
commit
72ae29dd67
@ -141,6 +141,7 @@ static RList* sections(RBinFile *bf) {
|
||||
ptr->format = r_str_newf ("Cd %d[%d]", sz, len);
|
||||
}
|
||||
}
|
||||
|
||||
ptr->name[R_BIN_SIZEOF_STRINGS] = 0;
|
||||
handle_data_sections (ptr);
|
||||
ptr->size = sections[i].size;
|
||||
@ -331,6 +332,8 @@ static RList* symbols(RBinFile *bf) {
|
||||
sdb_set (symcache, sdb_fmt ("sym0x%"PFMT64x, ptr->vaddr), "found", 0);
|
||||
if (!strncmp (ptr->name, "type.", 5)) {
|
||||
lang = "go";
|
||||
} else if (!strcmp (ptr->name, "_rust_oom")) {
|
||||
lang = "rust";
|
||||
}
|
||||
r_list_append (ret, ptr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user