cleanup elf and fix #3774

This commit is contained in:
Álvaro Felipe Melchor 2015-11-29 00:09:32 +01:00
parent 35860ebd5e
commit 0537a72e9b
3 changed files with 404 additions and 537 deletions

File diff suppressed because it is too large Load Diff

View File

@ -81,6 +81,7 @@ struct Elf_(r_bin_elf_obj_t) {
Elf_(Dyn) *dyn_buf;
int dyn_entries;
int is_rela;
RBinImport **imports_by_ord;
size_t imports_by_ord_size;

View File

@ -50,7 +50,7 @@ static int load(RBinFile *arch) {
const ut8 *bytes = arch ? r_buf_buffer (arch->buf) : NULL;
ut64 sz = arch ? r_buf_size (arch->buf): 0;
if (!arch || !arch->o) return false;
arch->o->bin_obj = load_bytes (arch, bytes, sz,
arch->o->bin_obj = load_bytes (arch, bytes, sz,
arch->o->loadaddr, arch->sdb);
return arch->o->bin_obj != NULL;
}