aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb/sh2.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-05-13 16:54:32 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-05-13 16:54:32 +0000
commit6fc49d288b851bc5732d85155af3fac92e7906e3 (patch)
treea0350d23a2d1362f7500ff2ef9b72ac5c8467dcf /ld/testsuite/ld-elfvsb/sh2.c
parent558b0a60a80a669201f7ffa51dd553ce607a7ad6 (diff)
downloadgdb-6fc49d288b851bc5732d85155af3fac92e7906e3.zip
gdb-6fc49d288b851bc5732d85155af3fac92e7906e3.tar.gz
gdb-6fc49d288b851bc5732d85155af3fac92e7906e3.tar.bz2
2000-05-13 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output to link_output and make it global. * ld-elfvsb/elf-offset.ld: New. ELF visibility fearture tests. * ld-elfvsb/elfvsb.dat: Likewise. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elfvsb/sh2.c')
-rw-r--r--ld/testsuite/ld-elfvsb/sh2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvsb/sh2.c b/ld/testsuite/ld-elfvsb/sh2.c
new file mode 100644
index 0000000..013a4e0
--- /dev/null
+++ b/ld/testsuite/ld-elfvsb/sh2.c
@@ -0,0 +1,14 @@
+/* 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;
+}