Compare commits
6 commits
2635a3190a
...
5ecaeca632
Author | SHA1 | Date | |
---|---|---|---|
Théophile Bastian | 5ecaeca632 | ||
Théophile Bastian | fe242b9ac6 | ||
Théophile Bastian | bb80c3be9a | ||
Théophile Bastian | 7a443bba1b | ||
Théophile Bastian | f21ad366e7 | ||
Théophile Bastian | a1cc44cfd8 |
BIN
demo.old/demo.bin
Executable file
BIN
demo.old/demo.bin
Executable file
Binary file not shown.
BIN
demo.old/demo.bin.synth
Executable file
BIN
demo.old/demo.bin.synth
Executable file
Binary file not shown.
14
demo.old/demo.c
Normal file
14
demo.old/demo.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int bar(int x) {
|
||||
printf("'I’m %d; how many? %n\n", x, &x);
|
||||
return x;
|
||||
}
|
||||
|
||||
int foo() {
|
||||
return bar(3);
|
||||
}
|
||||
|
||||
int main() {
|
||||
return foo();
|
||||
}
|
12
demo.old/synth.sh
Executable file
12
demo.old/synth.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
SYNTHESIS_SCRIPT="../../../src/dwarf-synthesis/synthesize_dwarf.sh"
|
||||
|
||||
if [ "$#" -lt 1 ] ; then
|
||||
>&2 echo -e "Missing argument: object file.\nUsage: $0 object.o"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
objfile="$1"
|
||||
|
||||
$SYNTHESIS_SCRIPT "$objfile" "$objfile.synth"
|
2
demo/.gitignore
vendored
Normal file
2
demo/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
dwarf-synthesis
|
||||
tests/data*
|
9
demo/Makefile
Normal file
9
demo/Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
all:
|
||||
@>&2 echo "Please provide an explicit target"
|
||||
@exit 1
|
||||
|
||||
tests/data:
|
||||
dd if=/dev/urandom of="$@" bs=512K count=4
|
||||
|
||||
clean:
|
||||
rm -f tests/data.gz tests/gzip.synth
|
BIN
demo/tests/gzip
Executable file
BIN
demo/tests/gzip
Executable file
Binary file not shown.
7
src/dw_plt
Normal file
7
src/dw_plt
Normal file
|
@ -0,0 +1,7 @@
|
|||
30 24 34 FDE pc=004020..004040
|
||||
DW_CFA_def_cfa_offset: 16
|
||||
DW_CFA_advance_loc: 6 to 0000000000004026
|
||||
DW_CFA_def_cfa_offset: 24
|
||||
DW_CFA_advance_loc: 10 to 0000000000004030
|
||||
DW_CFA_def_cfa_expression (DW_OP_breg7 (rsp): 8; DW_OP_breg16 (rip): 0; DW_OP_lit15; DW_OP_and; DW_OP_lit11; DW_OP_ge; DW_OP_lit3; DW_OP_shl; DW_OP_plus)
|
||||
[...]
|
7
src/dw_plt_abbr
Normal file
7
src/dw_plt_abbr
Normal file
|
@ -0,0 +1,7 @@
|
|||
30 24 34 FDE pc=004020..004040
|
||||
DW_CFA_def_cfa_offset: 16
|
||||
DW_CFA_advance_loc: 6 to 0000000000004026
|
||||
DW_CFA_def_cfa_offset: 24
|
||||
DW_CFA_advance_loc: 10 to 0000000000004030
|
||||
DW_CFA_def_cfa_expression (DW_OP_breg7 (rsp): 8;
|
||||
DW_OP_breg16 (rip): 0; ...)
|
Loading…
Reference in a new issue