Don't require the base address to be aligned, fixes #1053

This commit is contained in:
LemonBoy 2014-07-02 00:28:18 +02:00 committed by pancake
parent 5edb5132bd
commit c4d671c3cd

View File

@ -32,9 +32,6 @@ R_API int r_core_bin_set_env (RCore *r, RBinFile *binfile) {
if (baseaddr) {
binobj->baddr = baseaddr;
} else baseaddr = binobj->baddr;
/* Hack to make baddr work on some corner */
if (baseaddr & 0xff)
binobj->baddr = baseaddr = 0;
int va = info->has_va;
r_config_set_i (r->config, "io.va",
(binobj->info)? binobj->info->has_va: 0);