Remove titles from i subcommands ##bin

This commit is contained in:
pancake 2024-11-22 16:24:12 +01:00 committed by GitHub
parent 07faceaa92
commit 89ba6ec0bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
65 changed files with 72 additions and 397 deletions

View File

@ -365,7 +365,6 @@ static void _print_strings(RCore *r, RList *list, PJ *pj, int mode, int va) {
r_flag_space_set (r->flags, R_FLAGS_FS_STRINGS);
r_cons_break_push (NULL, NULL);
} else if (IS_MODE_NORMAL (mode)) {
r_cons_println ("[Strings]");
r_table_set_columnsf (table, "nXXnnsss", "nth", "paddr", "vaddr", "len", "size", "section", "type", "string");
}
RBinString b64 = {0};
@ -1380,7 +1379,6 @@ static bool bin_source(RCore *r, PJ *pj, int mode) {
}
r_list_free (list);
}
r_cons_printf ("[Source file]\n");
r_list_uniq_inplace (final_list, srclineVal);
r_list_foreach (final_list, iter2, srcline) {
r_cons_printf ("%s\n", srcline);
@ -1429,7 +1427,6 @@ static bool bin_main(RCore *r, PJ *pj, int mode, int va) {
pj_kn (pj, "paddr", binmain->paddr);
pj_end (pj);
} else {
r_cons_printf ("[Main]\n");
r_cons_printf ("vaddr=0x%08"PFMT64x" paddr=0x%08"PFMT64x"\n",
addr, binmain->paddr);
}
@ -1462,12 +1459,6 @@ static bool bin_entry(RCore *r, PJ *pj, int mode, ut64 laddr, int va, bool inifi
r_cons_printf ("fs+symbols\n");
} else if (IS_MODE_JSON (mode)) {
pj_a (pj);
} else if (IS_MODE_NORMAL (mode)) {
if (inifin) {
r_cons_printf ("[Constructors]\n");
} else {
r_cons_printf ("[Entrypoints]\n");
}
}
r_list_foreach (entries, iter, entry) {
@ -1582,8 +1573,6 @@ static bool bin_entry(RCore *r, PJ *pj, int mode, ut64 laddr, int va, bool inifi
r_cons_printf ("fs-\n");
} else if (IS_MODE_JSON (mode)) {
pj_end (pj);
} else if (IS_MODE_NORMAL (mode)) {
r_cons_printf ("\n%i entrypoints\n", init_i + fini_i + preinit_i + i);
}
return true;
}
@ -1911,7 +1900,6 @@ static bool bin_relocs(RCore *r, PJ *pj, int mode, int va) {
if (IS_MODE_RAD (mode)) {
r_cons_println ("fs relocs");
} else if (IS_MODE_NORMAL (mode)) {
r_cons_println ("[Relocations]");
r_table_set_columnsf (table, "XXsds", "vaddr", "paddr", "type", "ntype", "name");
} else if (IS_MODE_JSON (mode)) {
pj_a (pj);
@ -2184,7 +2172,6 @@ static bool bin_imports(RCore *r, PJ *pj, int mode, int va, const char *name) {
} else if (IS_MODE_RAD (mode)) {
r_cons_println ("fs imports");
} else if (IS_MODE_NORMAL (mode)) {
r_cons_println ("[Imports]");
r_table_set_columnsf (table, "nXssss", "nth", "vaddr", "bind", "type", "lib", "name");
}
r_list_foreach (imports, iter, import) {
@ -2496,14 +2483,10 @@ static bool bin_symbols(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
} else if (at == UT64_MAX && exponly) {
if (IS_MODE_RAD (mode)) {
r_cons_printf ("fs exports\n");
} else if (IS_MODE_NORMAL (mode) && !r->table_query) {
r_cons_printf (printHere ? "" : "[Exports]\n");
}
} else if (at == UT64_MAX && !exponly) {
if (IS_MODE_RAD (mode)) {
r_cons_printf ("fs symbols\n");
} else if (IS_MODE_NORMAL (mode) && !r->table_query) {
r_cons_printf (printHere ? "" : "[Symbols]\n");
}
}
if (IS_MODE_NORMAL (mode)) {
@ -3061,9 +3044,6 @@ static bool bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at
}
} else if (IS_MODE_RAD (mode) && at == UT64_MAX) {
r_cons_printf ("fs %ss\n", type);
} else if (IS_MODE_NORMAL (mode) && at == UT64_MAX && !printHere) {
// R2_600 - remove this [Sections] header
r_cons_printf ("[%s]\n", print_segments ? "Segments" : "Sections");
} else if (IS_MODE_NORMAL (mode) && printHere) {
r_cons_printf ("Current section\n");
} else if (IS_MODE_SET (mode)) {
@ -3404,8 +3384,6 @@ static bool bin_fields(RCore *r, PJ *pj, int mode, int va) {
pj_a (pj);
} else if (IS_MODE_RAD (mode)) {
r_cons_println ("fs+header");
} else if (IS_MODE_NORMAL (mode)) {
r_cons_println ("[Header fields]");
}
r_list_foreach (fields, iter, field) {
const bool haveComment = R_STR_ISNOTEMPTY (field->comment);
@ -4223,9 +4201,6 @@ static bool bin_libs(RCore *r, PJ *pj, int mode) {
if (!libs) {
return false;
}
if (IS_MODE_NORMAL (mode)) {
r_cons_println ("[Linked libraries]");
}
}
r_list_foreach (libs, iter, lib) {
if (IS_MODE_SET (mode)) {
@ -4295,11 +4270,6 @@ static bool bin_mem(RCore *r, PJ *pj, int mode) {
if (!r) {
return false;
}
if (!IS_MODE_JSON (mode)) {
if (!(IS_MODE_RAD (mode) || IS_MODE_SET (mode))) {
r_cons_println ("[Memory]\n");
}
}
RList *mem = r_bin_get_mem (r->bin);
if (!mem) {
if (IS_MODE_JSON (mode)) {

View File

@ -54,7 +54,6 @@ ii
iE
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
-------------------------------------
3 0x00020060 GLOBAL NOTYPE _bss_end__
@ -73,7 +72,6 @@ nth vaddr bind type lib name
17 0x00000710 GLOBAL FUNC free
18 0x00000720 GLOBAL FUNC __cxa_atexit
[Exports]
nth paddr vaddr bind type size lib name demangled
------------------------------------------------------------------------
6 0x0000aa20 0x0000aa20 GLOBAL FUNC 1176 Java_o__003dc_e

View File

@ -130,7 +130,6 @@ NAME=is
FILE=bins/bpf/memo_v2.solana.so
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-----------------------------------------------------------------------
3 0x00000c48 0x00000c48 GLOBAL FUNC 328 custom_panic

View File

@ -76,7 +76,7 @@ ii~?
EOF
EXPECT=<<EOF
hello
87
86
73
73
world
@ -97,7 +97,7 @@ EXPECT=<<EOF
hello
0
0
315
314
311
world
EOF

View File

@ -2,7 +2,6 @@ NAME=iS query
FILE=bins/elf/analysis/main
CMDS=iS,size/sort,vaddr/cols/name
EXPECT=<<EOF
[Sections]
vaddr name
---------------
@ -87,19 +86,13 @@ mode rwx
format any
iorw true
block 0x100
[Imports]
nth vaddr bind type lib name
----------------------------
fs imports
[Entrypoints]
0 entrypoints
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------
fs symbols
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------
@ -116,7 +109,6 @@ ii
ii*
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
----------------------------
@ -171,14 +163,9 @@ iS
iS*
EOF
EXPECT=<<EOF
[Entrypoints]
0 entrypoints
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------
fs symbols
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------
@ -1003,8 +990,6 @@ pthread_mutex_unlock
0x00000000 0x0000002b ---- .ARM.attributes
0x00000000 0x000000f3 ---- .shstrtab
--
[Memory]
--
0x139ac 15 14 getPackageName
0x139bb 21 20 ()Ljava/lang/String;
@ -1226,10 +1211,7 @@ NAME=ie (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x08048300 paddr=0x00000300 haddr=0x00000018 hvaddr=0x08048018 type=program
1 entrypoints
EOF
RUN
@ -1245,7 +1227,6 @@ NAME=ii (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
-------------------------------------
1 0x080482d0 GLOBAL FUNC puts
@ -1372,8 +1353,6 @@ NAME=imq
FILE=bins/nes/Pong.nes
CMDS=imq
EXPECT=<<EOF
[Memory]
0x00000000
0x00001000
0x00001800
@ -2410,7 +2389,6 @@ NAME=iS (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
@ -2452,7 +2430,6 @@ NAME=iSS (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iSS
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm type name
------------------------------------------------------
@ -2583,7 +2560,6 @@ NAME=il (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=il
EXPECT=<<EOF
[Linked libraries]
libc.so.6
1 library
@ -2602,7 +2578,6 @@ NAME=ir (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -2647,7 +2622,6 @@ NAME=is (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------------------------------
4 0x000004ac 0x080484ac GLOBAL OBJ 4 _IO_stdin_used
@ -2775,10 +2749,7 @@ NAME=ie (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00400410 paddr=0x00000410 haddr=0x00000018 hvaddr=0x00400018 type=program
1 entrypoints
EOF
RUN
@ -2786,7 +2757,6 @@ NAME=ih (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=ih
EXPECT=<<EOF
[Header fields]
0x00000000 0x00000000 0x464c457f ELF
0x00000010 0x00000010 0x00000002 Type
0x00000012 0x00000012 0x0000003e Machine
@ -2810,7 +2780,6 @@ NAME=ii (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
-------------------------------------
1 0x004003e0 GLOBAL FUNC puts
@ -2860,7 +2829,6 @@ NAME=iS (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
@ -2902,7 +2870,6 @@ NAME=iSS (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=iSS
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm type name
------------------------------------------------------
@ -2923,7 +2890,6 @@ NAME=il (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=il
EXPECT=<<EOF
[Linked libraries]
libc.so.6
1 library
@ -2934,7 +2900,6 @@ NAME=ir (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -2952,7 +2917,6 @@ NAME=ir (file x86_64, ifunc)
FILE=bins/elf/ifunc_rel64
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -2976,7 +2940,6 @@ NAME=is (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------------------------------
1 0x00000200 0x00400200 LOCAL SECT 0 .interp
@ -3075,7 +3038,7 @@ nth paddr vaddr bind type size lib name demangled
41 0x0000142e 0x0000142e GLOBAL FUNC 563 main
0x0000142e 563 main
main
45
44
42
EOF
RUN
@ -3084,7 +3047,6 @@ NAME=iM command
FILE=bins/elf/redpill
CMDS=iM
EXPECT=<<EOF
[Main]
vaddr=0x0000142e paddr=0x0000142e
EOF
RUN
@ -3161,7 +3123,6 @@ NAME=iS entropy and iSS entropy
FILE=bins/elf/crackme0x05
CMDS=iS entropy; iSS entropy
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm entropy type name
------------------------------------------------------------------------
@ -3195,7 +3156,6 @@ nth paddr size vaddr vsize perm entropy type name
27 0x00001740 0x460 0x00000000 0x460 ---- 3.06854806 SYMTAB .symtab
28 0x00001ba0 0x248 0x00000000 0x248 ---- 4.85613827 STRTAB .strtab
[Segments]
nth paddr size vaddr vsize perm entropy type name
-----------------------------------------------------------------
@ -3224,7 +3184,6 @@ ir
f
EOF
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
------------------------------------------------------------------------------------------
8 0x00000590 0x00000590 GLOBAL FUNC 60 main
@ -3237,7 +3196,6 @@ nth paddr vaddr bind type size lib name
6 ---------- ---------- WEAK NOTYPE 16 imp._Jv_RegisterClasses
7 ---------- ---------- WEAK NOTYPE 16 imp._ITM_registerTMCloneTable
relocs
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -3462,7 +3420,6 @@ NAME=iM main sym
FILE=bins/elf/before-after-main
CMDS=iM
EXPECT=<<EOF
[Main]
vaddr=0x0804854e paddr=0x0000054e
EOF
RUN
@ -3520,7 +3477,6 @@ NAME=ii dupped imports
FILE=bins/elf/varsub
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
-------------------------------------
1 ---------- GLOBAL FUNC __libc_start_main
@ -3766,7 +3722,7 @@ is~?
is~entry?
EOF
EXPECT=<<EOF
247
246
0
EOF
RUN
@ -3780,7 +3736,6 @@ iz*~?
izz*~?
EOF
EXPECT=<<EOF
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
@ -3811,7 +3766,6 @@ CMDS=<<EOF
iS sha1,crc32
EOF
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm sha1, crc32 type name
-----------------------------------------------------------------------------------------------------------------------
@ -3837,7 +3791,6 @@ CMDS=<<EOF
iSS sha1,crc32
EOF
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm sha1, crc32 type name
-----------------------------------------------------------------------------------------------------------

View File

@ -4,11 +4,7 @@ FILE=bins/elf/analysis/test.obj
CMDS=<<EOF
ie
EOF
EXPECT=<<EOF
[Entrypoints]
0 entrypoints
EOF
EXPECT=
EXPECT_ERR=<<EOF
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
EOF
@ -83,10 +79,7 @@ CMDS=<<EOF
ie
EOF
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00000f50 paddr=0x00000f50 haddr=0x00000018 hvaddr=0x00000018 type=program
1 entrypoints
EOF
EXPECT_ERR=<<EOF
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
@ -101,10 +94,7 @@ ie
i~elf
EOF
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00000d28 paddr=0x00000d28 haddr=0x00000018 hvaddr=0x00000018 type=program
1 entrypoints
file bins/elf/libexploit.so
format elf
bintype elf
@ -189,10 +179,7 @@ CMDS=<<EOF
ie
EOF
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00000d28 paddr=0x00000d28 haddr=0x00000018 hvaddr=0x00000018 type=program
1 entrypoints
EOF
EXPECT_ERR=<<EOF
ERROR: Cannot determine entrypoint, using 0x00000d28
@ -206,11 +193,8 @@ CMDS=<<EOF
iee
EOF
EXPECT=<<EOF
[Constructors]
vaddr=0x00000740 paddr=0x00000740 hvaddr=0x0024dd88 hpaddr=0x0004dd88 type=init
vaddr=0x00000700 paddr=0x00000700 hvaddr=0x0024dd90 hpaddr=0x0004dd90 type=fini
vaddr=0x0000074a paddr=0x0000074a hvaddr=0x0004dd80 hpaddr=0x0004dd80 type=preinit
3 entrypoints
EOF
RUN

View File

@ -2,7 +2,6 @@ NAME=ih (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=ih
EXPECT=<<EOF
[Header fields]
0x00000000 0x00000000 0x464c457f ELF
0x00000010 0x00000010 0x00000002 Type
0x00000012 0x00000012 0x00000003 Machine

View File

@ -132,7 +132,6 @@ EXPECT=<<EOF
3 * r-x 0x0002daa0 bins/mach0/ls-m1
5 - rw- 0x00000008 null://8
* 0 4 x86-64 ba:0x00000000 sz:14705 bins/mach0/hello-puts
[Imports]
nth vaddr bind type lib name
-------------------------------------
1 ---------- WEAK NOTYPE _ITM_deregisterTMCloneTable

View File

@ -17,7 +17,6 @@ NAME=iz (file x86)
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iz
EXPECT=<<EOF
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
@ -50,36 +49,29 @@ iz
EOF
EXPECT=<<EOF
-- default --
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
-- geq 12 --
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
-- geq 13 --
[Strings]
nth paddr vaddr len size section type string
--------------------------------------------
-- geq 0 --
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
-- leq 12 --
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 12 .rodata ascii Hello world!
-- leq 11 --
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 11 11 .rodata ascii Hello world
-- no limit --
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
@ -90,7 +82,6 @@ NAME=iz (file x86_64)
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=iz
EXPECT=<<EOF
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000005c4 0x004005c4 11 12 .rodata ascii Hello World
@ -291,12 +282,10 @@ EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 5155 5657 5857 595a 5b5c 5d5e 5f52 0000 QUVWXWYZ[\]^_R..
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x00000000 0x00000000 14 15 ascii QUVWXWYZ[\]^_R
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x00000000 0x00000000 14 15 ascii QUVWXWYZ[\\]^_R
@ -307,7 +296,7 @@ NAME=izz and bin.str.enc
FILE=-
CMDS=<<EOF
wz k\0i\0abcdefgh
(izzenc enc; e bin.str.enc=$0; izz~:3..)
(izzenc enc; e bin.str.enc=$0; izz~:2..)
.(izzenc guess)
.(izzenc ascii)
.(izzenc utf8)
@ -341,10 +330,10 @@ CMDS=<<EOF
mkdir .tmp
cp bins/elf/analysis/x86-helloworld-gcc .tmp/strenc-bin
o+ .tmp/strenc-bin
iz~:3..
iz~:2..
s 0x080484b0
wz k\0i\0abcdefgh
(izenc enc; e bin.str.enc=$0; iz~:3..)
(izenc enc; e bin.str.enc=$0; iz~:2..)
.(izenc guess)
.(izenc utf8)
.(izenc utf16le)

View File

@ -11,10 +11,7 @@ EXPECT=<<EOF
;-- func.100003c0c:
0x100003c0c 55 push rbp
0x100003c0d 4889e5 mov rbp, rsp
[Entrypoints]
vaddr=0x100003c0c paddr=0x00007c0c haddr=0x00000658 type=program
1 entrypoints
EOF
RUN
@ -31,10 +28,7 @@ EXPECT=<<EOF
;-- func.100003a90:
0x100003a90 7f2303d5 pacibsp
0x100003a94 fc6fbaa9 stp x28, x27, [sp, -0x60]!
[Entrypoints]
vaddr=0x100003a90 paddr=0x0001ba90 haddr=0x00000600 type=program
1 entrypoints
EOF
RUN
@ -595,13 +589,13 @@ ob 1
is~?
EOF
EXPECT=<<EOF
133
139
132
138
--
272
270
--
133
139
132
138
EOF
RUN
@ -622,9 +616,9 @@ o
ob
EOF
EXPECT=<<EOF
8
138
8
7
137
7
arch arm
baddr 0x4000
binsz 65536

View File

@ -6,7 +6,6 @@ iS
iS~$!!
EOF
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
@ -76,7 +75,6 @@ nth paddr size vaddr vsize perm type name
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
-------------------------------------------------------------
nth paddr size vaddr vsize perm type name
[Sections]
EOF
RUN

View File

@ -22,7 +22,6 @@ FILE=bins/elf/analysis/dwarf_load
# ARGS=-e bin.dbginfo=0
CMDS=idx
EXPECT=<<EOF
[Source file]
/home/landley/work/ab7/build/temp-armv6l/gcc-core/gcc/config/arm/ieee754-df.S
/home/landley/work/ab7/build/temp-armv6l/gcc-core/gcc/config/arm/lib1funcs.asm
/home/landley/work/ab7/build/temp-armv6l/build-gcc/gcc
@ -59,7 +58,7 @@ NAME=coredumps with zillions of program headers
FILE=gzip://bins/elf/core65k.gz
CMDS=iSS~?
EXPECT=<<EOF
131074
131073
EOF
EXPECT_ERR=<<EOF
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
@ -76,7 +75,6 @@ e scr.utf8=false
!!rabin2 -SS gzip://bins/elf/core65k.gz
EOF
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm type name
-----------------------------------------------------------

View File

@ -2,7 +2,6 @@ NAME=t/utf32
FILE=bins/elf/crackme0x00b
CMDS=iz
EXPECT=<<EOF
[Strings]
nth paddr vaddr len size section type string
---------------------------------------------------------
0 0x000005d0 0x080485d0 16 17 .rodata ascii Enter password:

View File

@ -2,7 +2,7 @@ NAME=ar file sections
FILE=ar://bins/ar/libgdbr.a//responses.o
CMDS=iS~:5
EXPECT=<<EOF
1 0x00000040 0x147e 0x08000040 0x147e -r-x PROGBITS .text
2 0x00007578 0xf00 0x08007578 0xf00 ---- RELA .rela.text
EOF
RUN

View File

@ -2,7 +2,6 @@ NAME=bflt
FILE=bins/bflt/bin.bflt
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------

View File

@ -30,7 +30,6 @@ ii
iS
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
0 ---------- NONE FUNC __TIFFmalloc
@ -60,7 +59,6 @@ nth vaddr bind type lib name
24 ---------- NONE FUNC __TIFFCheckMalloc
25 ---------- NONE UNK __fltused
[Sections]
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
@ -85,7 +83,6 @@ CMDS=om;is;ir
EXPECT=<<EOF
* 2 fd: 3 +0x00000064 0x00000000 - 0x00000026 r-x fmap..text_0
- 1 fd: 3 +0x0000008b 0x00000030 - 0x0000004b r-- fmap..data_1
[Symbols]
nth paddr vaddr bind type size lib name demangled
------------------------------------------------------------------------
0 ---------- ---------- NONE UNK 4 imp.MessageBoxA
@ -93,7 +90,6 @@ nth paddr vaddr bind type size lib name demangled
0 0x00000064 0x00000000 LOCAL SECT 4 .text
0 0x00000064 0x00000000 GLOBAL FUNC 4 main
0 0x0000008b 0x00000030 LOCAL SECT 4 .data
[Relocations]
vaddr paddr type ntype name
---------------------------------------

View File

@ -43,10 +43,7 @@ NAME=DEX dex38.dex ie command
FILE=bins/dex/dex38.dex
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00001378 paddr=0x00001378 haddr=-1 type=program
1 entrypoints
EOF
RUN
@ -207,7 +204,6 @@ NAME=DEX HelloWorld.dex imports (ii command)
FILE=bins/dex/HelloWorld.dex
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
0 0x000001b0 NONE FUNC Ljava/io/PrintStream.method.println(Ljava/lang/String;)V
@ -225,7 +221,6 @@ NAME=DEX HelloWorld.dex exports (iE command)
FILE=bins/dex/HelloWorld.dex
CMDS=iE
EXPECT=<<EOF
[Exports]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------------------------------
2 0x00000238 0x00000238 GLOBAL FUNC 20 LHello.method.<init>()V

View File

@ -69,7 +69,7 @@ NAME=: DMP BMP Page sections
FILE=bins/dmp/bmp.dmp
CMDS=iS~?
EXPECT=<<EOF
21582
21581
EOF
RUN

View File

@ -2,7 +2,6 @@ NAME=test dwarf dos
FILE=bins/elf/dwarf/dos
CMDS=idx
EXPECT=<<EOF
[Source file]
/var/tmp/portage/sys-libs/glibc-2.40-r5/work/glibc-2.40/csu
EOF
RUN
@ -730,28 +729,28 @@ colu: 12
addr: 0x00001149
EOF
EXPECT_ERR=<<EOF
DEBUG: [cbin.c:3353] (section .dynsym) Cd 8[21] @ 0x3d8
DEBUG: [cbin.c:3353] (section .dynstr) Css 141 @ 0x480
DEBUG: [cbin.c:3353] (section .rela.dyn) Cd 8[24] @ 0x550
DEBUG: [cbin.c:3353] (section .rela.plt) Cd 8[3] @ 0x610
DEBUG: [cbin.c:3353] (section .init_array) Cd 8[1] @ 0x3db8
DEBUG: [cbin.c:3353] (section .fini_array) Cd 8[1] @ 0x3dc0
DEBUG: [cbin.c:3353] (section .dynamic) Cd 8[62] @ 0x3dc8
DEBUG: [cbin.c:3353] (section .got) Cd 8[9] @ 0x3fb8
DEBUG: [cbin.c:3353] (section .dynsym) Cd 8[21] @ 0x3d8
DEBUG: [cbin.c:3353] (section .dynstr) Css 141 @ 0x480
DEBUG: [cbin.c:3353] (section .rela.dyn) Cd 8[24] @ 0x550
DEBUG: [cbin.c:3353] (section .rela.plt) Cd 8[3] @ 0x610
DEBUG: [cbin.c:3353] (section .init_array) Cd 8[1] @ 0x3db8
DEBUG: [cbin.c:3353] (section .fini_array) Cd 8[1] @ 0x3dc0
DEBUG: [cbin.c:3353] (section .dynamic) Cd 8[62] @ 0x3dc8
DEBUG: [cbin.c:3353] (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
DEBUG: [cbin.c:2593] Cannot resolve symbol address __gmon_start__
DEBUG: [cbin.c:2593] Cannot resolve symbol address _ITM_registerTMCloneTable
DEBUG: [cbin.c:2593] Cannot resolve symbol address __cxa_finalize
DEBUG: [cbin.c:3333] (section .dynsym) Cd 8[21] @ 0x3d8
DEBUG: [cbin.c:3333] (section .dynstr) Css 141 @ 0x480
DEBUG: [cbin.c:3333] (section .rela.dyn) Cd 8[24] @ 0x550
DEBUG: [cbin.c:3333] (section .rela.plt) Cd 8[3] @ 0x610
DEBUG: [cbin.c:3333] (section .init_array) Cd 8[1] @ 0x3db8
DEBUG: [cbin.c:3333] (section .fini_array) Cd 8[1] @ 0x3dc0
DEBUG: [cbin.c:3333] (section .dynamic) Cd 8[62] @ 0x3dc8
DEBUG: [cbin.c:3333] (section .got) Cd 8[9] @ 0x3fb8
DEBUG: [cbin.c:3333] (section .dynsym) Cd 8[21] @ 0x3d8
DEBUG: [cbin.c:3333] (section .dynstr) Css 141 @ 0x480
DEBUG: [cbin.c:3333] (section .rela.dyn) Cd 8[24] @ 0x550
DEBUG: [cbin.c:3333] (section .rela.plt) Cd 8[3] @ 0x610
DEBUG: [cbin.c:3333] (section .init_array) Cd 8[1] @ 0x3db8
DEBUG: [cbin.c:3333] (section .fini_array) Cd 8[1] @ 0x3dc0
DEBUG: [cbin.c:3333] (section .dynamic) Cd 8[62] @ 0x3dc8
DEBUG: [cbin.c:3333] (section .got) Cd 8[9] @ 0x3fb8
WARN: [cbin.c:1888] Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
DEBUG: [cbin.c:2576] Cannot resolve symbol address __libc_start_main
DEBUG: [cbin.c:2576] Cannot resolve symbol address _ITM_deregisterTMCloneTable
DEBUG: [cbin.c:2576] Cannot resolve symbol address __gmon_start__
DEBUG: [cbin.c:2576] Cannot resolve symbol address _ITM_registerTMCloneTable
DEBUG: [cbin.c:2576] Cannot resolve symbol address __cxa_finalize
EOF
RUN

View File

@ -2,7 +2,7 @@ NAME=ELF: core segments
FILE=bins/elf/analysis/core.1159
CMDS=iSS~?
EXPECT=<<EOF
21
20
EOF
RUN

View File

@ -20,7 +20,6 @@ ii
iij
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
----------------------------

View File

@ -2,7 +2,7 @@ NAME=ELF: dynimports
FILE=bins/elf/analysis/dynimports
CMDS=ii~?
EXPECT=<<EOF
8
7
EOF
RUN

View File

@ -29,14 +29,12 @@ af
pdsf
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
-------------------------------------
1 ---------- GLOBAL FUNC printf
2 ---------- WEAK NOTYPE __gmon_start__
3 ---------- GLOBAL FUNC __libc_start_main
[Relocations]
vaddr paddr type ntype name
---------------------------------------

View File

@ -10,7 +10,6 @@ NAME=ELF: arm64 relocs crashing
FILE=bins/elf/librsjni_androix.so
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -41,7 +40,6 @@ NAME=ELF: arm64 imports crashing
FILE=bins/elf/librsjni_androix.so
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
-----------------------------------
1 0x0000b7c0 GLOBAL FUNC __cxa_finalize
@ -88,7 +86,6 @@ ii
EOF
EXPECT=<<EOF
info/elf.relro=full
[Imports]
nth vaddr bind type lib name
-------------------------------------
2 0x00051f60 GLOBAL FUNC __ctype_toupper_loc

View File

@ -4,7 +4,6 @@ CMDS=<<EOF
ih
EOF
EXPECT=<<EOF
[Header fields]
0x00000000 0x00000000 0x464c457f ELF
0x00000010 0x00000010 0x00000002 Type
0x00000012 0x00000012 0x00000015 Machine
@ -30,7 +29,6 @@ CMDS=<<EOF
ih
EOF
EXPECT=<<EOF
[Header fields]
0x00000000 0x00000000 0x464c457f ELF
0x00000010 0x00000010 0x00000003 Type
0x00000012 0x00000012 0x0000003e Machine

View File

@ -129,7 +129,6 @@ EOF
EXPECT=<<EOF
0x8370
0x00008370
[Main]
vaddr=0x00008370 paddr=0x00000370
EOF
RUN
@ -145,7 +144,6 @@ EOF
EXPECT=<<EOF
0x82ec
0x000082ec
[Main]
vaddr=0x000082ec paddr=0x000002ec
EOF
RUN
@ -161,7 +159,6 @@ EOF
EXPECT=<<EOF
0x10310
0x00010310
[Main]
vaddr=0x00010310 paddr=0x00000310
EOF
RUN

View File

@ -23,7 +23,7 @@ NAME=ELF: rabin2 entrypoint with baddr
FILE=-
CMDS=<<EOF
!rabin2 -I -B 0x300000 bins/elf/analysis/pie | grep baddr
!rabin2 -e -B 0x300000 bins/elf/analysis/pie | sed -n '2 p'
!rabin2 -e -B 0x300000 bins/elf/analysis/pie
EOF
EXPECT=<<EOF
baddr 0x300000

View File

@ -2,7 +2,6 @@ NAME=ELF: dynamic p_offset
FILE=bins/elf/analysis/dynamic-poffset
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -229,7 +228,6 @@ e asm.bytes=false
pd 40
EOF
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -430,7 +428,6 @@ e asm.bytes=false
pd 40
EOF
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------

View File

@ -27,7 +27,6 @@ EXPECT=<<EOF
0x00000bd0 _JNIEnv::GetObjectArrayElement(_jobjectArray*, int)
0x00000bd0 _JNIEnv::GetObjectArrayElement(_jobjectArray*, int)
imports
[Imports]
nth vaddr bind type lib name
-----------------------------------
3 0x000008f0 GLOBAL FUNC __cxa_finalize
@ -37,7 +36,6 @@ nth vaddr bind type lib name
7 0x00000980 GLOBAL FUNC __cxa_atexit
relocs
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -70,7 +68,6 @@ WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
EOF
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------

View File

@ -2,10 +2,7 @@ NAME=riscv entrypoint
FILE=bins/elf/ip-riscv
CMDS=ie;ii~str
EXPECT=<<EOF
[Entrypoints]
vaddr=0x0000d344 paddr=0x0000d344 haddr=0x00000018 hvaddr=0x00000018 type=program
1 entrypoints
2 0x0000a960 GLOBAL FUNC strncpy
15 0x0000aa10 GLOBAL FUNC strspn
19 0x0000aa50 GLOBAL FUNC strdup
@ -37,10 +34,7 @@ NAME=ELF: riscv64: entrypoint
FILE=bins/elf/analysis/guess-number-riscv64
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00010000 paddr=0x00001000 haddr=0x00000018 type=program
1 entrypoints
EOF
RUN
@ -48,7 +42,6 @@ NAME=ELF: riscv64: symbols
FILE=bins/elf/analysis/guess-number-riscv64
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------------------------------
1 0x00001000 0x00010000 LOCAL SECT 0 .text

View File

@ -2,7 +2,6 @@ NAME=sections list
FILE=bins/elf/analysis/main_wrong_sect
CMDS=iS;iSS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
@ -43,7 +42,6 @@ nth paddr size vaddr vsize perm type name
34 0x000018c8 0x6d8 0x00000000 0x6d8 ---- SYMTAB .symtab
35 0x00001fa0 0x23a 0x00000000 0x23a ---- STRTAB .strtab
[Segments]
nth paddr size vaddr vsize perm type name
------------------------------------------------------

View File

@ -1,11 +1,7 @@
NAME=entrypoint on object
FILE=bins/elf/pngrutil_o
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
0 entrypoints
EOF
EXPECT=
RUN
@ -13,7 +9,6 @@ NAME=symbols non common LD script
FILE=bins/elf/analysis/custom_ldscript
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
--------------------------------------------------------------------------------
1 0x00000200 0x00400200 LOCAL SECT 0 .interp
@ -71,7 +66,6 @@ NAME=symbols with no sections header information
FILE=bins/elf/analysis/main_nosect
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
--------------------------------------------------------------------------------
1 0x000003e0 0x004003e0 GLOBAL FUNC 16 imp.puts
@ -84,7 +78,6 @@ NAME=symbols with no sections header information 2
FILE=bins/elf/analysis/clark
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
--------------------------------------------------------------------------------
8 0x000007dc 0x080487dc GLOBAL OBJ 4 _IO_stdin_used
@ -102,7 +95,6 @@ NAME=symbols with no sections header information 3
FILE=bins/elf/libmemalloc-dump-mem
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
------------------------------------------------------------------------------------------------------------------------------
3 0x00002dd0 0x00003dd0 WEAK OBJ 36 _ZTVN7gralloc9IMemAllocE vtable for gralloc::IMemAlloc

View File

@ -2,10 +2,7 @@ NAME=1: thumb entry0
FILE=bins/elf/arm-init
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x000002e4 paddr=0x000002e4 haddr=0x00000018 hvaddr=0x00000018 type=program
1 entrypoints
EOF
RUN
@ -13,11 +10,8 @@ NAME=2: thumb entry0
FILE=bins/elf/arm-init
CMDS=iee
EXPECT=<<EOF
[Constructors]
vaddr=0x000002e4 paddr=0x000002e4 hvaddr=0x00001ed0 hpaddr=0x00000ed0 type=fini
vaddr=0x00000344 paddr=0x00000344 hvaddr=0x00001ed8 hpaddr=0x00000ed8 type=init
2 entrypoints
EOF
RUN

View File

@ -8,7 +8,7 @@ RUN
NAME=cdogs.exe entrypoint
FILE=bins/le/cdogs.exe
CMDS=ie~:1[1]
CMDS=ie~:0[1]
EXPECT=<<EOF
0x00026058
EOF
@ -18,7 +18,6 @@ NAME=cdogs.exe sections
FILE=bins/le/cdogs.exe
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
---------------------------------------------------------
@ -159,7 +158,7 @@ cat $relocs~0x0004e~?
cat $relocs~0x0004f~?
EOF
EXPECT=<<EOF
5239
5238
151
160
102
@ -237,7 +236,7 @@ RUN
NAME=GCC.EXE entrypoint
FILE=bins/le/GCC.EXE
CMDS=ie~:1[1]
CMDS=ie~:0[1]
EXPECT=<<EOF
0x00010000
EOF
@ -247,7 +246,6 @@ NAME=GCC.EXE sections
FILE=bins/le/GCC.EXE
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-----------------------------------------------------------
@ -278,7 +276,6 @@ NAME=GCC.EXE relocations
FILE=bins/le/GCC.EXE
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -303,7 +300,6 @@ NAME=GCC.EXE linked libs
FILE=bins/le/GCC.EXE
CMDS=il
EXPECT=<<EOF
[Linked libraries]
emx
doscalls
@ -321,7 +317,7 @@ RUN
NAME=GNUGREP.DLL entrypoint
FILE=bins/le/GNUGREP.DLL
CMDS=ie~:1[1]
CMDS=ie~:0[1]
EXPECT=<<EOF
0x00010000
EOF
@ -331,7 +327,6 @@ NAME=GNUGREP.DLL symbol
FILE=bins/le/GNUGREP.DLL
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-----------------------------------------------------------------
1 0x00000000 0x00010ddc GLOBAL FUNC 0 grepmain
@ -342,7 +337,6 @@ NAME=GNUGREP.DLL sections
FILE=bins/le/GNUGREP.DLL
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
@ -365,7 +359,6 @@ NAME=GNUGREP.DLL linked libs
FILE=bins/le/GNUGREP.DLL
CMDS=il
EXPECT=<<EOF
[Linked libraries]
GNUREGEX
EMXLIBC
emx
@ -384,7 +377,7 @@ cat $relocs~EMXLIBC~?
cat $relocs~emx~?
EOF
EXPECT=<<EOF
1170
1169
8
183
1

View File

@ -257,7 +257,6 @@ FILE=bins/mach0/fatmach0-3true
ARGS=-a x86 -b32 -B 0x90000000
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
----------------------------------------------------------------------------
0 0x00005000 0x90000000 GLOBAL FUNC 0 __mh_execute_header

View File

@ -301,7 +301,6 @@ NAME=mach0 symbols
FILE=bins/mach0/longIdentifiers.dylib
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0 0x00007fa8 0x00007fa8 GLOBAL FUNC 0 _abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij

View File

@ -50,11 +50,7 @@ RUN
NAME=: entrypoints nomem .dmp
FILE=bins/mdmp/calc.dmp
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
0 entrypoints
EOF
EXPECT=
RUN
NAME=: resolve vaddr to paddr
@ -102,7 +98,6 @@ NAME=: 32bit - libraries count
FILE=bins/mdmp/hello.dmp
CMDS=il~libraries
EXPECT=<<EOF
[Linked libraries]
57 libraries
EOF
RUN
@ -118,12 +113,12 @@ RUN
NAME=: 32bit - entrypoints count
FILE=bins/mdmp/hello.dmp
CMDS=<<EOF
ie~entrypoints
iee~entrypoints
ie~?
iee~?
EOF
EXPECT=<<EOF
9 entrypoints
2 entrypoints
9
2
EOF
RUN
@ -139,7 +134,7 @@ NAME=: 32bit - symbols count
FILE=bins/mdmp/hello.dmp
CMDS=is~?
EXPECT=<<EOF
7469
7468
EOF
RUN
@ -163,7 +158,7 @@ NAME=: 32bit - imports count
FILE=bins/mdmp/hello.dmp
CMDS=ii~?
EXPECT=<<EOF
2031
2030
EOF
RUN
@ -179,7 +174,7 @@ NAME=: 32bit - exports count
FILE=bins/mdmp/hello.dmp
CMDS=iE~?
EXPECT=<<EOF
5441
5440
EOF
RUN
@ -231,7 +226,7 @@ NAME=: 32bit - strings count
FILE=bins/mdmp/hello.dmp
CMDS=iz~?
EXPECT=<<EOF
10229
10228
EOF
RUN
@ -239,7 +234,6 @@ NAME=: 64bit - libraries count
FILE=bins/mdmp/hello64.dmp
CMDS=il~libraries
EXPECT=<<EOF
[Linked libraries]
49 libraries
EOF
RUN
@ -254,9 +248,9 @@ RUN
NAME=: 64bit - entrypoints count
FILE=bins/mdmp/hello64.dmp
CMDS=ie~entrypoints
CMDS=ie~?
EXPECT=<<EOF
5 entrypoints
5
EOF
RUN
@ -272,7 +266,7 @@ NAME=: 64bit - symbols count
FILE=bins/mdmp/hello64.dmp
CMDS=is~?
EXPECT=<<EOF
6827
6826
EOF
RUN
@ -296,7 +290,7 @@ NAME=: 64bit - imports count
FILE=bins/mdmp/hello64.dmp
CMDS=ii~?
EXPECT=<<EOF
1512
1511
EOF
RUN
@ -312,7 +306,7 @@ NAME=: 64bit - exports count
FILE=bins/mdmp/hello64.dmp
CMDS=iE~?
EXPECT=<<EOF
5318
5317
EOF
RUN
@ -365,7 +359,7 @@ izq~Alpc
izq~Timer
EOF
EXPECT=<<EOF
22884
22883
0x77820352 10 4 Alpc
0x77825ffd 41 40 AlpcAdjustCompletionListConcurrencyCount
0x77826026 30 29 AlpcFreeCompletionListMessage

View File

@ -7,7 +7,6 @@ pd 3
om
EOF
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-----------------------------------------------------

View File

@ -15,10 +15,7 @@ pi 1
iS*
EOF
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00000000 paddr=0x00000200 haddr=-1 type=program
1 entrypoints
xor al, al
fs sections
'f section.seg_000 1 0x00000000

View File

@ -16,7 +16,6 @@ NAME=NE Symbols
FILE=bins/ne/anim8.exe
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------
0 0x00000a00 0x00000a00 NONE NONE 0 ANIM8
@ -30,7 +29,6 @@ NAME=NE Segments
FILE=bins/ne/anim8.exe
CMDS=iSS
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
@ -44,7 +42,6 @@ NAME=NE Module imports
FILE=bins/ne/anim8.exe
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
1 0x00000000 NONE NONE KERNEL
@ -79,7 +76,6 @@ EXPECT=<<EOF
0x000056a0 0x000056a0 ADD_16 5 WIN87EM.0
0x000056b3 0x000056b3 ADD_16 5 WIN87EM.0
0x00005891 0x00005891 ADD_16 5 WIN87EM.0
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -90,5 +86,6 @@ vaddr paddr type ntype name
0x00000a74 0x00000a74 SET_32 3 KERNEL.GETWINFLAGS
0x00000ad0 0x00000ad0 SET_32 3 KERNEL.UNLOCKSEGMENT
0x00000f5e 0x00000f5e SET_32 3 USER.SETTIMER
0x00000f4d 0x00000f4d SET_32 3 USER.KILLTIMER
EOF
RUN

View File

@ -12,7 +12,6 @@ FILE=bins/nro/appstore.nro
ARGS=-e io.cache=true
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
------------------------------------------------------------
@ -30,10 +29,7 @@ FILE=bins/nro/appstore.nro
ARGS=-e io.cache=true
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00000080 paddr=0x00000080 haddr=-1 type=program
1 entrypoints
EOF
RUN

View File

@ -12,7 +12,6 @@ FILE=bins/nso/application.nso
ARGS=-e io.cache=true
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
----------------------------------------------------------
@ -29,10 +28,7 @@ FILE=bins/nso/application.nso
ARGS=-e io.cache=true
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x08000000 paddr=0x00000100 haddr=-1 type=program
1 entrypoints
EOF
RUN

View File

@ -18,7 +18,6 @@ NAME=symbols 16 bits omf
FILE=bins/omf/hello_world
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------
1 0x00000073 0x00001000 NONE NONE 0 _start
@ -29,7 +28,6 @@ NAME=sections 16 bits omf
FILE=bins/omf/hello_world
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
@ -78,7 +76,6 @@ NAME=symbols 32 bits omf
FILE=bins/omf/hello_world32
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------
1 0x00000074 0x00001000 NONE NONE 0 _start
@ -89,7 +86,6 @@ NAME=sections 32 bits omf
FILE=bins/omf/hello_world32
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
@ -111,7 +107,6 @@ NAME=multiple symbols omf
FILE=bins/omf/multi_pubdef
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
--------------------------------------------------------------------
1 0x00000084 0x00001000 NONE NONE 0 _start
@ -123,7 +118,6 @@ NAME=null checksum omf
FILE=bins/omf/null_checks
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------
1 0x00000073 0x00001000 NONE NONE 0 _start

View File

@ -35,7 +35,6 @@ FILE=bins/pe/96emptysections.exe
ARGS=-n
CMDS=!rabin2 -pS bins/pe/96emptysections.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------

View File

@ -27,7 +27,6 @@ FILE=bins/pe/96workingsections.exe
ARGS=-n
CMDS=!rabin2 -S bins/pe/96workingsections.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------
@ -136,7 +135,6 @@ FILE=bins/pe/96workingsections.exe
ARGS=-n
CMDS=!rabin2 -uS bins/pe/96workingsections.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------

View File

@ -10,10 +10,7 @@ NAME=PE: corkami CoST.exe - entrypoint VA
FILE=bins/pe/CoST.exe
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x7efd0000 paddr=0x00000000 haddr=0x0000506c type=program
1 entrypoints
EOF
RUN
@ -21,10 +18,7 @@ NAME=PE: corkami CoST.exe - tls VA
FILE=bins/pe/CoST.exe
CMDS=iee
EXPECT=<<EOF
[Constructors]
vaddr=0x7efd0148 paddr=0x00000148 hpaddr=0x000001cc type=tls
1 entrypoints
EOF
RUN

View File

@ -31,7 +31,6 @@ ii
is
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------------------------------------
1 0x00403054 NONE FUNC VCRUNTIME140.dll __current_exception_context
@ -90,7 +89,6 @@ nth vaddr bind type lib name
3 0x00404038 NONE FUNC wlanapi.dll WFDCloseSession
1 0x00404028 NONE FUNC winbio.dll WinBioAcquireFocus
[Symbols]
nth paddr vaddr bind type size lib name demangled
-----------------------------------------------------------------------------------------------------------------------------------
1 0x00001854 0x00403054 NONE FUNC 0 VCRUNTIME140.dll imp.__current_exception_context
@ -158,7 +156,6 @@ ii
is
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
----------------------------------------------------------------
1 0x1400030c0 NONE FUNC VCRUNTIME140.dll __current_exception
@ -219,7 +216,6 @@ nth vaddr bind type lib name
3 0x140005080 NONE FUNC wlanapi.dll WFDCloseSession
1 0x140005060 NONE FUNC winbio.dll WinBioAcquireFocus
[Symbols]
nth paddr vaddr bind type size lib name demangled
------------------------------------------------------------------------------------------------------------------------------------
1 0x00001ac0 0x1400030c0 NONE FUNC 0 VCRUNTIME140.dll imp.__current_exception

View File

@ -2,7 +2,6 @@ NAME=PE: export function names
FILE=bins/pe/Lab05-01.dll
CMDS=iE
EXPECT=<<EOF
[Exports]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------
1 0x0000cc47 0x1000d847 GLOBAL FUNC 0 xdll.dll InstallRT

View File

@ -6,13 +6,11 @@ is
?v sym.imp.msvcrt.dll_printf
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
------------------------------------------
1 0x004010c0 NONE FUNC kernel32.dll ExitProcess
1 0x004010c8 NONE FUNC msvcrt.dll printf
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------------
1 0x000002c0 0x004010c0 NONE FUNC 0 kernel32.dll imp.ExitProcess

View File

@ -12,7 +12,6 @@ ir
ii
EOF
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -21,7 +20,6 @@ vaddr paddr type ntype name
2 relocations
[Imports]
nth vaddr bind type lib name
---------------------------------------
284 ---------- NONE FUNC kernel32 FindAtomW

View File

@ -17,10 +17,7 @@ NAME=2: PE: nosectionW7 - entrypoint
FILE=bins/pe/nosectionW7.exe
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00400138 paddr=0x00000138 haddr=0x00000068 type=program
1 entrypoints
EOF
RUN

View File

@ -38,7 +38,6 @@ NAME=pe relocs [rabin2 a.exe]
FILE=bins/pe/a.exe
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -72,7 +71,6 @@ NAME=pe relocs [rabin2 b.exe]
FILE=bins/pe/b.exe
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -119,7 +117,6 @@ NAME=pe32 imported libs (il)
FILE=bins/pe/imports_1210.exe
CMDS=il
EXPECT=<<EOF
[Linked libraries]
kernel32.dll
user32.dll
advapi32.dll
@ -138,7 +135,6 @@ NAME=pe32 imported functions (ii)
FILE=bins/pe/imports_1210.exe
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
------------------------------------------
1 0x0041217c NONE FUNC kernel32.dll DeleteCriticalSection
@ -275,7 +271,6 @@ NAME=pe32 imported relocations (ir)
FILE=bins/pe/imports_1210.exe
CMDS=ir
EXPECT=<<EOF
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -415,7 +410,6 @@ NAME=pe32 imported libs (il)
FILE=bins/pe/single_import.exe
CMDS=il
EXPECT=<<EOF
[Linked libraries]
comctl32.dll
1 library

View File

@ -10,7 +10,6 @@ FILE=bins/pe/cm01.exe
ARGS=-n
CMDS=!rabin2 -S bins/pe/cm01.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
--------------------------------------------------------

View File

@ -3,14 +3,8 @@ FILE=bins/pe/tls.exe
ARGS=-A
CMDS=ie;iee
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00401000 paddr=0x00000200 haddr=0x00000068 type=program
1 entrypoints
[Constructors]
vaddr=0x00401020 paddr=0x00000220 hpaddr=0x00000384 type=tls
1 entrypoints
EOF
RUN
@ -19,14 +13,8 @@ FILE=bins/pe/tls_hello.exe
ARGS=-A
CMDS=ie;iee
EXPECT=<<EOF
[Entrypoints]
vaddr=0x004014c8 paddr=0x000008c8 haddr=0x00000098 type=program
1 entrypoints
[Constructors]
vaddr=0x00401618 paddr=0x00000a18 hpaddr=0x00007fb0 type=tls
1 entrypoints
EOF
RUN
@ -35,10 +23,7 @@ FILE=bins/pe/tls_obfuscation.exe
ARGS=-A
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00401000 paddr=0x00000200 haddr=0x00000068 type=program
1 entrypoints
EOF
RUN
@ -47,13 +32,10 @@ FILE=bins/pe/tls_obfuscation.exe
ARGS=-A
CMDS=iee
EXPECT=<<EOF
[Constructors]
vaddr=0x00401016 paddr=0x00000216 hpaddr=0x00000330 type=tls
vaddr=0x00401001 paddr=0x00000201 hpaddr=0x00000334 type=tls
vaddr=0x00401006 paddr=0x00000206 hpaddr=0x00000338 type=tls
vaddr=0x0040100f paddr=0x0000020f hpaddr=0x0000033c type=tls
vaddr=0x00401011 paddr=0x00000211 hpaddr=0x00000340 type=tls
5 entrypoints
EOF
RUN

View File

@ -10,14 +10,8 @@ NAME=1: PE: tls_noEP - entrypoint
FILE=bins/pe/tls_noEP.exe
CMDS=ie;iee
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00401000 paddr=0x00000200 haddr=0x00000068 type=program
1 entrypoints
[Constructors]
vaddr=0x00401000 paddr=0x00000200 hpaddr=0x00000384 type=tls
1 entrypoints
EOF
RUN

View File

@ -18,7 +18,6 @@ NAME=PE: corkami winver.exe - linked libraries
FILE=bins/pe/winver.exe
CMDS=il
EXPECT=<<EOF
[Linked libraries]
kernel32.dll
msvcrt.dll

View File

@ -19,7 +19,6 @@ NAME=sections of qnx
FILE=bins/qnx/test.x
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
------------------------------------------------------

View File

@ -14,7 +14,6 @@ FILE=bins/rel/d_profileNP.rel
ARGS=-e bin.relocs.apply=true -B 0x80500000
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-----------------------------------------------------

View File

@ -135,7 +135,6 @@ e bin.str.filter=U
izz
EOF
EXPECT=<<EOF
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x00000100 0x00000100 160 161 ascii SEGA GENESIS (C)SEGA 1995.MARCART. BRADESCO CART. BRADESCO GM 00000001-00W`J

View File

@ -68,7 +68,6 @@ NAME=WASM: Wasm - sections
FILE=bins/wasm/binary.wasm
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
------------------------------------------------------
@ -111,7 +110,6 @@ NAME=WASM Export functions with custom section
FILE=bins/wasm/sections.wasm
CMDS=iE
EXPECT=<<EOF
[Exports]
nth paddr vaddr bind type size lib name demangled
----------------------------------------------------------------------------------
8 0x000003f1 0x000003f1 GLOBAL FUNC 16 _start
@ -130,7 +128,6 @@ NAME=WASM Export functions w/o custom section
FILE=bins/wasm/unary.wasm
CMDS=iE
EXPECT=<<EOF
[Exports]
nth paddr vaddr bind type size lib name demangled
----------------------------------------------------------------------------
2 0x000001d2 0x000001d2 GLOBAL FUNC 5 i32_eqz_100
@ -181,7 +178,6 @@ CMDS=<<EOF
is
EOF
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
--------------------------------------------------------------------------------------------------------
0 ---------- ---------- NONE FUNC 0 env imp.emscripten_asm_const_int

View File

@ -25,7 +25,6 @@ NAME=decoding the thunk table
FILE=bins/xbe/default.xbe
CMDS=is
EXPECT=<<EOF
[Symbols]
nth paddr vaddr bind type size lib name demangled
-----------------------------------------------------------------
0 0x000016c0 0x000116c0 NONE NONE 4 kt.sprintf

View File

@ -18,7 +18,6 @@ NAME=xcoff sections
FILE=bins/xcoff/file-xcoff-aix51
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
----------------------------------------------------------
@ -57,10 +56,7 @@ NAME=xcoff entrypoint
FILE=bins/xcoff/file-xcoff-aix51
CMDS=ie
EXPECT=<<EOF
[Entrypoints]
vaddr=0x10000128 paddr=0x00000000 haddr=-1 type=program
1 entrypoints
EOF
RUN
@ -68,7 +64,6 @@ NAME=xcoff imports
FILE=bins/xcoff/file-xcoff-aix51
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
0 ---------- NONE UNK errno
@ -109,7 +104,6 @@ NAME=xcoff imports 2
FILE=bins/xcoff/gcc-ppc32-aix-dwarf2-exec
CMDS=ii
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
0 ---------- NONE UNK errno

View File

@ -16,7 +16,6 @@ NAME=xcoff64 sections
FILE=bins/xcoff/gcc-ppc64-aix-dwarf2-exec
CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
----------------------------------------------------------

View File

@ -8,11 +8,7 @@ iS
is
EOF
EXPECT=<<EOF
[Entrypoints]
0 entrypoints
--
[Sections]
nth paddr size vaddr vsize perm type name
------------------------------------------------------
@ -21,7 +17,6 @@ nth paddr size vaddr vsize perm type name
2 0x0000a518 0x0 0x0000a518 0x1518 -r-x ---- trans_code_0
--
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------
0 0x0000a518 0x0000a518 NONE FUNC 0 x86.000011df

View File

@ -55,10 +55,7 @@ NAME=laddr 0
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=!rabin2 -G 0 -e ${R2_FILE}
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00400410 paddr=0x00000410 haddr=0x00000018 hvaddr=0x00400018 type=program
1 entrypoints
EOF
RUN
@ -66,10 +63,7 @@ NAME=laddr 0 && baddr 0
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=!rabin2 -G 0 -B 0 -e ${R2_FILE}
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00000410 paddr=0x00000410 haddr=0x00000018 hvaddr=0x00000018 type=program
1 entrypoints
EOF
RUN
@ -87,7 +81,6 @@ NAME=rabin2 -K md5 -S file
FILE=bins/pe/a.exe
CMDS=!rabin2 -K md5 -S ${R2_FILE}
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm md5 type name
----------------------------------------------------------------------------------------
@ -104,7 +97,7 @@ NAME=rabin2 -s file pe
FILE=bins/pe/a.exe
CMDS=!!rabin2 -s ${R2_FILE}~?
EXPECT=<<EOF
23
22
EOF
RUN
@ -112,7 +105,7 @@ NAME=rabin2 -s file elf
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=!!rabin2 -s ${R2_FILE}~?
EXPECT=<<EOF
69
68
EOF
RUN
@ -125,9 +118,8 @@ CMDS=<<EOF
!env RABIN2_PREFIX=prixfixe rabin2 -SS ${R2_FILE}
EOF
EXPECT=<<EOF
33
12
[Sections]
32
11
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
@ -162,7 +154,6 @@ nth paddr size vaddr vsize perm type name
28 0x00000c7c 0x450 0x00000000 0x450 ---- SYMTAB prixfixe..symtab
29 0x000010cc 0x257 0x00000000 0x257 ---- STRTAB prixfixe..strtab
[Segments]
nth paddr size vaddr vsize perm type name
------------------------------------------------------
@ -191,7 +182,7 @@ NAME=rabin2 -z pe
FILE=bins/pe/a.exe
CMDS=!!rabin2 -z ${R2_FILE}~?
EXPECT=<<EOF
7
6
EOF
RUN
@ -247,7 +238,7 @@ NAME=rabin2 -z elf
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=!!rabin2 -z ${R2_FILE}~?
EXPECT=<<EOF
4
3
EOF
RUN
@ -271,10 +262,7 @@ NAME=rabin2 -G 0x1000 -e fatmach0
FILE=bins/mach0/fatmach0-3true
CMDS=!rabin2 -G 0x1000 -e ${R2_FILE}
EXPECT=<<EOF
[Entrypoints]
vaddr=0x100000ef8 paddr=0x00001ef8 haddr=0x00000570 type=program
1 entrypoints
EOF
RUN
@ -294,10 +282,7 @@ NAME=rabin2 -G 0x5000 -e fatmach0
FILE=bins/mach0/fatmach0-3true
CMDS=!rabin2 -G 0x5000 -e ${R2_FILE}
EXPECT=<<EOF
[Entrypoints]
vaddr=0x00001f44 paddr=0x00005f44 haddr=0x00000420 type=program
1 entrypoints
EOF
RUN
@ -317,10 +302,7 @@ NAME=rabin2 -B 0x2000000 -G 0x1000 -e fatmach0
FILE=bins/mach0/fatmach0-3true
CMDS=!rabin2 -B 0x2000000 -G 0x1000 -e ${R2_FILE}
EXPECT=<<EOF
[Entrypoints]
vaddr=0x02000ef8 paddr=0x00001ef8 haddr=0x00000570 type=program
1 entrypoints
EOF
RUN
@ -337,10 +319,7 @@ NAME=rabin2 -B 0x2000000 -e arm64
FILE=bins/mach0/hello-ios-arm64
CMDS=!rabin2 -B 0x2000000 -e ${R2_FILE}
EXPECT=<<EOF
[Entrypoints]
vaddr=0x02007f34 paddr=0x00007f34 haddr=0x00000468 type=program
1 entrypoints
EOF
RUN
@ -352,13 +331,11 @@ ii
iij
EOF
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
0 0x00001f94 NONE FUNC exit
1 ---------- NONE FUNC dyld_stub_binder
[Imports]
nth vaddr bind type lib name
----------------------------------
0 0x100000f40 NONE FUNC exit
@ -372,7 +349,6 @@ NAME=rabin2 -G 0x5000 -i fatmach0
FILE=bins/mach0/fatmach0-3true
CMDS=!rabin2 -G 0x5000 -i ${R2_FILE}
EXPECT=<<EOF
[Imports]
nth vaddr bind type lib name
---------------------------------
0 0x00001f94 NONE FUNC exit
@ -434,7 +410,6 @@ rm .tmp/rabin2testpe1.exe
EOF
EXPECT=<<EOF
wx e0000040 @ 0x244
[Sections]
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
@ -458,7 +433,6 @@ rm .tmp/rabin2testpe2.exe
EOF
EXPECT=<<EOF
wx 10000000 @ 0x16c
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------
@ -500,11 +474,8 @@ NAME=-ee baddr 0
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=!rabin2 -ee -B 0 ${R2_FILE}
EXPECT=<<EOF
[Constructors]
vaddr=0x000003d0 paddr=0x000003d0 hvaddr=0x0000159c hpaddr=0x0000059c type=init
vaddr=0x000003b0 paddr=0x000003b0 hvaddr=0x000015a0 hpaddr=0x000005a0 type=fini
2 entrypoints
EOF
RUN
@ -512,7 +483,6 @@ NAME=rabin2 -g
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=!rabin2 -g ${R2_FILE}
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
@ -547,7 +517,6 @@ nth paddr size vaddr vsize perm type name
28 0x00000c7c 0x450 0x00000000 0x450 ---- SYMTAB .symtab
29 0x000010cc 0x257 0x00000000 0x257 ---- STRTAB .strtab
[Segments]
nth paddr size vaddr vsize perm type name
------------------------------------------------------
@ -561,25 +530,16 @@ nth paddr size vaddr vsize perm type name
7 0x00000000 0x0 0x00000000 0x0 -rw- MAP GNU_STACK
8 0x00000000 0x34 0x08048000 0x34 -rw- MAP ehdr
[Entrypoints]
vaddr=0x08048300 paddr=0x00000300 haddr=0x00000018 hvaddr=0x08048018 type=program
1 entrypoints
[Constructors]
vaddr=0x080483d0 paddr=0x000003d0 hvaddr=0x0804959c hpaddr=0x0000059c type=init
vaddr=0x080483b0 paddr=0x000003b0 hvaddr=0x080495a0 hpaddr=0x000005a0 type=fini
2 entrypoints
[Main]
vaddr=0x08048400 paddr=0x00000400
[Imports]
nth vaddr bind type lib name
-------------------------------------
1 0x080482d0 GLOBAL FUNC puts
2 0x080482e0 WEAK NOTYPE __gmon_start__
3 0x080482f0 GLOBAL FUNC __libc_start_main
[Symbols]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------------------------------------
4 0x000004ac 0x080484ac GLOBAL OBJ 4 _IO_stdin_used
@ -648,7 +608,6 @@ nth paddr vaddr bind type size lib name
1 0x000002d0 0x080482d0 GLOBAL FUNC 16 imp.puts
2 0x000002e0 0x080482e0 WEAK NOTYPE 16 imp.__gmon_start__
3 0x000002f0 0x080482f0 GLOBAL FUNC 16 imp.__libc_start_main
[Strings]
nth paddr vaddr len size section type string
-------------------------------------------------------
0 0x000004b0 0x080484b0 12 13 .rodata ascii Hello world!
@ -681,7 +640,6 @@ static false
stripped false
subsys linux
va true
[Header fields]
0x00000000 0x00000000 0x464c457f ELF
0x00000010 0x00000010 0x00000002 Type
0x00000012 0x00000012 0x00000003 Machine
@ -698,11 +656,9 @@ va true
0x00000032 0x00000032 0x0000001b ShrStrndx
14 fields
[Linked libraries]
libc.so.6
1 library
[Relocations]
vaddr paddr type ntype name
---------------------------------------
@ -1061,7 +1017,6 @@ NAME=rabin2 -E
FILE=bins/pe/dll.dll
CMDS=!rabin2 -E ${R2_FILE}
EXPECT=<<EOF
[Exports]
nth paddr vaddr bind type size lib name demangled
-------------------------------------------------------------------
0 0x00000224 0x01001024 GLOBAL FUNC 0 dll.dll export