From cb1f8161c1524fe06dd331cda3e64a0326abd51c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 21 May 2008 07:44:32 +0000 Subject: [PATCH] * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak). * iq2000/crt0.S (__dso_handle): Define (weak). * frv/crt0.S (__dso_handle): Define (weak). * mn10300/crt0.S (___dso_handle): Define (weak). --- libgloss/ChangeLog | 6 ++++++ libgloss/frv/crt0.S | 6 ++++++ libgloss/iq2000/crt0.S | 6 ++++++ libgloss/mn10300/crt0.S | 6 ++++++ newlib/ChangeLog | 4 ++++ newlib/libc/sys/sysnecv850/crt0.S | 7 ++++++- 6 files changed, 34 insertions(+), 1 deletion(-) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 51464386a..cd5b1e323 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,9 @@ +2008-05-20 Nick Clifton + + * iq2000/crt0.S (__dso_handle): Define (weak). + * frv/crt0.S (__dso_handle): Define (weak). + * mn10300/crt0.S (___dso_handle): Define (weak). + 2008-05-05 Ken Werner * spu/readlink.c: Align readlink implementation to POSIX. diff --git a/libgloss/frv/crt0.S b/libgloss/frv/crt0.S index af14b9181..86d5a5003 100644 --- a/libgloss/frv/crt0.S +++ b/libgloss/frv/crt0.S @@ -268,3 +268,9 @@ EXT(__frv_fix_usrptrs): .Lret3: ret .Lend3: .size EXT(__frv_fix_usrptrs),.Lend2-EXT(__frv_fix_usrptrs) + + .section .data + .global __dso_handle + .weak __dso_handle +__dso_handle: + .long 0 diff --git a/libgloss/iq2000/crt0.S b/libgloss/iq2000/crt0.S index 12d2a5b0a..eff6b2783 100644 --- a/libgloss/iq2000/crt0.S +++ b/libgloss/iq2000/crt0.S @@ -54,3 +54,9 @@ _start: xor %5,%5,%5 jal exit # all done, no need to return or or %4,%0,%2 # exit with main's return value + + .section .data + .global __dso_handle + .weak __dso_handle +__dso_handle: + .long 0 diff --git a/libgloss/mn10300/crt0.S b/libgloss/mn10300/crt0.S index f50e4259d..13dd77795 100644 --- a/libgloss/mn10300/crt0.S +++ b/libgloss/mn10300/crt0.S @@ -56,3 +56,9 @@ _start: .section .stack _stack: .long 1 + + .section .data + .global ___dso_handle + .weak ___dso_handle +___dso_handle: + .long 0 diff --git a/newlib/ChangeLog b/newlib/ChangeLog index d331d3479..7cdfd0356 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2008-05-20 Nick Clifton + + * libc/sys/sysnecv850/crt0.S (___dso_handle): Define (weak). + 2008-05-20 DJ Delorie * libc/sys/sysnecv850/isatty.c (_isatty): Renamed from isatty. diff --git a/newlib/libc/sys/sysnecv850/crt0.S b/newlib/libc/sys/sysnecv850/crt0.S index e006871b3..b319d30b7 100644 --- a/newlib/libc/sys/sysnecv850/crt0.S +++ b/newlib/libc/sys/sysnecv850/crt0.S @@ -60,8 +60,13 @@ _start: jarl _main, r31 mov r10, r6 jarl _exit, r31 - # endif .section .stack _stack: .long 1 + + .section .data + .global ___dso_handle + .weak ___dso_handle +___dso_handle: + .long 0