mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 00:51:19 +00:00
Honor rabin2 -p to change io->va
This commit is contained in:
parent
74b6e0f71c
commit
6c186b5029
@ -854,6 +854,7 @@ R_API int r_main_rabin2(int argc, const char **argv) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
core.io->va = va;
|
||||
|
||||
PJ *pj = NULL;
|
||||
if (rad == R_MODE_JSON) {
|
||||
|
@ -7,6 +7,32 @@ EXPECT=<<EOF
|
||||
EOF
|
||||
RUN
|
||||
|
||||
NAME=qpe
|
||||
FILE=bins/elf/analysis/hello-linux-x86_64
|
||||
CMDS=<<EOF
|
||||
!!rabin2 -qe ${R2_FILE}
|
||||
!!rabin2 -qpe ${R2_FILE}
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x00400410
|
||||
0x00000410
|
||||
EOF
|
||||
RUN
|
||||
|
||||
NAME=qps
|
||||
FILE=bins/elf/analysis/hello-linux-x86_64
|
||||
CMDS=<<EOF
|
||||
!!rabin2 -qs ${R2_FILE}~main
|
||||
!!rabin2 -qps ${R2_FILE}~main
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
0x004004fc 21 main
|
||||
0x004003f0 16 imp.__libc_start_main
|
||||
0x000004fc 21 main
|
||||
0x000003f0 16 imp.__libc_start_main
|
||||
EOF
|
||||
RUN
|
||||
|
||||
NAME=baddr > 0
|
||||
FILE=bins/elf/analysis/hello-linux-x86_64
|
||||
CMDS=!rabin2 -qe ${R2_FILE};!rabin2 -B 0x800000 -qe ${R2_FILE}
|
||||
|
Loading…
Reference in New Issue
Block a user