aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-shared
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-shared')
-rw-r--r--ld/testsuite/ld-shared/sh1.c6
-rw-r--r--ld/testsuite/ld-shared/sh2.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/ld/testsuite/ld-shared/sh1.c b/ld/testsuite/ld-shared/sh1.c
index 20f183c..c8e52324 100644
--- a/ld/testsuite/ld-shared/sh1.c
+++ b/ld/testsuite/ld-shared/sh1.c
@@ -71,12 +71,6 @@ shlib_shlibcall2 ()
{
return shlib_overriddencall2 ();
}
-
-int
-shlib_overriddencall2 ()
-{
- return 7;
-}
#endif
/* This function calls a function defined by the main program. */
diff --git a/ld/testsuite/ld-shared/sh2.c b/ld/testsuite/ld-shared/sh2.c
index 013a4e0..7cd1db3 100644
--- a/ld/testsuite/ld-shared/sh2.c
+++ b/ld/testsuite/ld-shared/sh2.c
@@ -12,3 +12,11 @@ shlib_shlibcalled ()
{
return 5;
}
+
+#ifndef XCOFF_TEST
+int
+shlib_overriddencall2 ()
+{
+ return 7;
+}
+#endif