* 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.
This commit is contained in:
Joern Rennecke 2001-08-29 13:26:32 +00:00
parent 41d53c9845
commit 1ae900d62f
4 changed files with 25 additions and 0 deletions

View File

@ -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.

View File

@ -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
;;

View File

@ -1,5 +1,6 @@
void __main ()
{
#ifndef __ELF__
static int initialized;
if (! initialized)
{
@ -13,4 +14,5 @@ void __main ()
(*--p) ();
}
#endif
}

View File

@ -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;
}