aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/development/ldso/samename/lib.c
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-04-10 21:36:39 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-04-10 21:36:39 +0200
commitae498864bb638e597b589c52ff27237835625281 (patch)
tree4c1b35d35e71a926a6f9c82976d7cc41a79956e0 /src/development/ldso/samename/lib.c
parent16e5ab04800f86002e9bd3f904ec60cf63238f91 (diff)
downloadnotes-ae498864bb638e597b589c52ff27237835625281.tar.gz
notes-ae498864bb638e597b589c52ff27237835625281.zip
ld.so: load libs with same name experiments
Diffstat (limited to 'src/development/ldso/samename/lib.c')
-rw-r--r--src/development/ldso/samename/lib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/development/ldso/samename/lib.c b/src/development/ldso/samename/lib.c
new file mode 100644
index 0000000..d467d7f
--- /dev/null
+++ b/src/development/ldso/samename/lib.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#ifndef NAME
+#define NAME __FILE_NAME__
+#endif
+
+void moose() {
+ puts(NAME " says moose");
+}