aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-srec
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-06-03 04:56:52 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-06-03 04:56:52 +0000
commitbfba206a7e0240ba5a3a8f8e2eaff859e323c87a (patch)
treebe847b71fe9443c244834ce3cfe06da300571698 /ld/testsuite/ld-srec
parentcedb70c5450013a9c0f7d25564b63c4394b74ea1 (diff)
downloadgdb-bfba206a7e0240ba5a3a8f8e2eaff859e323c87a.zip
gdb-bfba206a7e0240ba5a3a8f8e2eaff859e323c87a.tar.gz
gdb-bfba206a7e0240ba5a3a8f8e2eaff859e323c87a.tar.bz2
2005-06-02 H.J. Lu <hjl@gnu.org>
* ld-srec/sr3.cc (__dso_handle): Added for gcc 3.1 with -fuse-cxa-atexit. (__cxa_atexit): Likewise.
Diffstat (limited to 'ld/testsuite/ld-srec')
-rw-r--r--ld/testsuite/ld-srec/sr3.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc
index 4cde2dc..283245d 100644
--- a/ld/testsuite/ld-srec/sr3.cc
+++ b/ld/testsuite/ld-srec/sr3.cc
@@ -116,3 +116,12 @@ Foo::~Foo ()
{
foos--;
}
+
+void *__dso_handle;
+
+extern "C"
+int
+__cxa_atexit (void)
+{
+ return 0;
+}