Debian Codegraph @

test/README.testcases

raw
1 The following binary test cases are included in the dwarfdump
2 distribution to provide an unchanging means of verifying that
3 dwarfdump basically works. November 5, 2019.
4
5 Each .base is the inital 500 lines produced by dwarfdump
6 as a baseline to check against the latest compiled dwarfdump
7 output.
8
9
10 testobjLE32PE.test.c was compiled to an executable on a
11 Windows 8.1 system with MinGW using a gcc compiler (called
12 just test.c at the time of the compilation).
13
14 testobjLE32PE.test.c
15 testobjLE32PE.base
16 testobjLE32PE.exe
17
18 testuriLE64ELf is a compilation of dwarfdump/uri.c and is
19 a plain .o, a relocatable (renamed .obj to avoid a reader
20 confusing this with build-time .o objects).
21 The testuriLE64ELfsource .c is the c used to compile
22 the obj, but we cannot name it testuriLE64ELf.c as doing so
23 will let the test framework *rebuild* the .obj
24 if the .testme is older than the source,
25 and that is a (slightly surprising) disaster, it results in failure.
26 So we prevent it rebuilding with odd naming.
27
28 testuriLE64ELf.base
29 testuriLE64ELfsource.c
30 testuriLE64ELf.testme
31
32 test-mach-o-32 is a little-endian compilation to an executable
33 of dwarfexample/simplereader.c on a 32bit Apple system using
34 Apple compilers. The DWARF is in the .dSYM as is normal
35 for Apple and the executable is not present here: There is
36 no executable code here. Notice the __TEXT and __DATA and
37 __PAGEZERO sections are empty (zero length).
38
39 test-mach-o-32.base
40 test-mach-o-32.dSYM
41
42 The readelfobj project on sourceforge.net
43 can build executables for all three object
44 formats: readelfobj readobjpe readobjmacho
45 which will show the object file headers.