Initial commit
This commit is contained in:
81
p2-load/tests/Makefile
Normal file
81
p2-load/tests/Makefile
Normal file
@@ -0,0 +1,81 @@
|
||||
#
|
||||
# Simple Test Makefile
|
||||
# Mike Lam, James Madison University, August 2016
|
||||
#
|
||||
# This version of the Makefile includes support for building a test suite. The
|
||||
# recommended framework is Check (http://check.sourceforge.net/). To build and
|
||||
# run the test suite, execute the "test" target. The test suite must be located
|
||||
# in a module called "testsuite". The MODS, LIBS, and OBJS variables work as
|
||||
# they do in the main Makefile.
|
||||
#
|
||||
# To change the default build target (which executes when you just type
|
||||
# "make"), change the right-hand side of the definition of the "default"
|
||||
# target.
|
||||
#
|
||||
# By default, this makefile will build the project with debugging symbols and
|
||||
# without optimization. To change this, edit or remove the "-g" and "-O0"
|
||||
# options in CFLAGS and LDFLAGS accordingly.
|
||||
#
|
||||
# By default, this makefile build the application using the GNU C compiler,
|
||||
# adhering to the C99 standard with all warnings enabled.
|
||||
|
||||
|
||||
# application-specific settings and run target
|
||||
|
||||
EXE=../y86
|
||||
TEST=testsuite
|
||||
MODS=public.o
|
||||
OBJS=../p1-check.o ../p2-load.o private.o
|
||||
LIBS=
|
||||
|
||||
UTESTOUT=utests.txt
|
||||
ITESTOUT=itests.txt
|
||||
|
||||
default: $(TEST)
|
||||
|
||||
$(EXE):
|
||||
make -C ../
|
||||
|
||||
test: utest itest
|
||||
@echo "========================================"
|
||||
|
||||
utest: $(EXE) $(TEST)
|
||||
@echo "========================================"
|
||||
@echo " UNIT TESTS"
|
||||
@./$(TEST) 2>/dev/null >$(UTESTOUT)
|
||||
@cat $(UTESTOUT) | sed -n -e '/Checks/,$$p' | sed -e 's/^private.*:[EF]://g'
|
||||
|
||||
itest: $(EXE)
|
||||
@echo "========================================"
|
||||
@echo " INTEGRATION TESTS"
|
||||
@./integration.sh | tee $(ITESTOUT)
|
||||
|
||||
|
||||
# compiler/linker settings
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -O0 -Wall --std=c99 -pedantic
|
||||
LDFLAGS=-g -O0
|
||||
|
||||
CFLAGS+=-I/opt/homebrew/include -Wno-gnu-zero-variadic-macro-arguments
|
||||
LDFLAGS+=-L/opt/homebrew/lib
|
||||
LIBS+=-lcheck -lm -lpthread
|
||||
|
||||
ifeq ($(shell uname -s),Linux)
|
||||
LIBS+=-lrt -lsubunit
|
||||
endif
|
||||
|
||||
|
||||
# build targets
|
||||
|
||||
$(TEST): $(TEST).o $(MODS) $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $(TEST) $^ $(LIBS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
|
||||
clean:
|
||||
rm -rf $(TEST) $(TEST).o $(MODS) $(UTESTOUT) $(ITESTOUT) outputs valgrind
|
||||
|
||||
.PHONY: default clean test unittest inttest
|
||||
|
||||
1
p2-load/tests/expected/A_bad_phdr_magic.txt
Normal file
1
p2-load/tests/expected/A_bad_phdr_magic.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
1
p2-load/tests/expected/A_bad_phdr_short.txt
Normal file
1
p2-load/tests/expected/A_bad_phdr_short.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
1
p2-load/tests/expected/A_bad_phdr_vaddr.txt
Normal file
1
p2-load/tests/expected/A_bad_phdr_vaddr.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
9
p2-load/tests/expected/A_brief_full.txt
Normal file
9
p2-load/tests/expected/A_brief_full.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
9
p2-load/tests/expected/A_extra_params.txt
Normal file
9
p2-load/tests/expected/A_extra_params.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
9
p2-load/tests/expected/A_full_conflict.txt
Normal file
9
p2-load/tests/expected/A_full_conflict.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
9
p2-load/tests/expected/A_mem_conflict.txt
Normal file
9
p2-load/tests/expected/A_mem_conflict.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
9
p2-load/tests/expected/A_missing_file.txt
Normal file
9
p2-load/tests/expected/A_missing_file.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/expected/A_no_flags.txt
Normal file
0
p2-load/tests/expected/A_no_flags.txt
Normal file
1
p2-load/tests/expected/A_no_flags_bad.txt
Normal file
1
p2-load/tests/expected/A_no_flags_bad.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
17
p2-load/tests/expected/A_unaligned1.txt
Normal file
17
p2-load/tests/expected/A_unaligned1.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
18
p2-load/tests/expected/A_unaligned2.txt
Normal file
18
p2-load/tests/expected/A_unaligned2.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
14
p2-load/tests/expected/B_all_flags.txt
Normal file
14
p2-load/tests/expected/B_all_flags.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
01 00 00 01 10 00 02 00 58 00 70 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 2 program headers, starting at offset 16 (0x10)
|
||||
There is a symbol table starting at offset 88 (0x58)
|
||||
There is a string table starting at offset 112 (0x70)
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0100 to 0115:
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00
|
||||
Contents of memory from 0200 to 020b:
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00
|
||||
3
p2-load/tests/expected/B_repeated.txt
Normal file
3
p2-load/tests/expected/B_repeated.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
27
p2-load/tests/expected/B_stack.txt
Normal file
27
p2-load/tests/expected/B_stack.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
01 00 00 01 10 00 05 00 f4 00 16 01 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 5 program headers, starting at offset 16 (0x10)
|
||||
There is a symbol table starting at offset 244 (0xf4)
|
||||
There is a string table starting at offset 278 (0x116)
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0074 0x001e 0x0100 CODE R X
|
||||
01 0x0092 0x0032 0x0200 CODE R X
|
||||
02 0x00c4 0x000d 0x0300 DATA RW
|
||||
03 0x00d1 0x0023 0x0400 DATA R
|
||||
04 0x00f4 0x0000 0x0f00 STACK RW
|
||||
Contents of memory from 0100 to 011e:
|
||||
0100 30 f4 00 0f 00 00 00 00 00 00 30 f5 00 0f 00 00
|
||||
0110 00 00 00 00 80 00 02 00 00 00 00 00 00 00
|
||||
Contents of memory from 0200 to 0232:
|
||||
0200 30 f0 02 03 00 00 00 00 00 00 50 30 00 00 00 00
|
||||
0210 00 00 00 00 20 31 a0 0f b0 3f c0 c1 c5 40 13 fd
|
||||
0220 ff ff ff 00 00 00 00 60 31 70 1d 02 00 00 00 00
|
||||
0230 00 00
|
||||
Contents of memory from 0300 to 030d:
|
||||
0300 bb aa 0f 0a 00 00 00 00 00 00 00 dd cc
|
||||
Contents of memory from 0400 to 0423:
|
||||
0400 68 65 6c 6c 6f 20 77 6f 72 6c 64 00 67 6f 6f 64
|
||||
0410 00 79 61 64 64 61 20 79 61 64 64 61 20 79 61 64
|
||||
0420 64 61 00
|
||||
Contents of memory from 0f00 to 0f00:
|
||||
5
p2-load/tests/expected/B_stripped_m.txt
Normal file
5
p2-load/tests/expected/B_stripped_m.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Contents of memory from 0100 to 0115:
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00
|
||||
Contents of memory from 0200 to 020b:
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00
|
||||
11
p2-load/tests/expected/B_stripped_mH.txt
Normal file
11
p2-load/tests/expected/B_stripped_mH.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
01 00 00 01 10 00 02 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 2 program headers, starting at offset 16 (0x10)
|
||||
There is no symbol table present
|
||||
There is no string table present
|
||||
Contents of memory from 0100 to 0115:
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00
|
||||
Contents of memory from 0200 to 020b:
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00
|
||||
9
p2-load/tests/expected/C_help.txt
Normal file
9
p2-load/tests/expected/C_help.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
5
p2-load/tests/expected/C_more_flags_s.txt
Normal file
5
p2-load/tests/expected/C_more_flags_s.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0060 0x0015 0x0100 DATA W
|
||||
01 0x0075 0x000b 0x0200 DATA X
|
||||
02 0x0080 0x0015 0x0300 DATA WX
|
||||
03 0x0090 0x000b 0x0200 DATA RWX
|
||||
268
p2-load/tests/expected/C_multiseg_f.txt
Normal file
268
p2-load/tests/expected/C_multiseg_f.txt
Normal file
@@ -0,0 +1,268 @@
|
||||
01 00 00 01 10 00 04 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 4 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 0x0060 0x0015 0x0100 CODE R X
|
||||
01 0x0075 0x000b 0x0200 DATA RW
|
||||
02 0x0080 0x0015 0x0300 CODE R X
|
||||
03 0x0090 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0000 to 1000:
|
||||
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0200 70 08 01 00 00 aa bb cc dd 00 00 00 00 00 00 00
|
||||
0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0300 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0310 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0510 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ab0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0af0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ff0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
268
p2-load/tests/expected/C_multiseg_fsHM.txt
Normal file
268
p2-load/tests/expected/C_multiseg_fsHM.txt
Normal file
@@ -0,0 +1,268 @@
|
||||
01 00 00 01 10 00 04 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 4 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 0x0060 0x0015 0x0100 CODE R X
|
||||
01 0x0075 0x000b 0x0200 DATA RW
|
||||
02 0x0080 0x0015 0x0300 CODE R X
|
||||
03 0x0090 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0000 to 1000:
|
||||
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0200 70 08 01 00 00 aa bb cc dd 00 00 00 00 00 00 00
|
||||
0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0300 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0310 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0510 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ab0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0af0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ff0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
11
p2-load/tests/expected/C_multiseg_sH.txt
Normal file
11
p2-load/tests/expected/C_multiseg_sH.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
01 00 00 01 10 00 04 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 4 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 0x0060 0x0015 0x0100 CODE R X
|
||||
01 0x0075 0x000b 0x0200 DATA RW
|
||||
02 0x0080 0x0015 0x0300 CODE R X
|
||||
03 0x0090 0x000b 0x0200 DATA RW
|
||||
6
p2-load/tests/expected/C_simple_H.txt
Normal file
6
p2-load/tests/expected/C_simple_H.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
01 00 00 01 10 00 02 00 58 00 70 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 2 program headers, starting at offset 16 (0x10)
|
||||
There is a symbol table starting at offset 88 (0x58)
|
||||
There is a string table starting at offset 112 (0x70)
|
||||
3
p2-load/tests/expected/C_simple_s.txt
Normal file
3
p2-load/tests/expected/C_simple_s.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
260
p2-load/tests/expected/C_stripped_sM.txt
Normal file
260
p2-load/tests/expected/C_stripped_sM.txt
Normal file
@@ -0,0 +1,260 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0000 to 1000:
|
||||
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00 00 00 00 00 00
|
||||
0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0310 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0510 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ab0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0af0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ff0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
BIN
p2-load/tests/inputs/bad-phdr_magic.o
Normal file
BIN
p2-load/tests/inputs/bad-phdr_magic.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/bad-phdr_short.o
Normal file
BIN
p2-load/tests/inputs/bad-phdr_short.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/bad-phdr_vaddr.o
Normal file
BIN
p2-load/tests/inputs/bad-phdr_vaddr.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/moreflags.o
Normal file
BIN
p2-load/tests/inputs/moreflags.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/multiseg.o
Normal file
BIN
p2-load/tests/inputs/multiseg.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/simple.o
Normal file
BIN
p2-load/tests/inputs/simple.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/stack.o
Normal file
BIN
p2-load/tests/inputs/stack.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/stripped.o
Normal file
BIN
p2-load/tests/inputs/stripped.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/unaligned.o
Normal file
BIN
p2-load/tests/inputs/unaligned.o
Normal file
Binary file not shown.
BIN
p2-load/tests/inputs/unaligned2.o
Normal file
BIN
p2-load/tests/inputs/unaligned2.o
Normal file
Binary file not shown.
87
p2-load/tests/integration.sh
Normal file
87
p2-load/tests/integration.sh
Normal file
@@ -0,0 +1,87 @@
|
||||
#!/bin/bash
|
||||
|
||||
# extract executable name from Makefile
|
||||
EXE=$(grep "EXE=" Makefile | sed -e "s/EXE=//")
|
||||
|
||||
# detect timeout utility (i.e., "timeout" on Linux and "gtimeout" on MacOS)
|
||||
# and set timeout interval
|
||||
TIMEOUT="timeout"
|
||||
TIMEOUT_INTERVAL="3s"
|
||||
$TIMEOUT --help &>/dev/null
|
||||
if [[ $? -ne 0 ]]; then
|
||||
TIMEOUT="gtimeout"
|
||||
fi
|
||||
|
||||
# Valgrind additional output flags
|
||||
VG_FLAGS="--leak-check=full --track-origins=yes"
|
||||
|
||||
function run_test {
|
||||
|
||||
# parameters
|
||||
TAG=$1
|
||||
ARGS=$2
|
||||
PTAG=$(printf '%-30s' "$TAG")
|
||||
|
||||
# file paths
|
||||
OUTPUT=outputs/$TAG.txt
|
||||
DIFF=outputs/$TAG.diff
|
||||
EXPECT=expected/$TAG.txt
|
||||
VALGRND=valgrind/$TAG.txt
|
||||
|
||||
# run test with timeout
|
||||
$TIMEOUT $TIMEOUT_INTERVAL $EXE $ARGS 2>/dev/null >"$OUTPUT"
|
||||
if [ "$?" -lt 124 ]; then
|
||||
|
||||
# no timeout; compare output to the expected version
|
||||
diff -u "$OUTPUT" "$EXPECT" >"$DIFF"
|
||||
if [ -s "$DIFF" ]; then
|
||||
|
||||
# try alternative solution (if it exists)
|
||||
EXPECT=expected/$TAG-2.txt
|
||||
if [ -e "$EXPECT" ]; then
|
||||
diff -u "$OUTPUT" "$EXPECT" >"$DIFF"
|
||||
if [ -s "$DIFF" ]; then
|
||||
echo "$PTAG FAIL (see ${TPREFIX}$DIFF for details)"
|
||||
else
|
||||
echo "$PTAG pass"
|
||||
fi
|
||||
else
|
||||
echo "$PTAG FAIL (see ${TPREFIX}$DIFF for details)"
|
||||
fi
|
||||
else
|
||||
echo "$PTAG pass"
|
||||
fi
|
||||
|
||||
# run valgrind
|
||||
$TIMEOUT $TIMEOUT_INTERVAL valgrind $VG_FLAGS $EXE $ARGS &>$VALGRND
|
||||
else
|
||||
echo "$PTAG FAIL (crash or timeout)"
|
||||
fi
|
||||
}
|
||||
|
||||
# initialize output folders
|
||||
mkdir -p outputs
|
||||
mkdir -p valgrind
|
||||
rm -f outputs/* valgrind/*
|
||||
|
||||
# run individual tests
|
||||
source itests.include
|
||||
|
||||
# check for memory leaks
|
||||
LEAK=`cat valgrind/*.txt | grep 'definitely lost' | grep -v ' 0 bytes in 0 blocks'`
|
||||
if [ -z "$LEAK" ]; then
|
||||
echo "No memory leak found."
|
||||
else
|
||||
echo "Memory leak(s) found. See files listed below for details."
|
||||
grep 'definitely lost' valgrind/*.txt | sed -e 's/:.*$//g' | awk "{print \" - ${TPREFIX}\" \$0}"
|
||||
fi
|
||||
|
||||
# check for uninitialized values
|
||||
LEAK=`cat valgrind/*.txt | grep 'uninitialised value'`
|
||||
if [ -z "$LEAK" ]; then
|
||||
echo "No uninitialized value found."
|
||||
else
|
||||
echo "Uninitialized value(s) found. See files listed below for details."
|
||||
grep 'uninitialised value' valgrind/*.txt | sed -e 's/:.*$//g' | awk "{print \" - ${TPREFIX}\" \$0}"
|
||||
fi
|
||||
|
||||
30
p2-load/tests/itests.include
Normal file
30
p2-load/tests/itests.include
Normal file
@@ -0,0 +1,30 @@
|
||||
# list of integration tests
|
||||
# format: run_test <TAG> <ARGS>
|
||||
# <TAG> used as the root for all filenames (i.e., "expected/$TAG.txt")
|
||||
# <ARGS> command-line arguments to test
|
||||
|
||||
run_test C_help "-h"
|
||||
run_test C_simple_H "-H inputs/simple.o"
|
||||
run_test C_simple_s "-s inputs/simple.o"
|
||||
run_test C_multiseg_sH "-sH inputs/multiseg.o"
|
||||
run_test C_multiseg_f "-f inputs/multiseg.o"
|
||||
run_test C_multiseg_fsHM "-fsHM inputs/multiseg.o"
|
||||
run_test C_stripped_sM "-sM inputs/stripped.o"
|
||||
run_test C_more_flags_s "-s inputs/moreflags.o"
|
||||
run_test B_stripped_m "-m inputs/stripped.o"
|
||||
run_test B_stripped_mH "-mH inputs/stripped.o"
|
||||
run_test B_all_flags "-Hsma inputs/simple.o"
|
||||
run_test B_repeated "-s -s -s inputs/simple.o"
|
||||
run_test B_stack "-a inputs/stack.o"
|
||||
run_test A_brief_full "-m -M inputs/simple.o"
|
||||
run_test A_bad_phdr_vaddr "-m inputs/bad-phdr_vaddr.o"
|
||||
run_test A_bad_phdr_short "-s inputs/bad-phdr_short.o"
|
||||
run_test A_bad_phdr_magic "-s inputs/bad-phdr_magic.o"
|
||||
run_test A_no_flags "inputs/simple.o"
|
||||
run_test A_no_flags_bad "inputs/bad-phdr_short.o"
|
||||
run_test A_missing_file "-a"
|
||||
run_test A_extra_params "-a inputs/simple.o extra params"
|
||||
run_test A_mem_conflict "-m -M inputs/simple.o"
|
||||
run_test A_full_conflict "-m -f inputs/simple.o"
|
||||
run_test A_unaligned1 "-a inputs/unaligned.o"
|
||||
run_test A_unaligned2 "-a inputs/unaligned2.o"
|
||||
27
p2-load/tests/itests.txt
Normal file
27
p2-load/tests/itests.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
C_help pass
|
||||
C_simple_H pass
|
||||
C_simple_s pass
|
||||
C_multiseg_sH pass
|
||||
C_multiseg_f pass
|
||||
C_multiseg_fsHM pass
|
||||
C_stripped_sM pass
|
||||
C_more_flags_s pass
|
||||
B_stripped_m pass
|
||||
B_stripped_mH pass
|
||||
B_all_flags pass
|
||||
B_repeated pass
|
||||
B_stack pass
|
||||
A_brief_full pass
|
||||
A_bad_phdr_vaddr pass
|
||||
A_bad_phdr_short pass
|
||||
A_bad_phdr_magic pass
|
||||
A_no_flags pass
|
||||
A_no_flags_bad pass
|
||||
A_missing_file pass
|
||||
A_extra_params pass
|
||||
A_mem_conflict pass
|
||||
A_full_conflict pass
|
||||
A_unaligned1 pass
|
||||
A_unaligned2 pass
|
||||
No memory leak found.
|
||||
No uninitialized value found.
|
||||
0
p2-load/tests/outputs/A_bad_phdr_magic.diff
Normal file
0
p2-load/tests/outputs/A_bad_phdr_magic.diff
Normal file
1
p2-load/tests/outputs/A_bad_phdr_magic.txt
Normal file
1
p2-load/tests/outputs/A_bad_phdr_magic.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
0
p2-load/tests/outputs/A_bad_phdr_short.diff
Normal file
0
p2-load/tests/outputs/A_bad_phdr_short.diff
Normal file
1
p2-load/tests/outputs/A_bad_phdr_short.txt
Normal file
1
p2-load/tests/outputs/A_bad_phdr_short.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
0
p2-load/tests/outputs/A_bad_phdr_vaddr.diff
Normal file
0
p2-load/tests/outputs/A_bad_phdr_vaddr.diff
Normal file
1
p2-load/tests/outputs/A_bad_phdr_vaddr.txt
Normal file
1
p2-load/tests/outputs/A_bad_phdr_vaddr.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
0
p2-load/tests/outputs/A_brief_full.diff
Normal file
0
p2-load/tests/outputs/A_brief_full.diff
Normal file
9
p2-load/tests/outputs/A_brief_full.txt
Normal file
9
p2-load/tests/outputs/A_brief_full.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/outputs/A_extra_params.diff
Normal file
0
p2-load/tests/outputs/A_extra_params.diff
Normal file
9
p2-load/tests/outputs/A_extra_params.txt
Normal file
9
p2-load/tests/outputs/A_extra_params.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/outputs/A_full_conflict.diff
Normal file
0
p2-load/tests/outputs/A_full_conflict.diff
Normal file
9
p2-load/tests/outputs/A_full_conflict.txt
Normal file
9
p2-load/tests/outputs/A_full_conflict.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/outputs/A_mem_conflict.diff
Normal file
0
p2-load/tests/outputs/A_mem_conflict.diff
Normal file
9
p2-load/tests/outputs/A_mem_conflict.txt
Normal file
9
p2-load/tests/outputs/A_mem_conflict.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/outputs/A_missing_file.diff
Normal file
0
p2-load/tests/outputs/A_missing_file.diff
Normal file
9
p2-load/tests/outputs/A_missing_file.txt
Normal file
9
p2-load/tests/outputs/A_missing_file.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/outputs/A_no_flags.diff
Normal file
0
p2-load/tests/outputs/A_no_flags.diff
Normal file
0
p2-load/tests/outputs/A_no_flags.txt
Normal file
0
p2-load/tests/outputs/A_no_flags.txt
Normal file
0
p2-load/tests/outputs/A_no_flags_bad.diff
Normal file
0
p2-load/tests/outputs/A_no_flags_bad.diff
Normal file
1
p2-load/tests/outputs/A_no_flags_bad.txt
Normal file
1
p2-load/tests/outputs/A_no_flags_bad.txt
Normal file
@@ -0,0 +1 @@
|
||||
Failed to read file
|
||||
0
p2-load/tests/outputs/A_unaligned1.diff
Normal file
0
p2-load/tests/outputs/A_unaligned1.diff
Normal file
17
p2-load/tests/outputs/A_unaligned1.txt
Normal file
17
p2-load/tests/outputs/A_unaligned1.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
0
p2-load/tests/outputs/A_unaligned2.diff
Normal file
0
p2-load/tests/outputs/A_unaligned2.diff
Normal file
18
p2-load/tests/outputs/A_unaligned2.txt
Normal file
18
p2-load/tests/outputs/A_unaligned2.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
0
p2-load/tests/outputs/B_all_flags.diff
Normal file
0
p2-load/tests/outputs/B_all_flags.diff
Normal file
14
p2-load/tests/outputs/B_all_flags.txt
Normal file
14
p2-load/tests/outputs/B_all_flags.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
01 00 00 01 10 00 02 00 58 00 70 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 2 program headers, starting at offset 16 (0x10)
|
||||
There is a symbol table starting at offset 88 (0x58)
|
||||
There is a string table starting at offset 112 (0x70)
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0100 to 0115:
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00
|
||||
Contents of memory from 0200 to 020b:
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00
|
||||
0
p2-load/tests/outputs/B_repeated.diff
Normal file
0
p2-load/tests/outputs/B_repeated.diff
Normal file
3
p2-load/tests/outputs/B_repeated.txt
Normal file
3
p2-load/tests/outputs/B_repeated.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
0
p2-load/tests/outputs/B_stack.diff
Normal file
0
p2-load/tests/outputs/B_stack.diff
Normal file
27
p2-load/tests/outputs/B_stack.txt
Normal file
27
p2-load/tests/outputs/B_stack.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
01 00 00 01 10 00 05 00 f4 00 16 01 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 5 program headers, starting at offset 16 (0x10)
|
||||
There is a symbol table starting at offset 244 (0xf4)
|
||||
There is a string table starting at offset 278 (0x116)
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0074 0x001e 0x0100 CODE R X
|
||||
01 0x0092 0x0032 0x0200 CODE R X
|
||||
02 0x00c4 0x000d 0x0300 DATA RW
|
||||
03 0x00d1 0x0023 0x0400 DATA R
|
||||
04 0x00f4 0x0000 0x0f00 STACK RW
|
||||
Contents of memory from 0100 to 011e:
|
||||
0100 30 f4 00 0f 00 00 00 00 00 00 30 f5 00 0f 00 00
|
||||
0110 00 00 00 00 80 00 02 00 00 00 00 00 00 00
|
||||
Contents of memory from 0200 to 0232:
|
||||
0200 30 f0 02 03 00 00 00 00 00 00 50 30 00 00 00 00
|
||||
0210 00 00 00 00 20 31 a0 0f b0 3f c0 c1 c5 40 13 fd
|
||||
0220 ff ff ff 00 00 00 00 60 31 70 1d 02 00 00 00 00
|
||||
0230 00 00
|
||||
Contents of memory from 0300 to 030d:
|
||||
0300 bb aa 0f 0a 00 00 00 00 00 00 00 dd cc
|
||||
Contents of memory from 0400 to 0423:
|
||||
0400 68 65 6c 6c 6f 20 77 6f 72 6c 64 00 67 6f 6f 64
|
||||
0410 00 79 61 64 64 61 20 79 61 64 64 61 20 79 61 64
|
||||
0420 64 61 00
|
||||
Contents of memory from 0f00 to 0f00:
|
||||
0
p2-load/tests/outputs/B_stripped_m.diff
Normal file
0
p2-load/tests/outputs/B_stripped_m.diff
Normal file
5
p2-load/tests/outputs/B_stripped_m.txt
Normal file
5
p2-load/tests/outputs/B_stripped_m.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Contents of memory from 0100 to 0115:
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00
|
||||
Contents of memory from 0200 to 020b:
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00
|
||||
0
p2-load/tests/outputs/B_stripped_mH.diff
Normal file
0
p2-load/tests/outputs/B_stripped_mH.diff
Normal file
11
p2-load/tests/outputs/B_stripped_mH.txt
Normal file
11
p2-load/tests/outputs/B_stripped_mH.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
01 00 00 01 10 00 02 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 2 program headers, starting at offset 16 (0x10)
|
||||
There is no symbol table present
|
||||
There is no string table present
|
||||
Contents of memory from 0100 to 0115:
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00
|
||||
Contents of memory from 0200 to 020b:
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00
|
||||
0
p2-load/tests/outputs/C_help.diff
Normal file
0
p2-load/tests/outputs/C_help.diff
Normal file
9
p2-load/tests/outputs/C_help.txt
Normal file
9
p2-load/tests/outputs/C_help.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
0
p2-load/tests/outputs/C_more_flags_s.diff
Normal file
0
p2-load/tests/outputs/C_more_flags_s.diff
Normal file
5
p2-load/tests/outputs/C_more_flags_s.txt
Normal file
5
p2-load/tests/outputs/C_more_flags_s.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0060 0x0015 0x0100 DATA W
|
||||
01 0x0075 0x000b 0x0200 DATA X
|
||||
02 0x0080 0x0015 0x0300 DATA WX
|
||||
03 0x0090 0x000b 0x0200 DATA RWX
|
||||
0
p2-load/tests/outputs/C_multiseg_f.diff
Normal file
0
p2-load/tests/outputs/C_multiseg_f.diff
Normal file
268
p2-load/tests/outputs/C_multiseg_f.txt
Normal file
268
p2-load/tests/outputs/C_multiseg_f.txt
Normal file
@@ -0,0 +1,268 @@
|
||||
01 00 00 01 10 00 04 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 4 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 0x0060 0x0015 0x0100 CODE R X
|
||||
01 0x0075 0x000b 0x0200 DATA RW
|
||||
02 0x0080 0x0015 0x0300 CODE R X
|
||||
03 0x0090 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0000 to 1000:
|
||||
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0200 70 08 01 00 00 aa bb cc dd 00 00 00 00 00 00 00
|
||||
0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0300 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0310 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0510 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ab0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0af0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ff0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0
p2-load/tests/outputs/C_multiseg_fsHM.diff
Normal file
0
p2-load/tests/outputs/C_multiseg_fsHM.diff
Normal file
268
p2-load/tests/outputs/C_multiseg_fsHM.txt
Normal file
268
p2-load/tests/outputs/C_multiseg_fsHM.txt
Normal file
@@ -0,0 +1,268 @@
|
||||
01 00 00 01 10 00 04 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 4 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 0x0060 0x0015 0x0100 CODE R X
|
||||
01 0x0075 0x000b 0x0200 DATA RW
|
||||
02 0x0080 0x0015 0x0300 CODE R X
|
||||
03 0x0090 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0000 to 1000:
|
||||
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0200 70 08 01 00 00 aa bb cc dd 00 00 00 00 00 00 00
|
||||
0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0300 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0310 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0510 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ab0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0af0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ff0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0
p2-load/tests/outputs/C_multiseg_sH.diff
Normal file
0
p2-load/tests/outputs/C_multiseg_sH.diff
Normal file
11
p2-load/tests/outputs/C_multiseg_sH.txt
Normal file
11
p2-load/tests/outputs/C_multiseg_sH.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
01 00 00 01 10 00 04 00 00 00 00 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 4 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 0x0060 0x0015 0x0100 CODE R X
|
||||
01 0x0075 0x000b 0x0200 DATA RW
|
||||
02 0x0080 0x0015 0x0300 CODE R X
|
||||
03 0x0090 0x000b 0x0200 DATA RW
|
||||
0
p2-load/tests/outputs/C_simple_H.diff
Normal file
0
p2-load/tests/outputs/C_simple_H.diff
Normal file
6
p2-load/tests/outputs/C_simple_H.txt
Normal file
6
p2-load/tests/outputs/C_simple_H.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
01 00 00 01 10 00 02 00 58 00 70 00 45 4c 46 00
|
||||
Mini-ELF version 1
|
||||
Entry point 0x100
|
||||
There are 2 program headers, starting at offset 16 (0x10)
|
||||
There is a symbol table starting at offset 88 (0x58)
|
||||
There is a string table starting at offset 112 (0x70)
|
||||
0
p2-load/tests/outputs/C_simple_s.diff
Normal file
0
p2-load/tests/outputs/C_simple_s.diff
Normal file
3
p2-load/tests/outputs/C_simple_s.txt
Normal file
3
p2-load/tests/outputs/C_simple_s.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
0
p2-load/tests/outputs/C_stripped_sM.diff
Normal file
0
p2-load/tests/outputs/C_stripped_sM.diff
Normal file
260
p2-load/tests/outputs/C_stripped_sM.txt
Normal file
260
p2-load/tests/outputs/C_stripped_sM.txt
Normal file
@@ -0,0 +1,260 @@
|
||||
Segment Offset Size VirtAddr Type Flags
|
||||
00 0x0038 0x0015 0x0100 CODE R X
|
||||
01 0x004d 0x000b 0x0200 DATA RW
|
||||
Contents of memory from 0000 to 1000:
|
||||
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0100 30 f3 0f 00 00 00 20 31 40 13 fd ff ff ff 60 31
|
||||
0110 70 08 01 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
01f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0200 aa bb cc dd 00 00 00 dd 00 00 00 00 00 00 00 00
|
||||
0210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0270 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0310 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0330 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0350 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
03f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
04f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0510 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0550 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0570 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0590 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
05f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
06f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
07f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
08f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
09f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0a90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ab0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0af0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0b90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0bf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0c90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0cf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0d90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0db0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0df0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0eb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ef0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0f90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
0ff0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
BIN
p2-load/tests/private.o
Normal file
BIN
p2-load/tests/private.o
Normal file
Binary file not shown.
87
p2-load/tests/public.c
Normal file
87
p2-load/tests/public.c
Normal file
@@ -0,0 +1,87 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <check.h>
|
||||
|
||||
#include "../p2-load.h"
|
||||
|
||||
/* check read_phdr (code section) */
|
||||
START_TEST (C_read_phdr_code)
|
||||
{
|
||||
FILE *fp = fopen ("inputs/stripped.o", "r");
|
||||
uint16_t offset = 0x10;
|
||||
elf_phdr_t phdr;
|
||||
bool rc = false;
|
||||
ck_assert (fp != NULL);
|
||||
|
||||
rc = read_phdr (fp, offset, &phdr);
|
||||
ck_assert (rc == true);
|
||||
ck_assert (phdr.p_offset == 0x38);
|
||||
ck_assert (phdr.p_vaddr == 0x100);
|
||||
ck_assert (phdr.p_size == 0x15);
|
||||
ck_assert (phdr.p_type == CODE);
|
||||
ck_assert (phdr.p_flags == 0x5); // 101
|
||||
ck_assert (phdr.magic == 0xDEADBEEF);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
/* check read_phdr (data section) */
|
||||
START_TEST (C_read_phdr_data)
|
||||
{
|
||||
FILE *fp = fopen ("inputs/stripped.o", "r");
|
||||
uint16_t offset = 0x10 + sizeof(elf_phdr_t);
|
||||
elf_phdr_t phdr;
|
||||
bool rc = false;
|
||||
ck_assert (fp != NULL);
|
||||
|
||||
rc = read_phdr (fp, offset, &phdr);
|
||||
ck_assert (rc == true);
|
||||
ck_assert (phdr.p_offset == 0x4d);
|
||||
ck_assert (phdr.p_vaddr == 0x200);
|
||||
ck_assert (phdr.p_size == 0x0b);
|
||||
ck_assert (phdr.p_type == DATA);
|
||||
ck_assert (phdr.p_flags == 0x6); // 110
|
||||
ck_assert (phdr.magic == 0xDEADBEEF);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
/* check load_segment */
|
||||
START_TEST (C_load_segment)
|
||||
{
|
||||
FILE *fp = fopen ("inputs/simple.o", "r");
|
||||
ck_assert (fp != NULL);
|
||||
byte_t *memory = (byte_t*) calloc (32, sizeof (uint8_t));
|
||||
elf_phdr_t phdr;
|
||||
phdr.p_offset = 0x30;
|
||||
phdr.p_vaddr = 0x10;
|
||||
phdr.p_size = 0x10;
|
||||
phdr.p_type = DATA;
|
||||
phdr.p_flags = 0x6; // 110
|
||||
phdr.magic = 0xDEADBEEF;
|
||||
uint8_t expected[] = { 0, 0, 6, 0, 0xef, 0xbe, 0xad, 0xde,
|
||||
0x30, 0xf3, 0xf, 0, 0, 0, 0x20, 0x31 };
|
||||
size_t i = 0;
|
||||
|
||||
bool rc = load_segment (fp, memory, &phdr);
|
||||
ck_assert (rc == true);
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
ck_assert (memory[i] == 0);
|
||||
}
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
ck_assert (memory[i+16] == expected[i]);
|
||||
}
|
||||
}
|
||||
END_TEST
|
||||
|
||||
void public_tests (Suite *s)
|
||||
{
|
||||
TCase *tc_public = tcase_create ("Public");
|
||||
tcase_add_test (tc_public, C_read_phdr_code);
|
||||
tcase_add_test (tc_public, C_read_phdr_data);
|
||||
tcase_add_test (tc_public, C_load_segment);
|
||||
suite_add_tcase (s, tc_public);
|
||||
}
|
||||
|
||||
BIN
p2-load/tests/public.o
Normal file
BIN
p2-load/tests/public.o
Normal file
Binary file not shown.
BIN
p2-load/tests/testsuite
Normal file
BIN
p2-load/tests/testsuite
Normal file
Binary file not shown.
34
p2-load/tests/testsuite.c
Normal file
34
p2-load/tests/testsuite.c
Normal file
@@ -0,0 +1,34 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <check.h>
|
||||
|
||||
extern void public_tests (Suite *s);
|
||||
extern void private_tests (Suite *s);
|
||||
|
||||
Suite * test_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("Default");
|
||||
public_tests (s);
|
||||
private_tests (s);
|
||||
return s;
|
||||
}
|
||||
|
||||
void run_testsuite (void)
|
||||
{
|
||||
Suite *s = test_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
srunner_free (sr);
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
srand((unsigned)time(NULL));
|
||||
run_testsuite ();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
BIN
p2-load/tests/testsuite.o
Normal file
BIN
p2-load/tests/testsuite.o
Normal file
Binary file not shown.
2
p2-load/tests/utests.txt
Normal file
2
p2-load/tests/utests.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Running suite(s): Default
|
||||
100%: Checks: 12, Failures: 0, Errors: 0
|
||||
15
p2-load/tests/valgrind/A_bad_phdr_magic.txt
Normal file
15
p2-load/tests/valgrind/A_bad_phdr_magic.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2765188== Memcheck, a memory error detector
|
||||
==2765188== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2765188== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2765188== Command: ../y86 -s inputs/bad-phdr_magic.o
|
||||
==2765188==
|
||||
Failed to read file
|
||||
==2765188==
|
||||
==2765188== HEAP SUMMARY:
|
||||
==2765188== in use at exit: 0 bytes in 0 blocks
|
||||
==2765188== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2765188==
|
||||
==2765188== All heap blocks were freed -- no leaks are possible
|
||||
==2765188==
|
||||
==2765188== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2765188== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
15
p2-load/tests/valgrind/A_bad_phdr_short.txt
Normal file
15
p2-load/tests/valgrind/A_bad_phdr_short.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2765178== Memcheck, a memory error detector
|
||||
==2765178== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2765178== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2765178== Command: ../y86 -s inputs/bad-phdr_short.o
|
||||
==2765178==
|
||||
Failed to read file
|
||||
==2765178==
|
||||
==2765178== HEAP SUMMARY:
|
||||
==2765178== in use at exit: 0 bytes in 0 blocks
|
||||
==2765178== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2765178==
|
||||
==2765178== All heap blocks were freed -- no leaks are possible
|
||||
==2765178==
|
||||
==2765178== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2765178== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
15
p2-load/tests/valgrind/A_bad_phdr_vaddr.txt
Normal file
15
p2-load/tests/valgrind/A_bad_phdr_vaddr.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
==2765155== Memcheck, a memory error detector
|
||||
==2765155== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2765155== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2765155== Command: ../y86 -m inputs/bad-phdr_vaddr.o
|
||||
==2765155==
|
||||
Failed to read file
|
||||
==2765155==
|
||||
==2765155== HEAP SUMMARY:
|
||||
==2765155== in use at exit: 0 bytes in 0 blocks
|
||||
==2765155== total heap usage: 3 allocs, 3 frees, 16,856 bytes allocated
|
||||
==2765155==
|
||||
==2765155== All heap blocks were freed -- no leaks are possible
|
||||
==2765155==
|
||||
==2765155== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2765155== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
23
p2-load/tests/valgrind/A_brief_full.txt
Normal file
23
p2-load/tests/valgrind/A_brief_full.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
==2765141== Memcheck, a memory error detector
|
||||
==2765141== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
|
||||
==2765141== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
|
||||
==2765141== Command: ../y86 -m -M inputs/simple.o
|
||||
==2765141==
|
||||
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)
|
||||
==2765141==
|
||||
==2765141== HEAP SUMMARY:
|
||||
==2765141== in use at exit: 0 bytes in 0 blocks
|
||||
==2765141== total heap usage: 1 allocs, 1 frees, 8,192 bytes allocated
|
||||
==2765141==
|
||||
==2765141== All heap blocks were freed -- no leaks are possible
|
||||
==2765141==
|
||||
==2765141== For lists of detected and suppressed errors, rerun with: -s
|
||||
==2765141== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user