NAME=PE: corkami tls_noEP.exe - open
FILE=bins/pe/tls_noEP.exe
ARGS=-A
CMDS=q!
EXPECT=
RUN

NAME=1: PE: tls_noEP - entrypoint
FILE=bins/pe/tls_noEP.exe
CMDS=<<EOF
iee
ie
EOF
EXPECT=<<EOF
     vaddr      paddr     hvaddr      haddr type 
-------------------------------------------------
0x00401000 0x00000200 ---------- 0x00000384 tls
     vaddr      paddr     hvaddr      haddr type    
----------------------------------------------------
0x00401000 0x00000200 ---------- 0x00000068 program
0x00401000 0x00000200 ---------- 0x00000384 tls
EOF
RUN

NAME=2: PE: tls_noEP - entrypoint
FILE=bins/pe/tls_noEP.exe
CMDS=pi 5
EXPECT=<<EOF
push str.Exiting_TLS_with_no_EP:_____1st_TLS_call__ExitProcess___called
call dword [sym.imp.msvcrt.dll_printf]
add esp, 4
nop
mov dword [0x401184], 0x401070
EOF
RUN
