aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-02-14 20:23:27 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-02-14 20:23:27 +0000
commitffd12b812694f7a551c2846f3808bfcee5317646 (patch)
treed02202269c7eb8ff7ab79a56040e3c2df82d5848 /ld
parentee163bf5fff85297808522f28419f7a7b5c9aab4 (diff)
downloadgdb-ffd12b812694f7a551c2846f3808bfcee5317646.zip
gdb-ffd12b812694f7a551c2846f3808bfcee5317646.tar.gz
gdb-ffd12b812694f7a551c2846f3808bfcee5317646.tar.bz2
2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-shared/sh1.c (shlib_overriddencall2): Moved to ... * ld-shared/sh2.c (shlib_overriddencall2): Here. New.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-shared/sh1.c6
-rw-r--r--ld/testsuite/ld-shared/sh2.c8
3 files changed, 13 insertions, 6 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index bc6f809..673f240 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-shared/sh1.c (shlib_overriddencall2): Moved to ...
+ * ld-shared/sh2.c (shlib_overriddencall2): Here. New.
+
2008-02-07 Alan Modra <amodra@bigpond.net.au>
* ld-spu/ovl.d: Update.
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