mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Dont priorize null:// maps on macho binaries ##io
This commit is contained in:
parent
bf52a65169
commit
a4fc1d5e1a
@ -2886,10 +2886,14 @@ static void add_section(RCore *core, RBinSection *sec, ut64 addr, int fd) {
|
||||
// if there is some part of the section that needs to be zeroed by the loader
|
||||
// we add a null map that takes care of it
|
||||
if (sec->vsize > psize) {
|
||||
int oldfd = r_io_fd_get_current (core->io);
|
||||
size = psize;
|
||||
if (!io_create_mem_map (core->io, sec, addr + psize, sec->vsize - psize) || !size) {
|
||||
return;
|
||||
}
|
||||
if (oldfd != r_io_fd_get_current (core->io)) {
|
||||
r_io_use_fd (core->io, oldfd);
|
||||
}
|
||||
}
|
||||
// then we map the part of the section that comes from the physical file
|
||||
char *map_name = r_str_newf ("fmap.%s", sec->name);
|
||||
|
@ -2009,7 +2009,7 @@ static int cmd_open(void *data, const char *input) {
|
||||
} else if (r_file_exists ("/usr/bin/open")) {
|
||||
r_sys_cmdf ("open %s", sp + 1);
|
||||
} else {
|
||||
eprintf ("Unknown open tool. Cannot find xdg-open\n");
|
||||
R_LOG_ERROR ("Unknown open tool. Cannot find xdg-open");
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
|
@ -721,22 +721,22 @@ colu: 12
|
||||
addr: 0x00001149
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
DEBUG: [cbin.c:3348] (section .dynsym) Cd 8[21] @ 0x3d8
|
||||
DEBUG: [cbin.c:3348] (section .dynstr) Css 141 @ 0x480
|
||||
DEBUG: [cbin.c:3348] (section .rela.dyn) Cd 8[24] @ 0x550
|
||||
DEBUG: [cbin.c:3348] (section .rela.plt) Cd 8[3] @ 0x610
|
||||
DEBUG: [cbin.c:3348] (section .init_array) Cd 8[1] @ 0x3db8
|
||||
DEBUG: [cbin.c:3348] (section .fini_array) Cd 8[1] @ 0x3dc0
|
||||
DEBUG: [cbin.c:3348] (section .dynamic) Cd 8[62] @ 0x3dc8
|
||||
DEBUG: [cbin.c:3348] (section .got) Cd 8[9] @ 0x3fb8
|
||||
DEBUG: [cbin.c:3348] (section .dynsym) Cd 8[21] @ 0x3d8
|
||||
DEBUG: [cbin.c:3348] (section .dynstr) Css 141 @ 0x480
|
||||
DEBUG: [cbin.c:3348] (section .rela.dyn) Cd 8[24] @ 0x550
|
||||
DEBUG: [cbin.c:3348] (section .rela.plt) Cd 8[3] @ 0x610
|
||||
DEBUG: [cbin.c:3348] (section .init_array) Cd 8[1] @ 0x3db8
|
||||
DEBUG: [cbin.c:3348] (section .fini_array) Cd 8[1] @ 0x3dc0
|
||||
DEBUG: [cbin.c:3348] (section .dynamic) Cd 8[62] @ 0x3dc8
|
||||
DEBUG: [cbin.c:3348] (section .got) Cd 8[9] @ 0x3fb8
|
||||
DEBUG: [cbin.c:3352] (section .dynsym) Cd 8[21] @ 0x3d8
|
||||
DEBUG: [cbin.c:3352] (section .dynstr) Css 141 @ 0x480
|
||||
DEBUG: [cbin.c:3352] (section .rela.dyn) Cd 8[24] @ 0x550
|
||||
DEBUG: [cbin.c:3352] (section .rela.plt) Cd 8[3] @ 0x610
|
||||
DEBUG: [cbin.c:3352] (section .init_array) Cd 8[1] @ 0x3db8
|
||||
DEBUG: [cbin.c:3352] (section .fini_array) Cd 8[1] @ 0x3dc0
|
||||
DEBUG: [cbin.c:3352] (section .dynamic) Cd 8[62] @ 0x3dc8
|
||||
DEBUG: [cbin.c:3352] (section .got) Cd 8[9] @ 0x3fb8
|
||||
DEBUG: [cbin.c:3352] (section .dynsym) Cd 8[21] @ 0x3d8
|
||||
DEBUG: [cbin.c:3352] (section .dynstr) Css 141 @ 0x480
|
||||
DEBUG: [cbin.c:3352] (section .rela.dyn) Cd 8[24] @ 0x550
|
||||
DEBUG: [cbin.c:3352] (section .rela.plt) Cd 8[3] @ 0x610
|
||||
DEBUG: [cbin.c:3352] (section .init_array) Cd 8[1] @ 0x3db8
|
||||
DEBUG: [cbin.c:3352] (section .fini_array) Cd 8[1] @ 0x3dc0
|
||||
DEBUG: [cbin.c:3352] (section .dynamic) Cd 8[62] @ 0x3dc8
|
||||
DEBUG: [cbin.c:3352] (section .got) Cd 8[9] @ 0x3fb8
|
||||
WARN: [cbin.c:1899] Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
|
||||
DEBUG: [cbin.c:2593] Cannot resolve symbol address __libc_start_main
|
||||
DEBUG: [cbin.c:2593] Cannot resolve symbol address _ITM_deregisterTMCloneTable
|
||||
|
Loading…
Reference in New Issue
Block a user