There may be multiple maps containing the current seek. This indicates only the highest-priority one, which is also the one whose data is visible at the seek address.
75 lines
1.4 KiB
Text
75 lines
1.4 KiB
Text
NAME=load qnx
|
|
FILE=bins/qnx/test.x
|
|
CMDS=iI~bintype
|
|
EXPECT=<<EOF
|
|
bintype QNX
|
|
EOF
|
|
RUN
|
|
|
|
NAME=entry point of qnx
|
|
FILE=bins/qnx/test.x
|
|
CMDS=ie:quiet
|
|
EXPECT=<<EOF
|
|
0x0000021c 0x0000021c ---------- ---------- program
|
|
EOF
|
|
RUN
|
|
|
|
NAME=sections of qnx
|
|
FILE=bins/qnx/test.x
|
|
CMDS=iS
|
|
EXPECT=<<EOF
|
|
paddr size vaddr vsize align perm name type flags
|
|
-----------------------------------------------------------------
|
|
0x00000044 0xf6 0x00000044 0xf6 0x0 ---- LMF_LOAD
|
|
0x00000152 0x6c3 0x00000152 0x6c3 0x0 ---- LMF_LOAD
|
|
EOF
|
|
RUN
|
|
|
|
NAME=maps of qnx
|
|
FILE=bins/qnx/test.x
|
|
CMDS=oml
|
|
EXPECT=<<EOF
|
|
1 fd: 3 +0x00000044 0x00000044 - 0x00000139 --- fmap.LMF_LOAD
|
|
2 fd: 3 +0x00000152 0x00000152 - 0x00000814 --- fmap.LMF_LOAD
|
|
3 fd: 3 +0x00000000 0x00000000 * 0x00001481 r-x
|
|
EOF
|
|
RUN
|
|
|
|
NAME=sections 16 bits content
|
|
FILE=bins/qnx/test.x
|
|
CMDS=px 16 @ 0x00000152
|
|
EXPECT=<<EOF
|
|
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
|
|
0x00000152 0000 0000 0000 cd00 9090 9090 0000 0000 ................
|
|
EOF
|
|
RUN
|
|
|
|
NAME=get signature info
|
|
FILE=bins/qnx/test.x
|
|
CMDS=iC
|
|
EXPECT=<<EOF
|
|
2692336605
|
|
EOF
|
|
RUN
|
|
|
|
NAME=get header info
|
|
FILE=bins/qnx/test.x
|
|
CMDS=iH
|
|
EXPECT=<<EOF
|
|
QNX file header:
|
|
version : 0x190H
|
|
cflags : 0x16H
|
|
cpu : 0x182H
|
|
fpu : 0x0H
|
|
code_index : 0x0H
|
|
stack_index : 0x1H
|
|
heap_index : 0x1H
|
|
argv_index : 0x1H
|
|
spare2[4] : 0x0H
|
|
code_offset : 0x21cH
|
|
stack_nbytes : 0x8000H
|
|
heap_nbytes : 0x1000H
|
|
image_base : 0xa000H
|
|
spare3[2] : 0x0H
|
|
EOF
|
|
RUN
|