summaryrefslogtreecommitdiff
path: root/example/lib.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-09-04 18:21:18 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-09-04 18:21:18 +0200
commit1e487eca2304936919e777f8ad06a99f28c7528d (patch)
tree540437871b2d6a0fda7e58e000f1325592c8c7ec /example/lib.c
parentad0ebfa7c2b9149311142db7717416538dd1fc9b (diff)
downloadinject_so-master.tar.gz
inject_so-master.zip
add example objectsHEADmaster
Diffstat (limited to 'example/lib.c')
-rw-r--r--example/lib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/example/lib.c b/example/lib.c
new file mode 100644
index 0000000..6622e56
--- /dev/null
+++ b/example/lib.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+#include <stdio.h>
+
+void __attribute__((constructor)) lib_entry()
+{
+ printf("Injected into %li\n", getpid());
+}