aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2002-10-08 13:09:05 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2002-10-08 13:09:05 +0000
commit7397211686835737adc0d252a996c8c5b8e72e40 (patch)
treec62f3067b069ff9667552844886d4f24ab352608 /newlib
parent89e3fcba7083f00f82f462c4d6c3c332478e3383 (diff)
downloadnewlib-7397211686835737adc0d252a996c8c5b8e72e40.zip
newlib-7397211686835737adc0d252a996c8c5b8e72e40.tar.gz
newlib-7397211686835737adc0d252a996c8c5b8e72e40.tar.bz2
2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link dummy programs.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/rtems/crt0.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index f6167e0..3f25378 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2002-10-07 Joel Sherrill <joel@OARcorp.com>
+ * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
+ dummy programs.
+
+2002-10-07 Joel Sherrill <joel@OARcorp.com>
+
* libc/include/pthread.h: Define PTHREAD_CANCELED.
2002-10-07 Joel Sherrill <joel@OARcorp.com>
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index 9895ee6..e5f67c0 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -43,6 +43,12 @@ memset() {}
int __init; int __fini;
#endif
+/* The SH expects certain symbols to be defined in the linker script. */
+
+#if defined(__sh__)
+int __EH_FRAME_BEGIN__;
+#endif
+
/* The hppa expects this to be defined in the real crt0.s.
* Also for some reason, the hppa1.1 does not find atexit()
* during the AC_PROG_CC tests.