Use -1 with tiny test (#6352)
This commit is contained in:
parent
e4976144c3
commit
17fd3815c6
1 changed files with 21 additions and 20 deletions
|
|
@ -1,5 +1,6 @@
|
|||
NAME=ELF: corkami tiny.elf - entry0
|
||||
FILE=bins/elf/analysis/tiny.elf
|
||||
ARGS=-1
|
||||
CMDS=<<EOF
|
||||
%v entry0; e asm.bytes=true; pdq 4 @ entry0;
|
||||
echo -- 1 --
|
||||
|
|
@ -9,18 +10,31 @@ iSS
|
|||
echo -- 3 --
|
||||
e log.level=1
|
||||
aF
|
||||
echo -- 4 --
|
||||
e analysis.in=io.maps
|
||||
aF
|
||||
e log.level=3
|
||||
pd 10
|
||||
echo -- 4 --
|
||||
afb
|
||||
echo -- 5 --
|
||||
afb
|
||||
echo -- 6 --
|
||||
afb-*
|
||||
afb
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
WARNING: Failed to read ELF header (e_phnum).
|
||||
WARNING: Failed to read ELF header (e_shentsize).
|
||||
WARNING: Failed to read ELF header (e_shnum).
|
||||
WARNING: Failed to read ELF header (e_shstrndx).
|
||||
WARNING: The binary seems to be a tiny elf (45 bytes). Reload e_phnum value.
|
||||
WARNING: Number of sections is 0.
|
||||
WARNING: phdr entry: p_offset (0x0) + p_filesz (65568 bytes) > binary size (45 bytes).
|
||||
WARNING: phdr entry: p_offset (0x0) and p_vaddr (0x10000) are not congruent for p_align (0xc0312ab3).
|
||||
WARNING: The segment 0 at 0x4 seems to be invalid.
|
||||
WARNING: ELF header e_shstrndx value (0) >= number of sections (0).
|
||||
WARNING: Failed to initialize section string table.
|
||||
0x10020
|
||||
WARNING: Failed to read chunk of size 0x101 at 0x10020 from io.
|
||||
0x00010020 entry0:
|
||||
0x00010020 b32a mov bl, 0x2a
|
||||
0x00010022 31c0 xor eax, eax
|
||||
|
|
@ -34,6 +48,9 @@ EXPECT=<<EOF
|
|||
0x00000000 0x10020 0x00010000 0x10020 0xc0312ab3 -r-- LOAD0
|
||||
0x00000000 0x2d 0x00010000 0x2d 0x0 -rw- ehdr
|
||||
-- 3 --
|
||||
VERBOSE: Address not mapped or not executable at 0x10020.
|
||||
-- 4 --
|
||||
WARNING: Failed to read chunk of size 0x101 at 0x10020 from io.
|
||||
/ entry0();
|
||||
| 0x00010020 b32a mov bl, 0x2a ; '*' ; 42
|
||||
| 0x00010022 31c0 xor eax, eax
|
||||
|
|
@ -45,25 +62,9 @@ EXPECT=<<EOF
|
|||
| 0x0001002e 0000 add byte [eax], al
|
||||
| 0x00010030 0000 add byte [eax], al
|
||||
| 0x00010032 0000 add byte [eax], al
|
||||
-- 4 --
|
||||
-- 5 --
|
||||
0x00010020 0x0001fc1e 00:0000 64510 j 0x0001fc1e
|
||||
0x0001fc1e 0x00020020 00:0000 1026
|
||||
-- 5 --
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: Failed to read ELF header (e_phnum).
|
||||
WARNING: Failed to read ELF header (e_shentsize).
|
||||
WARNING: Failed to read ELF header (e_shnum).
|
||||
WARNING: Failed to read ELF header (e_shstrndx).
|
||||
WARNING: The binary seems to be a tiny elf (45 bytes). Reload e_phnum value.
|
||||
WARNING: Number of sections is 0.
|
||||
WARNING: phdr entry: p_offset (0x0) + p_filesz (65568 bytes) > binary size (45 bytes).
|
||||
WARNING: phdr entry: p_offset (0x0) and p_vaddr (0x10000) are not congruent for p_align (0xc0312ab3).
|
||||
WARNING: The segment 0 at 0x4 seems to be invalid.
|
||||
WARNING: ELF header e_shstrndx value (0) >= number of sections (0).
|
||||
WARNING: Failed to initialize section string table.
|
||||
WARNING: Failed to read chunk of size 0x101 at 0x10020 from io.
|
||||
VERBOSE: Address not mapped or not executable at 0x10020.
|
||||
WARNING: Failed to read chunk of size 0x101 at 0x10020 from io.
|
||||
-- 6 --
|
||||
EOF
|
||||
RUN
|
||||
|
|
|
|||
Loading…
Reference in a new issue