aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2001-08-29 13:26:32 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2001-08-29 13:26:32 +0000
commit1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb (patch)
tree47c2d24664004adc1829024b776b345eb69d4ae9 /newlib
parent41d53c9845c5eb4c8b8d43e0f93d4f5f5114f6cf (diff)
downloadnewlib-1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb.zip
newlib-1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb.tar.gz
newlib-1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb.tar.bz2
* configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors / __ctors_end. * libc/sys/h8300hms/syscalls.c: Include errno.h. (_unlink): New stub function.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog8
-rw-r--r--newlib/configure.host6
-rw-r--r--newlib/libc/sys/h8300hms/crt1.c2
-rw-r--r--newlib/libc/sys/h8300hms/syscalls.c9
4 files changed, 25 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index a0aa2a8..b525505 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,11 @@
+Wed Aug 29 14:17:38 2001 J"orn Rennecke <amylaar@redhat.com>
+
+ * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
+ * libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
+ __ctors_end.
+ * libc/sys/h8300hms/syscalls.c: Include errno.h.
+ (_unlink): New stub function.
+
Sat Aug 25 22:22:25 2001 Christopher Faylor <cgf@cygnus.com>
* libc/include/sys/errno.h: Add a cautionary comment.
diff --git a/newlib/configure.host b/newlib/configure.host
index ca5eec6..0b8b0c0 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -230,12 +230,18 @@ case "${host}" in
h8300-*-hms*)
sys_dir=h8300hms
;;
+ h8300-*-elf*)
+ sys_dir=h8300hms
+ ;;
h8300-*-xray*)
sys_dir=h8300xray
;;
h8500-*-hms*)
sys_dir=h8500hms
;;
+ h8500-*-elf*)
+ sys_dir=h8500hms
+ ;;
i[3456]86-*-go32)
sys_dir=go32
;;
diff --git a/newlib/libc/sys/h8300hms/crt1.c b/newlib/libc/sys/h8300hms/crt1.c
index dd0be31..bd4ccf2 100644
--- a/newlib/libc/sys/h8300hms/crt1.c
+++ b/newlib/libc/sys/h8300hms/crt1.c
@@ -1,5 +1,6 @@
void __main ()
{
+#ifndef __ELF__
static int initialized;
if (! initialized)
{
@@ -13,4 +14,5 @@ void __main ()
(*--p) ();
}
+#endif
}
diff --git a/newlib/libc/sys/h8300hms/syscalls.c b/newlib/libc/sys/h8300hms/syscalls.c
index b7a90e3..9f89c55 100644
--- a/newlib/libc/sys/h8300hms/syscalls.c
+++ b/newlib/libc/sys/h8300hms/syscalls.c
@@ -3,6 +3,7 @@
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
int _DEFUN(_read,(file, ptr, len),
int file _AND
@@ -48,3 +49,11 @@ _open (path, flags)
{
return 0;
}
+
+int
+_unlink (path)
+ const char *path;
+{
+ errno = EIO;
+ return -1;
+}