mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 10:33:30 +00:00
Rename to io.basemap
This commit is contained in:
parent
52a22ab995
commit
e01660dc52
@ -4195,6 +4195,7 @@ R_API int r_core_config_init(RCore *core) {
|
||||
SETCB ("io.pcache.write", "false", &cb_iopcachewrite, "enable write-cache");
|
||||
SETCB ("io.pcache.read", "false", &cb_iopcacheread, "enable read-cache");
|
||||
SETCB ("io.ff", "true", &cb_ioff, "fill invalid buffers with 0xff instead of returning error");
|
||||
SETBPREF ("io.basemap", "true", "create a map at base address 0 when opening a file");
|
||||
SETICB ("io.mask", 0, &cb_iomask, "mask addresses before resolving as maps");
|
||||
SETBPREF ("io.exec", "true", "see !!r2 -h~-x");
|
||||
SETICB ("io.0xff", 0xff, &cb_io_oxff, "use this value instead of 0xff to fill unallocated areas");
|
||||
|
@ -692,7 +692,8 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (desc) {
|
||||
bool basemap = r_config_get_b (r->config, "io.basemap");
|
||||
if (desc && basemap) {
|
||||
r_io_map_add (r->io, desc->fd, desc->perm, 0, laddr, r_io_desc_size (desc));
|
||||
}
|
||||
if (binfile) {
|
||||
|
Loading…
Reference in New Issue
Block a user