summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile16
-rw-r--r--misc/elf2diff.c16
2 files changed, 32 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
new file mode 100644
index 0000000..a087b0b
--- /dev/null
+++ b/misc/Makefile
@@ -0,0 +1,16 @@
+
+BINARIES=elf2diff1 elf2diff2 hole
+
+all: $(BINARIES)
+
+hole: hole.cpp
+ g++ -o $@ $<
+
+elf2diff1: elf2diff.c
+ arm-linux-gnueabi-gcc -o $@ -DNUMBER=1 $<
+
+elf2diff2: elf2diff.c
+ arm-linux-gnueabi-gcc -o $@ -DNUMBER=2 $<
+
+clean:
+ rm -f $(BINARIES) *~
diff --git a/misc/elf2diff.c b/misc/elf2diff.c
new file mode 100644
index 0000000..1057d3c
--- /dev/null
+++ b/misc/elf2diff.c
@@ -0,0 +1,16 @@
+
+#include <stdio.h>
+
+static void show_me(int n)
+{
+ printf("Hello World %d\n", n);
+
+}
+
+int main(void)
+{
+ show_me(NUMBER);
+
+ return 0;
+
+}