NAME=PE: corkami imports_tinyW7.exe - open
FILE=bins/pe/imports_tinyW7.exe
CMDS=q!
EXPECT=<<EOF
EOF
RUN

NAME=PE: resolve reloc name by ordinal from sdb
FILE=bins/pe/imports_tinyW7.exe
CMDS=<<EOF
ir
ii
EOF
EXPECT=<<EOF
[Relocations]

vaddr      paddr      type   name
---------------------------------
0x8000011c 0x00000248 SET_32 kernel32_FindAtomW
0x800004f4 0x00000234 SET_32 msvcrt_Ordinal_1268


2 relocations
[Imports]
nth  vaddr      bind type lib      name
---------------------------------------
284  0x00000000 NONE FUNC kernel32 FindAtomW
1268 0x00401034 NONE FUNC msvcrt   Ordinal_1268

EOF
RUN
