diff --git a/tests/hellostart/.gitignore b/tests/hellostart/.gitignore new file mode 100644 index 0000000..a2b21e7 --- /dev/null +++ b/tests/hellostart/.gitignore @@ -0,0 +1 @@ +hellostart diff --git a/tests/hellostart/Makefile b/tests/hellostart/Makefile new file mode 100644 index 0000000..1139ee9 --- /dev/null +++ b/tests/hellostart/Makefile @@ -0,0 +1,21 @@ +# This is the default target, which will be built when +# you invoke make +.PHONY: all +all: hellostart + +# This rule tells make how to build hellostart from hellostart.cpp +hellostart: hellostart.cpp + g++ -g -o hellostart hellostart.cpp + +# This rule tells make to copy hellostart to the binaries subdirectory, +# creating it if necessary +.PHONY: install +install: + mkdir -p binaries + cp -p hellostart binaries + +# This rule tells make to delete hellostart and hellostart.o +.PHONY: clean +clean: + rm -f hellostart hellostart.o + diff --git a/tests/hellostart/README b/tests/hellostart/README new file mode 100644 index 0000000..fc05383 --- /dev/null +++ b/tests/hellostart/README @@ -0,0 +1,3 @@ + +Simple HelloWorld program to test random start addresses in seer/gdb. + diff --git a/tests/hellostart/hellostart.cpp b/tests/hellostart/hellostart.cpp new file mode 100644 index 0000000..16269f3 --- /dev/null +++ b/tests/hellostart/hellostart.cpp @@ -0,0 +1,16 @@ +#include +#include + +int main (int argc, char** argv) { + + int i=0; + + for (i=0; i