From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joern Rennecke To: binutils@sources.redhat.com Cc: amylaar@cambridge.redhat.com, law@redhat.com Subject: h8300-elf: newlib patches checked in Date: Wed, 29 Aug 2001 06:28:00 -0000 Message-id: <200108291328.f7TDSNB21984@phal.cambridge.redhat.com> X-SW-Source: 2001-08/msg00679.html Approved by Jeffrey Law. Wed Aug 29 14:17:38 2001 J"orn Rennecke * 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. Index: configure.host =================================================================== RCS file: /cvs/cvsfiles/devo/newlib/configure.host,v retrieving revision 1.71 diff -p -r1.71 configure.host *** configure.host 2001/05/15 18:48:09 1.71 --- configure.host 2001/08/29 13:16:12 *************** case "${host}" in *** 320,329 **** --- 320,335 ---- 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) Index: libc/sys/h8300hms/crt1.c =================================================================== RCS file: /cvs/cvsfiles/devo/newlib/libc/sys/h8300hms/crt1.c,v retrieving revision 1.1 diff -p -r1.1 crt1.c *** crt1.c 1996/05/15 21:58:48 1.1 --- crt1.c 2001/08/29 13:16:13 *************** *** 1,5 **** --- 1,6 ---- void __main () { + #ifndef __ELF__ static int initialized; if (! initialized) { *************** void __main () *** 13,16 **** --- 14,18 ---- (*--p) (); } + #endif } Index: libc/sys/h8300hms/syscalls.c =================================================================== RCS file: /cvs/cvsfiles/devo/newlib/libc/sys/h8300hms/syscalls.c,v retrieving revision 1.10 diff -p -r1.10 syscalls.c *** syscalls.c 1994/09/19 16:01:54 1.10 --- syscalls.c 2001/08/29 13:16:13 *************** *** 3,8 **** --- 3,9 ---- #include <_ansi.h> #include #include + #include int _DEFUN(_read,(file, ptr, len), int file _AND *************** _open (path, flags) *** 47,50 **** --- 48,59 ---- int flags; { return 0; + } + + int + _unlink (path) + const char *path; + { + errno = EIO; + return -1; }