* h8300-elf: newlib patches checked in
@ 2001-08-29 6:28 Joern Rennecke
0 siblings, 0 replies; only message in thread
From: Joern Rennecke @ 2001-08-29 6:28 UTC (permalink / raw)
To: binutils; +Cc: amylaar, law
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-29 6:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-29 6:28 h8300-elf: newlib patches checked in Joern Rennecke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).