Fix ELF loading when headers are really fucked up

This commit is contained in:
pancake 2013-03-08 00:31:58 +01:00
parent ba3ad8112a
commit 619e07c21b

View File

@ -611,6 +611,7 @@ static int bin_sections (RCore *r, int mode, ut64 baddr, int va, ut64 at, const
size = r->file->size;
secbase >>= 16;
secbase <<= 16;
secbase = baddr; // always override?
r_io_section_add (r->io, 0, secbase, size, size, 7, "ehdr");
}
} else {