summaryrefslogtreecommitdiff
path: root/ld
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
parentcedb70c5450013a9c0f7d25564b63c4394b74ea1 (diff)
downloadbinutils-bfba206a7e0240ba5a3a8f8e2eaff859e323c87a.tar.gz
binutils-bfba206a7e0240ba5a3a8f8e2eaff859e323c87a.tar.bz2
binutils-bfba206a7e0240ba5a3a8f8e2eaff859e323c87a.zip
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')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-srec/sr3.cc9
2 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index b8c3de678dc..1328cdefb1b 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2002-05-30 Richard Henderson <rth@redhat.com>
* ld-bootstrap/bootstrap.exp: Test --relax.
diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc
index 4cde2dcbeb2..283245dc768 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;
+}