From 1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Wed, 29 Aug 2001 13:26:32 +0000 Subject: * 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. --- newlib/libc/sys/h8300hms/crt1.c | 2 ++ newlib/libc/sys/h8300hms/syscalls.c | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'newlib/libc/sys/h8300hms') diff --git a/newlib/libc/sys/h8300hms/crt1.c b/newlib/libc/sys/h8300hms/crt1.c index dd0be3145..bd4ccf2d8 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 b7a90e316..9f89c55d5 100644 --- a/newlib/libc/sys/h8300hms/syscalls.c +++ b/newlib/libc/sys/h8300hms/syscalls.c @@ -3,6 +3,7 @@ #include <_ansi.h> #include #include +#include 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; +} -- cgit v1.2.3