summaryrefslogtreecommitdiff
path: root/test2.c
diff options
context:
space:
mode:
authoreroen2015-07-10 22:59:24 +0200
committereroen2015-07-10 22:59:24 +0200
commit1ff4e0626696cce79347cea1f8af03ff0df5c3fd (patch)
tree434448c9801009a8365e67a3130571042468c3f2 /test2.c
downloaddynsymlink-1ff4e0626696cce79347cea1f8af03ff0df5c3fd.tar.gz
dynsymlink-1ff4e0626696cce79347cea1f8af03ff0df5c3fd.tar.bz2
dynsymlink-1ff4e0626696cce79347cea1f8af03ff0df5c3fd.tar.xz
Simple LD_PRELOAD demo
Diffstat (limited to 'test2.c')
-rw-r--r--test2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test2.c b/test2.c
new file mode 100644
index 0000000..8d990ae
--- /dev/null
+++ b/test2.c
@@ -0,0 +1,13 @@
+/*
+ * test2
+ *
+ * Non-cooperative, run with LD_PRELOAD=libdynsymlink.so
+ */
+
+#include <stdio.h>
+
+int main()
+{
+ printf("This is test2\n");
+ return 0;
+}