summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb/sh2.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfvsb/sh2.c')
-rw-r--r--ld/testsuite/ld-elfvsb/sh2.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvsb/sh2.c b/ld/testsuite/ld-elfvsb/sh2.c
new file mode 100644
index 0000000000..6ed30bc52e
--- /dev/null
+++ b/ld/testsuite/ld-elfvsb/sh2.c
@@ -0,0 +1,24 @@
+/* This is part of the shared library ld test. This file becomes part
+ of a shared library. */
+
+/* This variable is defined here, and referenced by another file in
+ the shared library. */
+int shlibvar2 = 4;
+
+/* This function is called by another file in the shared library. */
+
+int
+shlib_shlibcalled ()
+{
+ return 5;
+}
+
+#ifdef DSO_DEFINE_TEST
+int
+visibility ()
+{
+ return 2;
+}
+
+int visibility_var = 2;
+#endif