rizin/test/db/cmd/cmd_string
Peiwei Hu 1d9eac6b6d
Refine the output of iz command and remove ordinal in RzBinString (#5122)
* Refine the output format of iz command

* fixup! Refine the output format of iz command

* fixup! fixup! Refine the output format of iz command
2025-05-23 13:46:30 +00:00

90 lines
5.2 KiB
Text

NAME=izz
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=izz
EXPECT=<<EOF
paddr vaddr len size section type string
----------------------------------------------------------------------------------------
0x00000034 0x00400034 4 10 utf16le @8\b@
0x00000200 0x00400200 25 26 .interp ascii /lib/ld-linux-x86-64.so.2
0x000002e1 0x004002e1 14 15 .dynstr ascii __gmon_start__
0x000002f0 0x004002f0 9 10 .dynstr ascii libc.so.6
0x000002fa 0x004002fa 4 5 .dynstr ascii puts
0x000002ff 0x004002ff 17 18 .dynstr ascii __libc_start_main
0x00000311 0x00400311 11 12 .dynstr ascii GLIBC_2.2.5
0x00000588 0x00400588 4 4 .text ascii \$\bH
0x00000597 0x00400597 4 4 .text ascii l$ L
0x0000059c 0x0040059c 4 4 .text ascii t$(L
0x000005a1 0x004005a1 4 4 .text ascii |$0H
0x000005c4 0x004005c4 11 12 .rodata ascii Hello World
0x00000618 0x00400618 4 4 .eh_frame ascii \e\f\a\b
0x00000648 0x00400648 4 4 .eh_frame ascii \e\f\a\b
0x0000066f 0x0040066f 5 6 .eh_frame ascii ;*3$"
0x00000691 0x00400691 4 5 .eh_frame ascii P\f\a\b
0x00000910 ---------- 16 17 .comment ascii GCC: (GNU) 4.7.2
0x00000922 ---------- 7 8 .shstrtab ascii .symtab
0x0000092a ---------- 7 8 .shstrtab ascii .strtab
0x00000932 ---------- 9 10 .shstrtab ascii .shstrtab
0x0000093c ---------- 7 8 .shstrtab ascii .interp
0x00000944 ---------- 13 14 .shstrtab ascii .note.ABI-tag
0x00000952 ---------- 18 19 .shstrtab ascii .note.gnu.build-id
0x00000965 ---------- 9 10 .shstrtab ascii .gnu.hash
0x0000096f ---------- 7 8 .shstrtab ascii .dynsym
0x00000977 ---------- 7 8 .shstrtab ascii .dynstr
0x0000097f ---------- 12 13 .shstrtab ascii .gnu.version
0x0000098c ---------- 14 15 .shstrtab ascii .gnu.version_r
0x0000099b ---------- 9 10 .shstrtab ascii .rela.dyn
0x000009a5 ---------- 9 10 .shstrtab ascii .rela.plt
0x000009af ---------- 5 6 .shstrtab ascii .init
0x000009b5 ---------- 5 6 .shstrtab ascii .text
0x000009bb ---------- 5 6 .shstrtab ascii .fini
0x000009c1 ---------- 7 8 .shstrtab ascii .rodata
0x000009c9 ---------- 13 14 .shstrtab ascii .eh_frame_hdr
0x000009d7 ---------- 9 10 .shstrtab ascii .eh_frame
0x000009e1 ---------- 11 12 .shstrtab ascii .init_array
0x000009ed ---------- 11 12 .shstrtab ascii .fini_array
0x000009f9 ---------- 4 5 .shstrtab ascii .jcr
0x000009fe ---------- 8 9 .shstrtab ascii .dynamic
0x00000a07 ---------- 4 5 .shstrtab ascii .got
0x00000a0c ---------- 8 9 .shstrtab ascii .got.plt
0x00000a15 ---------- 5 6 .shstrtab ascii .data
0x00000a1b ---------- 4 5 .shstrtab ascii .bss
0x00000a20 ---------- 8 9 .shstrtab ascii .comment
0x000017f9 ---------- 6 7 .strtab ascii init.c
0x00001800 ---------- 10 11 .strtab ascii crtstuff.c
0x0000180b ---------- 12 13 .strtab ascii __JCR_LIST__
0x00001818 ---------- 20 21 .strtab ascii deregister_tm_clones
0x0000182d ---------- 18 19 .strtab ascii register_tm_clones
0x00001840 ---------- 21 22 .strtab ascii __do_global_dtors_aux
0x00001856 ---------- 14 15 .strtab ascii completed.6724
0x00001865 ---------- 38 39 .strtab ascii __do_global_dtors_aux_fini_array_entry
0x0000188c ---------- 11 12 .strtab ascii frame_dummy
0x00001898 ---------- 30 31 .strtab ascii __frame_dummy_init_array_entry
0x000018b7 ---------- 7 8 .strtab ascii hello.c
0x000018bf ---------- 13 14 .strtab ascii __FRAME_END__
0x000018cd ---------- 11 12 .strtab ascii __JCR_END__
0x000018d9 ---------- 16 17 .strtab ascii __init_array_end
0x000018ea ---------- 8 9 .strtab ascii _DYNAMIC
0x000018f3 ---------- 18 19 .strtab ascii __init_array_start
0x00001906 ---------- 21 22 .strtab ascii _GLOBAL_OFFSET_TABLE_
0x0000191c ---------- 15 16 .strtab ascii __libc_csu_fini
0x0000192c ---------- 27 28 .strtab ascii _ITM_deregisterTMCloneTable
0x00001948 ---------- 10 11 .strtab ascii data_start
0x00001953 ---------- 17 18 .strtab ascii puts@@GLIBC_2.2.5
0x00001965 ---------- 6 7 .strtab ascii _edata
0x0000196c ---------- 5 6 .strtab ascii _fini
0x00001972 ---------- 30 31 .strtab ascii __libc_start_main@@GLIBC_2.2.5
0x00001991 ---------- 12 13 .strtab ascii __data_start
0x0000199e ---------- 14 15 .strtab ascii __gmon_start__
0x000019ad ---------- 12 13 .strtab ascii __dso_handle
0x000019ba ---------- 14 15 .strtab ascii _IO_stdin_used
0x000019c9 ---------- 15 16 .strtab ascii __libc_csu_init
0x000019d9 ---------- 4 5 .strtab ascii _end
0x000019de ---------- 6 7 .strtab ascii _start
0x000019e5 ---------- 11 12 .strtab ascii __bss_start
0x000019f1 ---------- 4 5 .strtab ascii main
0x000019f6 ---------- 19 20 .strtab ascii _Jv_RegisterClasses
0x00001a0a ---------- 11 12 .strtab ascii __TMC_END__
0x00001a16 ---------- 25 26 .strtab ascii _ITM_registerTMCloneTable
0x00001a30 ---------- 5 6 .strtab ascii _init
EOF
RUN