Initial commit
This commit is contained in:
15
p3-disas/tests/valgrind/A_bad_filename.txt
Normal file
15
p3-disas/tests/valgrind/A_bad_filename.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2061914== Memcheck, a memory error detector
|
||||
==2061914== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061914== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061914== Command: ../y86 -d inputs/bad-nonexist.o
|
||||
==2061914==
|
||||
Failed to read file
|
||||
==2061914==
|
||||
==2061914== HEAP SUMMARY:
|
||||
==2061914== in use at exit: 0 bytes in 0 blocks
|
||||
==2061914== total heap usage: 2 allocs, 2 frees, 8,664 bytes allocated
|
||||
==2061914==
|
||||
==2061914== All heap blocks were freed -- no leaks are possible
|
||||
==2061914==
|
||||
==2061914== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061914== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
15
p3-disas/tests/valgrind/A_bad_no_elf.txt
Normal file
15
p3-disas/tests/valgrind/A_bad_no_elf.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2061781== Memcheck, a memory error detector
|
||||
==2061781== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061781== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061781== Command: ../y86 -d inputs/bad-no_elf.o
|
||||
==2061781==
|
||||
Failed to read file
|
||||
==2061781==
|
||||
==2061781== HEAP SUMMARY:
|
||||
==2061781== in use at exit: 0 bytes in 0 blocks
|
||||
==2061781== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061781==
|
||||
==2061781== All heap blocks were freed -- no leaks are possible
|
||||
==2061781==
|
||||
==2061781== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061781== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
15
p3-disas/tests/valgrind/A_bad_phdr.txt
Normal file
15
p3-disas/tests/valgrind/A_bad_phdr.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2061802== Memcheck, a memory error detector
|
||||
==2061802== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061802== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061802== Command: ../y86 -d inputs/bad-phdr.o
|
||||
==2061802==
|
||||
Failed to read file
|
||||
==2061802==
|
||||
==2061802== HEAP SUMMARY:
|
||||
==2061802== in use at exit: 0 bytes in 0 blocks
|
||||
==2061802== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061802==
|
||||
==2061802== All heap blocks were freed -- no leaks are possible
|
||||
==2061802==
|
||||
==2061802== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061802== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
15
p3-disas/tests/valgrind/A_bad_short_header.txt
Normal file
15
p3-disas/tests/valgrind/A_bad_short_header.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2061820== Memcheck, a memory error detector
|
||||
==2061820== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061820== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061820== Command: ../y86 -d inputs/bad-short_header.o
|
||||
==2061820==
|
||||
Failed to read file
|
||||
==2061820==
|
||||
==2061820== HEAP SUMMARY:
|
||||
==2061820== in use at exit: 0 bytes in 0 blocks
|
||||
==2061820== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061820==
|
||||
==2061820== All heap blocks were freed -- no leaks are possible
|
||||
==2061820==
|
||||
==2061820== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061820== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
15
p3-disas/tests/valgrind/A_bad_short_phdr.txt
Normal file
15
p3-disas/tests/valgrind/A_bad_short_phdr.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2061857== Memcheck, a memory error detector
|
||||
==2061857== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061857== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061857== Command: ../y86 -d inputs/bad-short_phdr.o
|
||||
==2061857==
|
||||
Failed to read file
|
||||
==2061857==
|
||||
==2061857== HEAP SUMMARY:
|
||||
==2061857== in use at exit: 0 bytes in 0 blocks
|
||||
==2061857== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061857==
|
||||
==2061857== All heap blocks were freed -- no leaks are possible
|
||||
==2061857==
|
||||
==2061857== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061857== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
20
p3-disas/tests/valgrind/A_data.txt
Normal file
20
p3-disas/tests/valgrind/A_data.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
==2061441== Memcheck, a memory error detector
|
||||
==2061441== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061441== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061441== Command: ../y86 -D inputs/data.o
|
||||
==2061441==
|
||||
Disassembly of data contents:
|
||||
0x200: | .pos 0x200 data
|
||||
0x200: 88 77 66 55 44 33 22 11 | .quad 0x1122334455667788
|
||||
0x208: 78 56 34 12 00 00 00 00 | .quad 0x12345678
|
||||
0x210: 42 00 00 00 00 00 00 00 | .quad 0x42
|
||||
|
||||
==2061441==
|
||||
==2061441== HEAP SUMMARY:
|
||||
==2061441== in use at exit: 0 bytes in 0 blocks
|
||||
==2061441== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061441==
|
||||
==2061441== All heap blocks were freed -- no leaks are possible
|
||||
==2061441==
|
||||
==2061441== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061441== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
19
p3-disas/tests/valgrind/A_data_code.txt
Normal file
19
p3-disas/tests/valgrind/A_data_code.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
==2061311== Memcheck, a memory error detector
|
||||
==2061311== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061311== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061311== Command: ../y86 -d inputs/data.o
|
||||
==2061311==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 00 | halt
|
||||
|
||||
==2061311==
|
||||
==2061311== HEAP SUMMARY:
|
||||
==2061311== in use at exit: 0 bytes in 0 blocks
|
||||
==2061311== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061311==
|
||||
==2061311== All heap blocks were freed -- no leaks are possible
|
||||
==2061311==
|
||||
==2061311== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061311== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
25
p3-disas/tests/valgrind/A_extra_params.txt
Normal file
25
p3-disas/tests/valgrind/A_extra_params.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
==2062039== Memcheck, a memory error detector
|
||||
==2062039== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2062039== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2062039== Command: ../y86 -d inputs/onebyte.o extra params
|
||||
==2062039==
|
||||
Usage: ../y86 <option(s)> mini-elf-file
|
||||
Options are:
|
||||
-h Display usage
|
||||
-H Show the Mini-ELF header
|
||||
-a Show all with brief memory
|
||||
-f Show all with full memory
|
||||
-s Show the program headers
|
||||
-m Show the memory contents (brief)
|
||||
-M Show the memory contents (full)
|
||||
-d Disassemble code contents
|
||||
-D Disassemble data contents
|
||||
==2062039==
|
||||
==2062039== HEAP SUMMARY:
|
||||
==2062039== in use at exit: 0 bytes in 0 blocks
|
||||
==2062039== total heap usage: 1 allocs, 1 frees, 8,192 bytes allocated
|
||||
==2062039==
|
||||
==2062039== All heap blocks were freed -- no leaks are possible
|
||||
==2062039==
|
||||
==2062039== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2062039== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
36
p3-disas/tests/valgrind/A_interleaved.txt
Normal file
36
p3-disas/tests/valgrind/A_interleaved.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
==2061697== Memcheck, a memory error detector
|
||||
==2061697== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061697== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061697== Command: ../y86 -d -D inputs/interleaved.o
|
||||
==2061697==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 00 | halt
|
||||
|
||||
0x400: | .pos 0x400 code
|
||||
0x400: 10 | nop
|
||||
0x401: 00 | halt
|
||||
|
||||
Disassembly of data contents:
|
||||
0x200: | .pos 0x200 data
|
||||
0x200: 10 00 00 00 00 00 00 00 | .quad 0x10
|
||||
|
||||
0x300: | .pos 0x300 rodata
|
||||
0x300: 74 65 73 74 00 | .string "test"
|
||||
|
||||
0x500: | .pos 0x500 data
|
||||
0x500: 78 56 34 12 00 00 00 00 | .quad 0x12345678
|
||||
|
||||
0x600: | .pos 0x600 rodata
|
||||
0x600: 61 67 61 69 6e 00 | .string "again"
|
||||
|
||||
==2061697==
|
||||
==2061697== HEAP SUMMARY:
|
||||
==2061697== in use at exit: 0 bytes in 0 blocks
|
||||
==2061697== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061697==
|
||||
==2061697== All heap blocks were freed -- no leaks are possible
|
||||
==2061697==
|
||||
==2061697== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061697== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
20
p3-disas/tests/valgrind/A_invalid.txt
Normal file
20
p3-disas/tests/valgrind/A_invalid.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
==2061744== Memcheck, a memory error detector
|
||||
==2061744== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061744== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061744== Command: ../y86 -d inputs/invalid.o
|
||||
==2061744==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 30 f3 0f 00 00 00 20 31 40 13 | irmovq 0x134031200000000f, %rbx
|
||||
Invalid opcode: 0xfd
|
||||
|
||||
==2061744==
|
||||
==2061744== HEAP SUMMARY:
|
||||
==2061744== in use at exit: 0 bytes in 0 blocks
|
||||
==2061744== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061744==
|
||||
==2061744== All heap blocks were freed -- no leaks are possible
|
||||
==2061744==
|
||||
==2061744== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061744== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
25
p3-disas/tests/valgrind/A_missing_file.txt
Normal file
25
p3-disas/tests/valgrind/A_missing_file.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
==2061946== Memcheck, a memory error detector
|
||||
==2061946== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061946== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061946== Command: ../y86 -d
|
||||
==2061946==
|
||||
Usage: ../y86 <option(s)> mini-elf-file
|
||||
Options are:
|
||||
-h Display usage
|
||||
-H Show the Mini-ELF header
|
||||
-a Show all with brief memory
|
||||
-f Show all with full memory
|
||||
-s Show the program headers
|
||||
-m Show the memory contents (brief)
|
||||
-M Show the memory contents (full)
|
||||
-d Disassemble code contents
|
||||
-D Disassemble data contents
|
||||
==2061946==
|
||||
==2061946== HEAP SUMMARY:
|
||||
==2061946== in use at exit: 0 bytes in 0 blocks
|
||||
==2061946== total heap usage: 1 allocs, 1 frees, 8,192 bytes allocated
|
||||
==2061946==
|
||||
==2061946== All heap blocks were freed -- no leaks are possible
|
||||
==2061946==
|
||||
==2061946== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061946== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
18
p3-disas/tests/valgrind/A_rodata.txt
Normal file
18
p3-disas/tests/valgrind/A_rodata.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
==2061510== Memcheck, a memory error detector
|
||||
==2061510== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061510== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061510== Command: ../y86 -D inputs/rodata.o
|
||||
==2061510==
|
||||
Disassembly of data contents:
|
||||
0x200: | .pos 0x200 rodata
|
||||
0x200: 68 65 6c 6c 6f 00 | .string "hello"
|
||||
|
||||
==2061510==
|
||||
==2061510== HEAP SUMMARY:
|
||||
==2061510== in use at exit: 0 bytes in 0 blocks
|
||||
==2061510== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061510==
|
||||
==2061510== All heap blocks were freed -- no leaks are possible
|
||||
==2061510==
|
||||
==2061510== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061510== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
19
p3-disas/tests/valgrind/A_rodata_code.txt
Normal file
19
p3-disas/tests/valgrind/A_rodata_code.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
==2061349== Memcheck, a memory error detector
|
||||
==2061349== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061349== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061349== Command: ../y86 -d inputs/rodata.o
|
||||
==2061349==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 00 | halt
|
||||
|
||||
==2061349==
|
||||
==2061349== HEAP SUMMARY:
|
||||
==2061349== in use at exit: 0 bytes in 0 blocks
|
||||
==2061349== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061349==
|
||||
==2061349== All heap blocks were freed -- no leaks are possible
|
||||
==2061349==
|
||||
==2061349== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061349== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
24
p3-disas/tests/valgrind/A_rodata_long.txt
Normal file
24
p3-disas/tests/valgrind/A_rodata_long.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
==2062146== Memcheck, a memory error detector
|
||||
==2062146== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2062146== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2062146== Command: ../y86 -D inputs/rodata_long.o
|
||||
==2062146==
|
||||
Disassembly of data contents:
|
||||
0x200: | .pos 0x200 rodata
|
||||
0x200: 30 31 32 33 34 35 36 37 38 39 | .string "0123456789"
|
||||
0x20a: 00 |
|
||||
0x20b: 68 65 6c 6c 6f 20 77 6f 72 6c | .string "hello world"
|
||||
0x215: 64 00 |
|
||||
0x217: 61 62 63 64 65 66 67 68 69 6a | .string "abcdefghijklmnopqrstuvwxyz"
|
||||
0x221: 6b 6c 6d 6e 6f 70 71 72 73 74 |
|
||||
0x22b: 75 76 77 78 79 7a 00 |
|
||||
|
||||
==2062146==
|
||||
==2062146== HEAP SUMMARY:
|
||||
==2062146== in use at exit: 0 bytes in 0 blocks
|
||||
==2062146== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2062146==
|
||||
==2062146== All heap blocks were freed -- no leaks are possible
|
||||
==2062146==
|
||||
==2062146== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2062146== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
20
p3-disas/tests/valgrind/A_rodata_multi.txt
Normal file
20
p3-disas/tests/valgrind/A_rodata_multi.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
==2061670== Memcheck, a memory error detector
|
||||
==2061670== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061670== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061670== Command: ../y86 -D inputs/rodata_multi.o
|
||||
==2061670==
|
||||
Disassembly of data contents:
|
||||
0x200: | .pos 0x200 rodata
|
||||
0x200: 66 6f 6f 00 | .string "foo"
|
||||
0x204: 77 30 30 74 00 | .string "w00t"
|
||||
0x209: 75 70 20 64 6f 77 6e 00 | .string "up down"
|
||||
|
||||
==2061670==
|
||||
==2061670== HEAP SUMMARY:
|
||||
==2061670== in use at exit: 0 bytes in 0 blocks
|
||||
==2061670== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061670==
|
||||
==2061670== All heap blocks were freed -- no leaks are possible
|
||||
==2061670==
|
||||
==2061670== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061670== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
34
p3-disas/tests/valgrind/A_rodata_shakespeare.txt
Normal file
34
p3-disas/tests/valgrind/A_rodata_shakespeare.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
==2062177== Memcheck, a memory error detector
|
||||
==2062177== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2062177== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2062177== Command: ../y86 -D inputs/rodata_shakespeare.o
|
||||
==2062177==
|
||||
Disassembly of data contents:
|
||||
0x200: | .pos 0x200 rodata
|
||||
0x200: 54 6f 20 62 65 2c 20 6f 72 20 | .string "To be, or not to be: that is the question"
|
||||
0x20a: 6e 6f 74 20 74 6f 20 62 65 3a |
|
||||
0x214: 20 74 68 61 74 20 69 73 20 74 |
|
||||
0x21e: 68 65 20 71 75 65 73 74 69 6f |
|
||||
0x228: 6e 00 |
|
||||
0x22a: 57 68 61 74 27 73 20 69 6e 20 | .string "What's in a name? A rose by any other name would smell as sweet."
|
||||
0x234: 61 20 6e 61 6d 65 3f 20 41 20 |
|
||||
0x23e: 72 6f 73 65 20 62 79 20 61 6e |
|
||||
0x248: 79 20 6f 74 68 65 72 20 6e 61 |
|
||||
0x252: 6d 65 20 77 6f 75 6c 64 20 73 |
|
||||
0x25c: 6d 65 6c 6c 20 61 73 20 73 77 |
|
||||
0x266: 65 65 74 2e 00 |
|
||||
0x26b: 42 75 74 2c 20 66 6f 72 20 6d | .string "But, for my own part, it was Greek to me."
|
||||
0x275: 79 20 6f 77 6e 20 70 61 72 74 |
|
||||
0x27f: 2c 20 69 74 20 77 61 73 20 47 |
|
||||
0x289: 72 65 65 6b 20 74 6f 20 6d 65 |
|
||||
0x293: 2e 00 |
|
||||
|
||||
==2062177==
|
||||
==2062177== HEAP SUMMARY:
|
||||
==2062177== in use at exit: 0 bytes in 0 blocks
|
||||
==2062177== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2062177==
|
||||
==2062177== All heap blocks were freed -- no leaks are possible
|
||||
==2062177==
|
||||
==2062177== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2062177== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
40
p3-disas/tests/valgrind/A_unaligned1.txt
Normal file
40
p3-disas/tests/valgrind/A_unaligned1.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
==2062084== Memcheck, a memory error detector
|
||||
==2062084== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2062084== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2062084== Command: ../y86 -a -d inputs/unaligned.o
|
||||
==2062084==
|
||||
01 00 18 01 10 00 03 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x118
|
||||
There are 3 program headers, starting at offset 16 (0x10)
|
||||
There is no symbol table present
|
||||
There is no string table present
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x004c 0x0009 0x0000 CODE R X
|
||||
01 0x0055 0x0002 0x0118 CODE R X
|
||||
02 0x0057 0x0008 0x013a DATA RW
|
||||
Contents of memory from 0000 to 0009:
|
||||
0000 70 18 01 00 00 00 00 00 00
|
||||
Contents of memory from 0118 to 011a:
|
||||
0110 10 00
|
||||
Contents of memory from 013a to 0142:
|
||||
0130 39 30 00 00 00 00
|
||||
0140 00 00
|
||||
Disassembly of executable contents:
|
||||
0x000: | .pos 0x000 code
|
||||
0x000: 70 18 01 00 00 00 00 00 00 | jmp 0x118
|
||||
|
||||
0x118: | .pos 0x118 code
|
||||
0x118: | _start:
|
||||
0x118: 10 | nop
|
||||
0x119: 00 | halt
|
||||
|
||||
==2062084==
|
||||
==2062084== HEAP SUMMARY:
|
||||
==2062084== in use at exit: 0 bytes in 0 blocks
|
||||
==2062084== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2062084==
|
||||
==2062084== All heap blocks were freed -- no leaks are possible
|
||||
==2062084==
|
||||
==2062084== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2062084== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
43
p3-disas/tests/valgrind/A_unaligned2.txt
Normal file
43
p3-disas/tests/valgrind/A_unaligned2.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
==2062113== Memcheck, a memory error detector
|
||||
==2062113== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2062113== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2062113== Command: ../y86 -a -d inputs/unaligned2.o
|
||||
==2062113==
|
||||
01 00 55 05 10 00 03 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x555
|
||||
There are 3 program headers, starting at offset 16 (0x10)
|
||||
There is no symbol table present
|
||||
There is no string table present
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x004c 0x0009 0x0000 CODE R X
|
||||
01 0x0055 0x001f 0x0555 CODE R X
|
||||
02 0x0074 0x0008 0x0987 DATA RW
|
||||
Contents of memory from 0000 to 0009:
|
||||
0000 70 55 05 00 00 00 00 00 00
|
||||
Contents of memory from 0555 to 0574:
|
||||
0550 30 f0 4d 01 00 00 00 00 00 00 30
|
||||
0560 f3 de 00 00 00 00 00 00 00 30 f1 6f 00 00 00 00
|
||||
0570 00 00 00 00
|
||||
Contents of memory from 0987 to 098f:
|
||||
0980 dd cc bb aa 00 00 00 00
|
||||
Disassembly of executable contents:
|
||||
0x000: | .pos 0x000 code
|
||||
0x000: 70 55 05 00 00 00 00 00 00 | jmp 0x555
|
||||
|
||||
0x555: | .pos 0x555 code
|
||||
0x555: | _start:
|
||||
0x555: 30 f0 4d 01 00 00 00 00 00 00 | irmovq 0x14d, %rax
|
||||
0x55f: 30 f3 de 00 00 00 00 00 00 00 | irmovq 0xde, %rbx
|
||||
0x569: 30 f1 6f 00 00 00 00 00 00 00 | irmovq 0x6f, %rcx
|
||||
0x573: 00 | halt
|
||||
|
||||
==2062113==
|
||||
==2062113== HEAP SUMMARY:
|
||||
==2062113== in use at exit: 0 bytes in 0 blocks
|
||||
==2062113== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2062113==
|
||||
==2062113== All heap blocks were freed -- no leaks are possible
|
||||
==2062113==
|
||||
==2062113== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2062113== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
24
p3-disas/tests/valgrind/B_iotrap.txt
Normal file
24
p3-disas/tests/valgrind/B_iotrap.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
==2061103== Memcheck, a memory error detector
|
||||
==2061103== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061103== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061103== Command: ../y86 -d inputs/iotrap.o
|
||||
==2061103==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: c0 | iotrap 0
|
||||
0x101: c1 | iotrap 1
|
||||
0x102: c2 | iotrap 2
|
||||
0x103: c3 | iotrap 3
|
||||
0x104: c4 | iotrap 4
|
||||
0x105: c5 | iotrap 5
|
||||
|
||||
==2061103==
|
||||
==2061103== HEAP SUMMARY:
|
||||
==2061103== in use at exit: 0 bytes in 0 blocks
|
||||
==2061103== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061103==
|
||||
==2061103== All heap blocks were freed -- no leaks are possible
|
||||
==2061103==
|
||||
==2061103== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061103== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
25
p3-disas/tests/valgrind/B_jmp.txt
Normal file
25
p3-disas/tests/valgrind/B_jmp.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
==2060908== Memcheck, a memory error detector
|
||||
==2060908== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060908== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060908== Command: ../y86 -d inputs/jmp.o
|
||||
==2060908==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 70 88 77 66 55 44 33 22 11 | jmp 0x1122334455667788
|
||||
0x109: 71 77 66 55 44 33 22 11 88 | jle 0x8811223344556677
|
||||
0x112: 72 66 55 44 33 22 11 88 77 | jl 0x7788112233445566
|
||||
0x11b: 73 55 44 33 22 11 88 77 66 | je 0x6677881122334455
|
||||
0x124: 74 44 33 22 11 88 77 66 55 | jne 0x5566778811223344
|
||||
0x12d: 75 33 22 11 88 77 66 55 44 | jge 0x4455667788112233
|
||||
0x136: 76 22 11 88 77 66 55 44 33 | jg 0x3344556677881122
|
||||
|
||||
==2060908==
|
||||
==2060908== HEAP SUMMARY:
|
||||
==2060908== in use at exit: 0 bytes in 0 blocks
|
||||
==2060908== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060908==
|
||||
==2060908== All heap blocks were freed -- no leaks are possible
|
||||
==2060908==
|
||||
==2060908== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060908== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
20
p3-disas/tests/valgrind/B_ninebyte.txt
Normal file
20
p3-disas/tests/valgrind/B_ninebyte.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
==2060882== Memcheck, a memory error detector
|
||||
==2060882== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060882== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060882== Command: ../y86 -d inputs/ninebyte.o
|
||||
==2060882==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 70 88 77 66 55 44 33 22 11 | jmp 0x1122334455667788
|
||||
0x109: 80 11 22 33 44 55 66 77 88 | call 0x8877665544332211
|
||||
|
||||
==2060882==
|
||||
==2060882== HEAP SUMMARY:
|
||||
==2060882== in use at exit: 0 bytes in 0 blocks
|
||||
==2060882== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060882==
|
||||
==2060882== All heap blocks were freed -- no leaks are possible
|
||||
==2060882==
|
||||
==2060882== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060882== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
33
p3-disas/tests/valgrind/B_simple.txt
Normal file
33
p3-disas/tests/valgrind/B_simple.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
==2061005== Memcheck, a memory error detector
|
||||
==2061005== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061005== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061005== Command: ../y86 -a -d inputs/simple.o
|
||||
==2061005==
|
||||
01 00 00 01 10 00 01 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 1 program headers, starting at offset 16 (0x10)
|
||||
There is no symbol table present
|
||||
There is no string table present
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0024 0x0017 0x0100 CODE R X
|
||||
Contents of memory from 0100 to 0117:
|
||||
0100 30 f0 68 24 00 00 00 00 00 00 30 f3 34 12 00 00
|
||||
0110 00 00 00 00 60 03 00
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 30 f0 68 24 00 00 00 00 00 00 | irmovq 0x2468, %rax
|
||||
0x10a: 30 f3 34 12 00 00 00 00 00 00 | irmovq 0x1234, %rbx
|
||||
0x114: 60 03 | addq %rax, %rbx
|
||||
0x116: 00 | halt
|
||||
|
||||
==2061005==
|
||||
==2061005== HEAP SUMMARY:
|
||||
==2061005== in use at exit: 0 bytes in 0 blocks
|
||||
==2061005== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061005==
|
||||
==2061005== All heap blocks were freed -- no leaks are possible
|
||||
==2061005==
|
||||
==2061005== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061005== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
31
p3-disas/tests/valgrind/B_simple_multi.txt
Normal file
31
p3-disas/tests/valgrind/B_simple_multi.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
==2061025== Memcheck, a memory error detector
|
||||
==2061025== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2061025== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2061025== Command: ../y86 -d inputs/simple_multi.o
|
||||
==2061025==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: 10 | nop
|
||||
0x101: 10 | nop
|
||||
0x102: 10 | nop
|
||||
0x103: | _start:
|
||||
0x103: 30 f0 68 24 00 00 00 00 00 00 | irmovq 0x2468, %rax
|
||||
0x10d: 30 f3 34 12 00 00 00 00 00 00 | irmovq 0x1234, %rbx
|
||||
0x117: 60 03 | addq %rax, %rbx
|
||||
0x119: 70 00 02 00 00 00 00 00 00 | jmp 0x200
|
||||
|
||||
0x200: | .pos 0x200 code
|
||||
0x200: 30 f1 78 56 00 00 00 00 00 00 | irmovq 0x5678, %rcx
|
||||
0x20a: 30 f2 14 15 00 00 00 00 00 00 | irmovq 0x1514, %rdx
|
||||
0x214: 61 21 | subq %rdx, %rcx
|
||||
0x216: 00 | halt
|
||||
|
||||
==2061025==
|
||||
==2061025== HEAP SUMMARY:
|
||||
==2061025== in use at exit: 0 bytes in 0 blocks
|
||||
==2061025== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2061025==
|
||||
==2061025== All heap blocks were freed -- no leaks are possible
|
||||
==2061025==
|
||||
==2061025== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2061025== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
23
p3-disas/tests/valgrind/B_tenbyte.txt
Normal file
23
p3-disas/tests/valgrind/B_tenbyte.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
==2060938== Memcheck, a memory error detector
|
||||
==2060938== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060938== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060938== Command: ../y86 -d inputs/tenbyte.o
|
||||
==2060938==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 30 f0 88 77 66 55 44 33 22 11 | irmovq 0x1122334455667788, %rax
|
||||
0x10a: 40 12 21 43 65 87 78 56 34 12 | rmmovq %rcx, 0x1234567887654321(%rdx)
|
||||
0x114: 50 12 78 56 34 12 21 43 65 87 | mrmovq 0x8765432112345678(%rdx), %rcx
|
||||
0x11e: 40 1f 21 43 65 87 78 56 34 12 | rmmovq %rcx, 0x1234567887654321
|
||||
0x128: 50 1f 78 56 34 12 21 43 65 87 | mrmovq 0x8765432112345678, %rcx
|
||||
|
||||
==2060938==
|
||||
==2060938== HEAP SUMMARY:
|
||||
==2060938== in use at exit: 0 bytes in 0 blocks
|
||||
==2060938== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060938==
|
||||
==2060938== All heap blocks were freed -- no leaks are possible
|
||||
==2060938==
|
||||
==2060938== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060938== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
25
p3-disas/tests/valgrind/C_cmov.txt
Normal file
25
p3-disas/tests/valgrind/C_cmov.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
==2060830== Memcheck, a memory error detector
|
||||
==2060830== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060830== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060830== Command: ../y86 -d inputs/cmov.o
|
||||
==2060830==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 20 01 | rrmovq %rax, %rcx
|
||||
0x102: 21 23 | cmovle %rdx, %rbx
|
||||
0x104: 22 45 | cmovl %rsp, %rbp
|
||||
0x106: 23 67 | cmove %rsi, %rdi
|
||||
0x108: 24 89 | cmovne %r8, %r9
|
||||
0x10a: 25 ab | cmovge %r10, %r11
|
||||
0x10c: 26 ce | cmovg %r12, %r14
|
||||
|
||||
==2060830==
|
||||
==2060830== HEAP SUMMARY:
|
||||
==2060830== in use at exit: 0 bytes in 0 blocks
|
||||
==2060830== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060830==
|
||||
==2060830== All heap blocks were freed -- no leaks are possible
|
||||
==2060830==
|
||||
==2060830== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060830== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
25
p3-disas/tests/valgrind/C_help.txt
Normal file
25
p3-disas/tests/valgrind/C_help.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
==2060717== Memcheck, a memory error detector
|
||||
==2060717== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060717== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060717== Command: ../y86 -h
|
||||
==2060717==
|
||||
Usage: ../y86 <option(s)> mini-elf-file
|
||||
Options are:
|
||||
-h Display usage
|
||||
-H Show the Mini-ELF header
|
||||
-a Show all with brief memory
|
||||
-f Show all with full memory
|
||||
-s Show the program headers
|
||||
-m Show the memory contents (brief)
|
||||
-M Show the memory contents (full)
|
||||
-d Disassemble code contents
|
||||
-D Disassemble data contents
|
||||
==2060717==
|
||||
==2060717== HEAP SUMMARY:
|
||||
==2060717== in use at exit: 0 bytes in 0 blocks
|
||||
==2060717== total heap usage: 1 allocs, 1 frees, 8,192 bytes allocated
|
||||
==2060717==
|
||||
==2060717== All heap blocks were freed -- no leaks are possible
|
||||
==2060717==
|
||||
==2060717== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060717== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
22
p3-disas/tests/valgrind/C_opq.txt
Normal file
22
p3-disas/tests/valgrind/C_opq.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
==2060854== Memcheck, a memory error detector
|
||||
==2060854== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060854== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060854== Command: ../y86 -d inputs/opq.o
|
||||
==2060854==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 60 23 | addq %rdx, %rbx
|
||||
0x102: 61 01 | subq %rax, %rcx
|
||||
0x104: 62 45 | andq %rsp, %rbp
|
||||
0x106: 63 67 | xorq %rsi, %rdi
|
||||
|
||||
==2060854==
|
||||
==2060854== HEAP SUMMARY:
|
||||
==2060854== in use at exit: 0 bytes in 0 blocks
|
||||
==2060854== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060854==
|
||||
==2060854== All heap blocks were freed -- no leaks are possible
|
||||
==2060854==
|
||||
==2060854== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060854== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
22
p3-disas/tests/valgrind/C_twobyte.txt
Normal file
22
p3-disas/tests/valgrind/C_twobyte.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
==2060757== Memcheck, a memory error detector
|
||||
==2060757== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060757== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060757== Command: ../y86 -d inputs/twobyte.o
|
||||
==2060757==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 20 01 | rrmovq %rax, %rcx
|
||||
0x102: 60 23 | addq %rdx, %rbx
|
||||
0x104: a0 6f | pushq %rsi
|
||||
0x106: b0 7f | popq %rdi
|
||||
|
||||
==2060757==
|
||||
==2060757== HEAP SUMMARY:
|
||||
==2060757== in use at exit: 0 bytes in 0 blocks
|
||||
==2060757== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060757==
|
||||
==2060757== All heap blocks were freed -- no leaks are possible
|
||||
==2060757==
|
||||
==2060757== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060757== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
21
p3-disas/tests/valgrind/D_onebyte.txt
Normal file
21
p3-disas/tests/valgrind/D_onebyte.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
==2060670== Memcheck, a memory error detector
|
||||
==2060670== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2060670== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2060670== Command: ../y86 -d inputs/onebyte.o
|
||||
==2060670==
|
||||
Disassembly of executable contents:
|
||||
0x100: | .pos 0x100 code
|
||||
0x100: | _start:
|
||||
0x100: 00 | halt
|
||||
0x101: 10 | nop
|
||||
0x102: 90 | ret
|
||||
|
||||
==2060670==
|
||||
==2060670== HEAP SUMMARY:
|
||||
==2060670== in use at exit: 0 bytes in 0 blocks
|
||||
==2060670== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2060670==
|
||||
==2060670== All heap blocks were freed -- no leaks are possible
|
||||
==2060670==
|
||||
==2060670== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2060670== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
Reference in New Issue
Block a user