aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/tests/rtdl/scope4/libfoo.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/tests/rtdl/scope4/libfoo.c')
-rw-r--r--lib/mlibc/tests/rtdl/scope4/libfoo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mlibc/tests/rtdl/scope4/libfoo.c b/lib/mlibc/tests/rtdl/scope4/libfoo.c
new file mode 100644
index 0000000..6710db7
--- /dev/null
+++ b/lib/mlibc/tests/rtdl/scope4/libfoo.c
@@ -0,0 +1,3 @@
+// Foo needs to have a relocation against baz in order to set DT_NEEDED.
+void baz(void);
+void foo() { baz(); }