public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Joern Rennecke <amylaar@redhat.com>
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	[thread overview]
Message-ID: <200108291328.f7TDSNB21984@phal.cambridge.redhat.com> (raw)

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

                 reply	other threads:[~2001-08-29  6:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200108291328.f7TDSNB21984@phal.cambridge.redhat.com \
    --to=amylaar@redhat.com \
    --cc=amylaar@cambridge.redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=law@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).