82 lines
1.5 KiB
Text
82 lines
1.5 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_0x152
|
|
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_lmf:
|
|
version: 400
|
|
cflags: 0x16
|
|
cpu: 386
|
|
fpu: 0
|
|
code_index: 0
|
|
stack_index: 1
|
|
heap_index: 1
|
|
argv_index: 1
|
|
spare2:
|
|
- 0x0
|
|
- 0x0
|
|
- 0x0
|
|
- 0x0
|
|
code_offset: 0x21c
|
|
stack_nbytes: 0x8000
|
|
heap_nbytes: 0x1000
|
|
image_base: 0xa000
|
|
spare3:
|
|
- 0x0
|
|
- 0x0
|
|
|
|
EOF
|
|
RUN
|