diff options
Diffstat (limited to 'example/lib.c')
-rw-r--r-- | example/lib.c | 7 |
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()); +} |