This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

h8300-elf: newlib patches checked in


Approved by Jeffrey Law.

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.

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 <sys/types.h>
  #include <sys/stat.h>
+ #include <errno.h>
  
  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;
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]