From 8f8f1db12f5ac069d7e44c7ea9b2eed55f2b0b96 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 1 May 2006 22:01:07 +0000 Subject: 2006-05-01 Jeff Johnston * libc/argz/Makefile.am: Prefix any objects specified with $(lpfx). If source file can be specified instead of object, do so. * libc/ctype/Makefile.am: Ditto. * libc/iconv/ccs/Makefile.am: Ditto. * libc/iconv/ces/Makefile.am: Ditto. * libc/iconv/lib/Makefile.am: Ditto. * libc/locale/Makefile.am: Ditto. * libc/posix/Makefile.am: Ditto. * libc/reent/Makefile.am: Ditto. * libc/search/Makefile.am: Ditto. * libc/stdio/Makefile.am: Ditto. * libc/stdio64/Makefile.am: Ditto. * libc/stdlib/Makefile.am: Ditto. * libc/string/Makefile.am: Ditto. * libc/syscalls/Makefile.am: Ditto. * libc/unix/Makefile.am: Ditto. * libc/machine/a29k/Makefile.am: Specify lib_a_CCASFLAGS so .S files will get prefix added automatically. Any specified rules must use $(lpfx) for object file names. * libc/machine/arm/Makefile.am: Ditto. * libc/machine/cris/Makefile.am: Ditto. * libc/machine/crx/Makefile.am: Ditto. * libc/machine/d10v/Makefile.am: Ditto. * libc/machine/d30v/Makefile.am: Ditto. * libc/machine/fr30/Makefile.am: Ditto. * libc/machine/frv/Makefile.am: Ditto. * libc/machine/h8300/Makefile.am: Ditto. * libc/machine/h8500/Makefile.am: Ditto. * libc/machine/hppa/Makefile.am: Ditto. * libc/machine/i386/Makefile.am: Ditto. * libc/machine/i960/Makefile.am: Ditto. * libc/machine/iq2000/Makefile.am: Ditto. * libc/machine/m32c/Makefile.am: Ditto. * libc/machine/m32r/Makefile.am: Ditto. * libc/machine/m68hc11/Makefile.am: Ditto. * libc/machine/m68k/Makefile.am: Ditto. * libc/machine/m88k/Makefile.am: Ditto. * libc/machine/mips/Makefile.am: Ditto. * libc/machine/mn10200/Makefile.am: Ditto. * libc/machine/mn10300/Makefile.am: Ditto. * libc/machine/mt/Makefile.am: Ditto. * libc/machine/necv70/Makefile.am: Ditto. * libc/machine/powerpc/Makefile.am: Ditto. * libc/machine/sh/Makefile.am: Ditto. * libc/machine/sh/Makefile.in: Ditto. * libc/machine/sparc/Makefile.am: Ditto. * libc/machine/tic4x/Makefile.am: Ditto. * libc/machine/tic80/Makefile.am: Ditto. * libc/machine/v850/Makefile.am: Ditto. * libc/machine/w65/Makefile.am: Ditto. * libc/machine/xscale/Makefile.am: Ditto. * libc/machine/xstormy16/Makefile.am: Ditto. * libc/machine/z8k/Makefile.am: Ditto. * libc/sys/a29khif/Makefile.am: Ditto. * libc/sys/arm/Makefile.am: Ditto. * libc/sys/d10v/Makefile.am: Ditto. * libc/sys/h8300hms/Makefile.am: Ditto. * libc/sys/h8500hms/Makefile.am: Ditto. * libc/sys/linux/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/Makefile.am: Ditto. * libc/sys/linux/net/Makefile.am: Ditto. * libc/sys/linux/stdlib/Makefile.am: Ditto. * libc/sys/m88kbug/Makefile.am: Ditto. * libc/sys/mmixware/Makefile.am: Ditto. * libc/sys/rdos/Makefile.am: Ditto. * libc/sys/rtems/Makefile.am: Ditto. * libc/sys/sh/Makefile.am: Ditto. * libc/sys/sun4/Makefile.am: Ditto. * libc/sys/sysmec/Makefile.am: Ditto. * libc/sys/sysnec810/Makefile.am: Ditto. * libc/sys/sysnecv850/Makefile.am: Ditto. * libc/sys/sysvi386/Makefile.am: Ditto. * libc/sys/sysvnecv70/Makefile.am: Ditto. * libc/sys/tic80/Makefile.am: Ditto. * libc/sys/w65/Makefile.am: Ditto. * libc/sys/z8ksim/Makefile.am: Ditto. * libc/machine/necv70/fastmath.S: Renamed from .s file. * libc/machine/necv70/setjmp.S: Ditto. * libc/machine/necv70/fastmath.s: Removed. * libc/machine/necv70/setjmp.s: Ditto. * libc/machine/w65/*.S: New files renamed from .s files. * libc/machine/w65/*.s: Renamed and removed. * libc/sys/a29khif/*.S: New files renamed from .s files. * libc/sys/a29khif/*.s: Renamed and removed. * libc/sys/sysvi386/*.S: New files renamed from .s files. * libc/sys/sysvi386/*.s: Renamed and removed. * libc/sys/sysvnecv70/*.S: New files renamed from .s files. * libc/sys/sysvnecv70/*.s: Renamed and removed. * libc/*Makefile.in: Regenerated as appropriate. --- newlib/libc/sys/sysvi386/Makefile.am | 20 +- newlib/libc/sys/sysvi386/Makefile.in | 466 ++++++++++++++++++++++++++++++--- newlib/libc/sys/sysvi386/_exit.S | 6 + newlib/libc/sys/sysvi386/_exit.s | 6 - newlib/libc/sys/sysvi386/_longjmp.S | 31 +++ newlib/libc/sys/sysvi386/_longjmp.s | 31 --- newlib/libc/sys/sysvi386/_setjmp.S | 24 ++ newlib/libc/sys/sysvi386/_setjmp.s | 24 -- newlib/libc/sys/sysvi386/access.S | 8 + newlib/libc/sys/sysvi386/access.s | 8 - newlib/libc/sys/sysvi386/alarm.S | 5 + newlib/libc/sys/sysvi386/alarm.s | 5 - newlib/libc/sys/sysvi386/brk.S | 8 + newlib/libc/sys/sysvi386/brk.s | 8 - newlib/libc/sys/sysvi386/cerror.S | 9 + newlib/libc/sys/sysvi386/cerror.s | 9 - newlib/libc/sys/sysvi386/chdir.S | 9 + newlib/libc/sys/sysvi386/chdir.s | 9 - newlib/libc/sys/sysvi386/chmod.S | 9 + newlib/libc/sys/sysvi386/chmod.s | 9 - newlib/libc/sys/sysvi386/close.S | 9 + newlib/libc/sys/sysvi386/close.s | 9 - newlib/libc/sys/sysvi386/execve.S | 7 + newlib/libc/sys/sysvi386/execve.s | 7 - newlib/libc/sys/sysvi386/fcntl.S | 9 + newlib/libc/sys/sysvi386/fcntl.s | 9 - newlib/libc/sys/sysvi386/fork.S | 12 + newlib/libc/sys/sysvi386/fork.s | 12 - newlib/libc/sys/sysvi386/fpathconf.S | 6 + newlib/libc/sys/sysvi386/fpathconf.s | 6 - newlib/libc/sys/sysvi386/fps.S | 18 ++ newlib/libc/sys/sysvi386/fps.s | 18 -- newlib/libc/sys/sysvi386/fstat.S | 9 + newlib/libc/sys/sysvi386/fstat.s | 9 - newlib/libc/sys/sysvi386/getdents.S | 6 + newlib/libc/sys/sysvi386/getdents.s | 6 - newlib/libc/sys/sysvi386/getegid.S | 9 + newlib/libc/sys/sysvi386/getegid.s | 9 - newlib/libc/sys/sysvi386/geteuid.S | 9 + newlib/libc/sys/sysvi386/geteuid.s | 9 - newlib/libc/sys/sysvi386/getgid.S | 8 + newlib/libc/sys/sysvi386/getgid.s | 8 - newlib/libc/sys/sysvi386/getgroups.S | 8 + newlib/libc/sys/sysvi386/getgroups.s | 8 - newlib/libc/sys/sysvi386/getpid.S | 9 + newlib/libc/sys/sysvi386/getpid.s | 9 - newlib/libc/sys/sysvi386/getuid.S | 8 + newlib/libc/sys/sysvi386/getuid.s | 8 - newlib/libc/sys/sysvi386/ioctl.S | 9 + newlib/libc/sys/sysvi386/ioctl.s | 9 - newlib/libc/sys/sysvi386/kill.S | 9 + newlib/libc/sys/sysvi386/kill.s | 9 - newlib/libc/sys/sysvi386/link.S | 9 + newlib/libc/sys/sysvi386/link.s | 9 - newlib/libc/sys/sysvi386/lseek.S | 8 + newlib/libc/sys/sysvi386/lseek.s | 8 - newlib/libc/sys/sysvi386/mkdir.S | 9 + newlib/libc/sys/sysvi386/mkdir.s | 9 - newlib/libc/sys/sysvi386/open.S | 9 + newlib/libc/sys/sysvi386/open.s | 9 - newlib/libc/sys/sysvi386/pathconf.S | 6 + newlib/libc/sys/sysvi386/pathconf.s | 6 - newlib/libc/sys/sysvi386/pause.S | 6 + newlib/libc/sys/sysvi386/pause.s | 6 - newlib/libc/sys/sysvi386/pipe.S | 12 + newlib/libc/sys/sysvi386/pipe.s | 12 - newlib/libc/sys/sysvi386/read.S | 8 + newlib/libc/sys/sysvi386/read.s | 8 - newlib/libc/sys/sysvi386/rename.S | 9 + newlib/libc/sys/sysvi386/rename.s | 9 - newlib/libc/sys/sysvi386/rmdir.S | 9 + newlib/libc/sys/sysvi386/rmdir.s | 9 - newlib/libc/sys/sysvi386/setgid.S | 9 + newlib/libc/sys/sysvi386/setgid.s | 9 - newlib/libc/sys/sysvi386/setuid.S | 9 + newlib/libc/sys/sysvi386/setuid.s | 9 - newlib/libc/sys/sysvi386/sigaction.S | 20 ++ newlib/libc/sys/sysvi386/sigaction.s | 20 -- newlib/libc/sys/sysvi386/signal.S | 16 ++ newlib/libc/sys/sysvi386/signal.s | 16 -- newlib/libc/sys/sysvi386/sigprocmask.S | 12 + newlib/libc/sys/sysvi386/sigprocmask.s | 12 - newlib/libc/sys/sysvi386/stat.S | 9 + newlib/libc/sys/sysvi386/stat.s | 9 - newlib/libc/sys/sysvi386/sysconf.S | 6 + newlib/libc/sys/sysvi386/sysconf.s | 6 - newlib/libc/sys/sysvi386/time.S | 8 + newlib/libc/sys/sysvi386/time.s | 8 - newlib/libc/sys/sysvi386/times.S | 8 + newlib/libc/sys/sysvi386/times.s | 8 - newlib/libc/sys/sysvi386/unlink.S | 9 + newlib/libc/sys/sysvi386/unlink.s | 9 - newlib/libc/sys/sysvi386/utime.S | 8 + newlib/libc/sys/sysvi386/utime.s | 8 - newlib/libc/sys/sysvi386/wait.S | 13 + newlib/libc/sys/sysvi386/wait.s | 13 - newlib/libc/sys/sysvi386/waitpid.S | 18 ++ newlib/libc/sys/sysvi386/waitpid.s | 18 -- newlib/libc/sys/sysvi386/write.S | 8 + newlib/libc/sys/sysvi386/write.s | 8 - 100 files changed, 932 insertions(+), 538 deletions(-) create mode 100644 newlib/libc/sys/sysvi386/_exit.S delete mode 100644 newlib/libc/sys/sysvi386/_exit.s create mode 100644 newlib/libc/sys/sysvi386/_longjmp.S delete mode 100644 newlib/libc/sys/sysvi386/_longjmp.s create mode 100644 newlib/libc/sys/sysvi386/_setjmp.S delete mode 100644 newlib/libc/sys/sysvi386/_setjmp.s create mode 100644 newlib/libc/sys/sysvi386/access.S delete mode 100644 newlib/libc/sys/sysvi386/access.s create mode 100644 newlib/libc/sys/sysvi386/alarm.S delete mode 100644 newlib/libc/sys/sysvi386/alarm.s create mode 100644 newlib/libc/sys/sysvi386/brk.S delete mode 100644 newlib/libc/sys/sysvi386/brk.s create mode 100644 newlib/libc/sys/sysvi386/cerror.S delete mode 100644 newlib/libc/sys/sysvi386/cerror.s create mode 100644 newlib/libc/sys/sysvi386/chdir.S delete mode 100644 newlib/libc/sys/sysvi386/chdir.s create mode 100644 newlib/libc/sys/sysvi386/chmod.S delete mode 100644 newlib/libc/sys/sysvi386/chmod.s create mode 100644 newlib/libc/sys/sysvi386/close.S delete mode 100644 newlib/libc/sys/sysvi386/close.s create mode 100644 newlib/libc/sys/sysvi386/execve.S delete mode 100644 newlib/libc/sys/sysvi386/execve.s create mode 100644 newlib/libc/sys/sysvi386/fcntl.S delete mode 100644 newlib/libc/sys/sysvi386/fcntl.s create mode 100644 newlib/libc/sys/sysvi386/fork.S delete mode 100644 newlib/libc/sys/sysvi386/fork.s create mode 100644 newlib/libc/sys/sysvi386/fpathconf.S delete mode 100644 newlib/libc/sys/sysvi386/fpathconf.s create mode 100644 newlib/libc/sys/sysvi386/fps.S delete mode 100644 newlib/libc/sys/sysvi386/fps.s create mode 100644 newlib/libc/sys/sysvi386/fstat.S delete mode 100644 newlib/libc/sys/sysvi386/fstat.s create mode 100644 newlib/libc/sys/sysvi386/getdents.S delete mode 100644 newlib/libc/sys/sysvi386/getdents.s create mode 100644 newlib/libc/sys/sysvi386/getegid.S delete mode 100644 newlib/libc/sys/sysvi386/getegid.s create mode 100644 newlib/libc/sys/sysvi386/geteuid.S delete mode 100644 newlib/libc/sys/sysvi386/geteuid.s create mode 100644 newlib/libc/sys/sysvi386/getgid.S delete mode 100644 newlib/libc/sys/sysvi386/getgid.s create mode 100644 newlib/libc/sys/sysvi386/getgroups.S delete mode 100644 newlib/libc/sys/sysvi386/getgroups.s create mode 100644 newlib/libc/sys/sysvi386/getpid.S delete mode 100644 newlib/libc/sys/sysvi386/getpid.s create mode 100644 newlib/libc/sys/sysvi386/getuid.S delete mode 100644 newlib/libc/sys/sysvi386/getuid.s create mode 100644 newlib/libc/sys/sysvi386/ioctl.S delete mode 100644 newlib/libc/sys/sysvi386/ioctl.s create mode 100644 newlib/libc/sys/sysvi386/kill.S delete mode 100644 newlib/libc/sys/sysvi386/kill.s create mode 100644 newlib/libc/sys/sysvi386/link.S delete mode 100644 newlib/libc/sys/sysvi386/link.s create mode 100644 newlib/libc/sys/sysvi386/lseek.S delete mode 100644 newlib/libc/sys/sysvi386/lseek.s create mode 100644 newlib/libc/sys/sysvi386/mkdir.S delete mode 100644 newlib/libc/sys/sysvi386/mkdir.s create mode 100644 newlib/libc/sys/sysvi386/open.S delete mode 100644 newlib/libc/sys/sysvi386/open.s create mode 100644 newlib/libc/sys/sysvi386/pathconf.S delete mode 100644 newlib/libc/sys/sysvi386/pathconf.s create mode 100644 newlib/libc/sys/sysvi386/pause.S delete mode 100644 newlib/libc/sys/sysvi386/pause.s create mode 100644 newlib/libc/sys/sysvi386/pipe.S delete mode 100644 newlib/libc/sys/sysvi386/pipe.s create mode 100644 newlib/libc/sys/sysvi386/read.S delete mode 100644 newlib/libc/sys/sysvi386/read.s create mode 100644 newlib/libc/sys/sysvi386/rename.S delete mode 100644 newlib/libc/sys/sysvi386/rename.s create mode 100644 newlib/libc/sys/sysvi386/rmdir.S delete mode 100644 newlib/libc/sys/sysvi386/rmdir.s create mode 100644 newlib/libc/sys/sysvi386/setgid.S delete mode 100644 newlib/libc/sys/sysvi386/setgid.s create mode 100644 newlib/libc/sys/sysvi386/setuid.S delete mode 100644 newlib/libc/sys/sysvi386/setuid.s create mode 100644 newlib/libc/sys/sysvi386/sigaction.S delete mode 100644 newlib/libc/sys/sysvi386/sigaction.s create mode 100644 newlib/libc/sys/sysvi386/signal.S delete mode 100644 newlib/libc/sys/sysvi386/signal.s create mode 100644 newlib/libc/sys/sysvi386/sigprocmask.S delete mode 100644 newlib/libc/sys/sysvi386/sigprocmask.s create mode 100644 newlib/libc/sys/sysvi386/stat.S delete mode 100644 newlib/libc/sys/sysvi386/stat.s create mode 100644 newlib/libc/sys/sysvi386/sysconf.S delete mode 100644 newlib/libc/sys/sysvi386/sysconf.s create mode 100644 newlib/libc/sys/sysvi386/time.S delete mode 100644 newlib/libc/sys/sysvi386/time.s create mode 100644 newlib/libc/sys/sysvi386/times.S delete mode 100644 newlib/libc/sys/sysvi386/times.s create mode 100644 newlib/libc/sys/sysvi386/unlink.S delete mode 100644 newlib/libc/sys/sysvi386/unlink.s create mode 100644 newlib/libc/sys/sysvi386/utime.S delete mode 100644 newlib/libc/sys/sysvi386/utime.s create mode 100644 newlib/libc/sys/sysvi386/wait.S delete mode 100644 newlib/libc/sys/sysvi386/wait.s create mode 100644 newlib/libc/sys/sysvi386/waitpid.S delete mode 100644 newlib/libc/sys/sysvi386/waitpid.s create mode 100644 newlib/libc/sys/sysvi386/write.S delete mode 100644 newlib/libc/sys/sysvi386/write.s (limited to 'newlib/libc/sys/sysvi386') diff --git a/newlib/libc/sys/sysvi386/Makefile.am b/newlib/libc/sys/sysvi386/Makefile.am index 564da337c..827682c3c 100644 --- a/newlib/libc/sys/sysvi386/Makefile.am +++ b/newlib/libc/sys/sysvi386/Makefile.am @@ -9,15 +9,17 @@ AM_CCASFLAGS = $(INCLUDES) noinst_LIBRARIES = lib.a lib_a_SOURCES = \ - ioctl.s isatty.c read.s lseek.s close.s sbrk.c fstat.s cerror.s \ - _exit.s write.s open.s signal.s kill.s getpid.s brk.s fork.s wait.s \ - execve.s exec.c utime.s fcntl.s chmod.s getuid.s getgid.s time.s \ - stat.s link.s unlink.s rename.s mkdir.s rmdir.s sigaction.s \ - sigprocmask.s waitpid.s sysconf.s pathconf.s fpathconf.s \ - getdents.s opendir.c readdir.c rewinddir.c closedir.c pipe.s \ - getgroups.s setuid.s getuid.s setgid.s geteuid.s getegid.s \ - chdir.s dup2.c dup.c tcgetattr.c tcsetattr.c speed.c tcline.c \ - times.s pause.s sleep.c alarm.s access.s _longjmp.s _setjmp.s + ioctl.S isatty.c read.S lseek.S close.S sbrk.c fstat.S cerror.S \ + _exit.S write.S open.S signal.S kill.S getpid.S brk.S fork.S wait.S \ + execve.S exec.c utime.S fcntl.S chmod.S getuid.S getgid.S time.S \ + stat.S link.S unlink.S rename.S mkdir.S rmdir.S sigaction.S \ + sigprocmask.S waitpid.S sysconf.S pathconf.S fpathconf.S \ + getdents.S opendir.c readdir.c rewinddir.c closedir.c pipe.S \ + getgroups.S setuid.S getuid.S setgid.S geteuid.S getegid.S \ + chdir.S dup2.c dup.c tcgetattr.c tcsetattr.c speed.c tcline.c \ + times.S pause.S sleep.c alarm.S access.S _longjmp.S _setjmp.S +lib_a_CCASFLAGS = $(AM_CCASFLAGS) +lib_a_CFLAGS = $(AM_CFLAGS) all: crt0.o diff --git a/newlib/libc/sys/sysvi386/Makefile.in b/newlib/libc/sys/sysvi386/Makefile.in index f4db30c4c..79aa3313a 100644 --- a/newlib/libc/sys/sysvi386/Makefile.in +++ b/newlib/libc/sys/sysvi386/Makefile.in @@ -41,7 +41,14 @@ host_triplet = @host@ DIST_COMMON = $(srcdir)/../../../../config.guess \ $(srcdir)/../../../../config.sub $(srcdir)/Makefile.in \ $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(srcdir)/../../../../mkinstalldirs + $(am__configure_deps) $(srcdir)/../../../../mkinstalldirs \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile \ + $(srcdir)/../../../../compile $(srcdir)/../../../../compile subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \ @@ -56,35 +63,46 @@ LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru lib_a_AR = $(AR) $(ARFLAGS) lib_a_LIBADD = -am_lib_a_OBJECTS = ioctl.$(OBJEXT) isatty.$(OBJEXT) read.$(OBJEXT) \ - lseek.$(OBJEXT) close.$(OBJEXT) sbrk.$(OBJEXT) fstat.$(OBJEXT) \ - cerror.$(OBJEXT) _exit.$(OBJEXT) write.$(OBJEXT) \ - open.$(OBJEXT) signal.$(OBJEXT) kill.$(OBJEXT) \ - getpid.$(OBJEXT) brk.$(OBJEXT) fork.$(OBJEXT) wait.$(OBJEXT) \ - execve.$(OBJEXT) exec.$(OBJEXT) utime.$(OBJEXT) \ - fcntl.$(OBJEXT) chmod.$(OBJEXT) getuid.$(OBJEXT) \ - getgid.$(OBJEXT) time.$(OBJEXT) stat.$(OBJEXT) link.$(OBJEXT) \ - unlink.$(OBJEXT) rename.$(OBJEXT) mkdir.$(OBJEXT) \ - rmdir.$(OBJEXT) sigaction.$(OBJEXT) sigprocmask.$(OBJEXT) \ - waitpid.$(OBJEXT) sysconf.$(OBJEXT) pathconf.$(OBJEXT) \ - fpathconf.$(OBJEXT) getdents.$(OBJEXT) opendir.$(OBJEXT) \ - readdir.$(OBJEXT) rewinddir.$(OBJEXT) closedir.$(OBJEXT) \ - pipe.$(OBJEXT) getgroups.$(OBJEXT) setuid.$(OBJEXT) \ - getuid.$(OBJEXT) setgid.$(OBJEXT) geteuid.$(OBJEXT) \ - getegid.$(OBJEXT) chdir.$(OBJEXT) dup2.$(OBJEXT) dup.$(OBJEXT) \ - tcgetattr.$(OBJEXT) tcsetattr.$(OBJEXT) speed.$(OBJEXT) \ - tcline.$(OBJEXT) times.$(OBJEXT) pause.$(OBJEXT) \ - sleep.$(OBJEXT) alarm.$(OBJEXT) access.$(OBJEXT) \ - _longjmp.$(OBJEXT) _setjmp.$(OBJEXT) +am_lib_a_OBJECTS = lib_a-ioctl.$(OBJEXT) lib_a-isatty.$(OBJEXT) \ + lib_a-read.$(OBJEXT) lib_a-lseek.$(OBJEXT) \ + lib_a-close.$(OBJEXT) lib_a-sbrk.$(OBJEXT) \ + lib_a-fstat.$(OBJEXT) lib_a-cerror.$(OBJEXT) \ + lib_a-_exit.$(OBJEXT) lib_a-write.$(OBJEXT) \ + lib_a-open.$(OBJEXT) lib_a-signal.$(OBJEXT) \ + lib_a-kill.$(OBJEXT) lib_a-getpid.$(OBJEXT) \ + lib_a-brk.$(OBJEXT) lib_a-fork.$(OBJEXT) lib_a-wait.$(OBJEXT) \ + lib_a-execve.$(OBJEXT) lib_a-exec.$(OBJEXT) \ + lib_a-utime.$(OBJEXT) lib_a-fcntl.$(OBJEXT) \ + lib_a-chmod.$(OBJEXT) lib_a-getuid.$(OBJEXT) \ + lib_a-getgid.$(OBJEXT) lib_a-time.$(OBJEXT) \ + lib_a-stat.$(OBJEXT) lib_a-link.$(OBJEXT) \ + lib_a-unlink.$(OBJEXT) lib_a-rename.$(OBJEXT) \ + lib_a-mkdir.$(OBJEXT) lib_a-rmdir.$(OBJEXT) \ + lib_a-sigaction.$(OBJEXT) lib_a-sigprocmask.$(OBJEXT) \ + lib_a-waitpid.$(OBJEXT) lib_a-sysconf.$(OBJEXT) \ + lib_a-pathconf.$(OBJEXT) lib_a-fpathconf.$(OBJEXT) \ + lib_a-getdents.$(OBJEXT) lib_a-opendir.$(OBJEXT) \ + lib_a-readdir.$(OBJEXT) lib_a-rewinddir.$(OBJEXT) \ + lib_a-closedir.$(OBJEXT) lib_a-pipe.$(OBJEXT) \ + lib_a-getgroups.$(OBJEXT) lib_a-setuid.$(OBJEXT) \ + lib_a-getuid.$(OBJEXT) lib_a-setgid.$(OBJEXT) \ + lib_a-geteuid.$(OBJEXT) lib_a-getegid.$(OBJEXT) \ + lib_a-chdir.$(OBJEXT) lib_a-dup2.$(OBJEXT) lib_a-dup.$(OBJEXT) \ + lib_a-tcgetattr.$(OBJEXT) lib_a-tcsetattr.$(OBJEXT) \ + lib_a-speed.$(OBJEXT) lib_a-tcline.$(OBJEXT) \ + lib_a-times.$(OBJEXT) lib_a-pause.$(OBJEXT) \ + lib_a-sleep.$(OBJEXT) lib_a-alarm.$(OBJEXT) \ + lib_a-access.$(OBJEXT) lib_a-_longjmp.$(OBJEXT) \ + lib_a-_setjmp.$(OBJEXT) lib_a_OBJECTS = $(am_lib_a_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) depcomp = am__depfiles_maybe = +CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) SOURCES = $(lib_a_SOURCES) ETAGS = etags CTAGS = ctags @@ -199,22 +217,24 @@ INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) AM_CCASFLAGS = $(INCLUDES) noinst_LIBRARIES = lib.a lib_a_SOURCES = \ - ioctl.s isatty.c read.s lseek.s close.s sbrk.c fstat.s cerror.s \ - _exit.s write.s open.s signal.s kill.s getpid.s brk.s fork.s wait.s \ - execve.s exec.c utime.s fcntl.s chmod.s getuid.s getgid.s time.s \ - stat.s link.s unlink.s rename.s mkdir.s rmdir.s sigaction.s \ - sigprocmask.s waitpid.s sysconf.s pathconf.s fpathconf.s \ - getdents.s opendir.c readdir.c rewinddir.c closedir.c pipe.s \ - getgroups.s setuid.s getuid.s setgid.s geteuid.s getegid.s \ - chdir.s dup2.c dup.c tcgetattr.c tcsetattr.c speed.c tcline.c \ - times.s pause.s sleep.c alarm.s access.s _longjmp.s _setjmp.s - + ioctl.S isatty.c read.S lseek.S close.S sbrk.c fstat.S cerror.S \ + _exit.S write.S open.S signal.S kill.S getpid.S brk.S fork.S wait.S \ + execve.S exec.c utime.S fcntl.S chmod.S getuid.S getgid.S time.S \ + stat.S link.S unlink.S rename.S mkdir.S rmdir.S sigaction.S \ + sigprocmask.S waitpid.S sysconf.S pathconf.S fpathconf.S \ + getdents.S opendir.c readdir.c rewinddir.c closedir.c pipe.S \ + getgroups.S setuid.S getuid.S setgid.S geteuid.S getegid.S \ + chdir.S dup2.c dup.c tcgetattr.c tcsetattr.c speed.c tcline.c \ + times.S pause.S sleep.c alarm.S access.S _longjmp.S _setjmp.S + +lib_a_CCASFLAGS = $(AM_CCASFLAGS) +lib_a_CFLAGS = $(AM_CFLAGS) ACLOCAL_AMFLAGS = -I ../../.. CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host all: all-am .SUFFIXES: -.SUFFIXES: .c .o .obj .s +.SUFFIXES: .S .c .o .obj am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @@ -262,17 +282,389 @@ mostlyclean-compile: distclean-compile: -rm -f *.tab.c +.S.o: + $(CCASCOMPILE) -c $< + +.S.obj: + $(CCASCOMPILE) -c `$(CYGPATH_W) '$<'` + +lib_a-ioctl.o: ioctl.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-ioctl.o `test -f 'ioctl.S' || echo '$(srcdir)/'`ioctl.S + +lib_a-ioctl.obj: ioctl.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-ioctl.obj `if test -f 'ioctl.S'; then $(CYGPATH_W) 'ioctl.S'; else $(CYGPATH_W) '$(srcdir)/ioctl.S'; fi` + +lib_a-read.o: read.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-read.o `test -f 'read.S' || echo '$(srcdir)/'`read.S + +lib_a-read.obj: read.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-read.obj `if test -f 'read.S'; then $(CYGPATH_W) 'read.S'; else $(CYGPATH_W) '$(srcdir)/read.S'; fi` + +lib_a-lseek.o: lseek.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-lseek.o `test -f 'lseek.S' || echo '$(srcdir)/'`lseek.S + +lib_a-lseek.obj: lseek.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-lseek.obj `if test -f 'lseek.S'; then $(CYGPATH_W) 'lseek.S'; else $(CYGPATH_W) '$(srcdir)/lseek.S'; fi` + +lib_a-close.o: close.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-close.o `test -f 'close.S' || echo '$(srcdir)/'`close.S + +lib_a-close.obj: close.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-close.obj `if test -f 'close.S'; then $(CYGPATH_W) 'close.S'; else $(CYGPATH_W) '$(srcdir)/close.S'; fi` + +lib_a-fstat.o: fstat.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fstat.o `test -f 'fstat.S' || echo '$(srcdir)/'`fstat.S + +lib_a-fstat.obj: fstat.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fstat.obj `if test -f 'fstat.S'; then $(CYGPATH_W) 'fstat.S'; else $(CYGPATH_W) '$(srcdir)/fstat.S'; fi` + +lib_a-cerror.o: cerror.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-cerror.o `test -f 'cerror.S' || echo '$(srcdir)/'`cerror.S + +lib_a-cerror.obj: cerror.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-cerror.obj `if test -f 'cerror.S'; then $(CYGPATH_W) 'cerror.S'; else $(CYGPATH_W) '$(srcdir)/cerror.S'; fi` + +lib_a-_exit.o: _exit.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-_exit.o `test -f '_exit.S' || echo '$(srcdir)/'`_exit.S + +lib_a-_exit.obj: _exit.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-_exit.obj `if test -f '_exit.S'; then $(CYGPATH_W) '_exit.S'; else $(CYGPATH_W) '$(srcdir)/_exit.S'; fi` + +lib_a-write.o: write.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-write.o `test -f 'write.S' || echo '$(srcdir)/'`write.S + +lib_a-write.obj: write.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-write.obj `if test -f 'write.S'; then $(CYGPATH_W) 'write.S'; else $(CYGPATH_W) '$(srcdir)/write.S'; fi` + +lib_a-open.o: open.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-open.o `test -f 'open.S' || echo '$(srcdir)/'`open.S + +lib_a-open.obj: open.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-open.obj `if test -f 'open.S'; then $(CYGPATH_W) 'open.S'; else $(CYGPATH_W) '$(srcdir)/open.S'; fi` + +lib_a-signal.o: signal.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-signal.o `test -f 'signal.S' || echo '$(srcdir)/'`signal.S + +lib_a-signal.obj: signal.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-signal.obj `if test -f 'signal.S'; then $(CYGPATH_W) 'signal.S'; else $(CYGPATH_W) '$(srcdir)/signal.S'; fi` + +lib_a-kill.o: kill.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-kill.o `test -f 'kill.S' || echo '$(srcdir)/'`kill.S + +lib_a-kill.obj: kill.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-kill.obj `if test -f 'kill.S'; then $(CYGPATH_W) 'kill.S'; else $(CYGPATH_W) '$(srcdir)/kill.S'; fi` + +lib_a-getpid.o: getpid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getpid.o `test -f 'getpid.S' || echo '$(srcdir)/'`getpid.S + +lib_a-getpid.obj: getpid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getpid.obj `if test -f 'getpid.S'; then $(CYGPATH_W) 'getpid.S'; else $(CYGPATH_W) '$(srcdir)/getpid.S'; fi` + +lib_a-brk.o: brk.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-brk.o `test -f 'brk.S' || echo '$(srcdir)/'`brk.S + +lib_a-brk.obj: brk.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-brk.obj `if test -f 'brk.S'; then $(CYGPATH_W) 'brk.S'; else $(CYGPATH_W) '$(srcdir)/brk.S'; fi` + +lib_a-fork.o: fork.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fork.o `test -f 'fork.S' || echo '$(srcdir)/'`fork.S + +lib_a-fork.obj: fork.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fork.obj `if test -f 'fork.S'; then $(CYGPATH_W) 'fork.S'; else $(CYGPATH_W) '$(srcdir)/fork.S'; fi` + +lib_a-wait.o: wait.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-wait.o `test -f 'wait.S' || echo '$(srcdir)/'`wait.S + +lib_a-wait.obj: wait.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-wait.obj `if test -f 'wait.S'; then $(CYGPATH_W) 'wait.S'; else $(CYGPATH_W) '$(srcdir)/wait.S'; fi` + +lib_a-execve.o: execve.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-execve.o `test -f 'execve.S' || echo '$(srcdir)/'`execve.S + +lib_a-execve.obj: execve.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-execve.obj `if test -f 'execve.S'; then $(CYGPATH_W) 'execve.S'; else $(CYGPATH_W) '$(srcdir)/execve.S'; fi` + +lib_a-utime.o: utime.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-utime.o `test -f 'utime.S' || echo '$(srcdir)/'`utime.S + +lib_a-utime.obj: utime.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-utime.obj `if test -f 'utime.S'; then $(CYGPATH_W) 'utime.S'; else $(CYGPATH_W) '$(srcdir)/utime.S'; fi` + +lib_a-fcntl.o: fcntl.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fcntl.o `test -f 'fcntl.S' || echo '$(srcdir)/'`fcntl.S + +lib_a-fcntl.obj: fcntl.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fcntl.obj `if test -f 'fcntl.S'; then $(CYGPATH_W) 'fcntl.S'; else $(CYGPATH_W) '$(srcdir)/fcntl.S'; fi` + +lib_a-chmod.o: chmod.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-chmod.o `test -f 'chmod.S' || echo '$(srcdir)/'`chmod.S + +lib_a-chmod.obj: chmod.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-chmod.obj `if test -f 'chmod.S'; then $(CYGPATH_W) 'chmod.S'; else $(CYGPATH_W) '$(srcdir)/chmod.S'; fi` + +lib_a-getuid.o: getuid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getuid.o `test -f 'getuid.S' || echo '$(srcdir)/'`getuid.S + +lib_a-getuid.obj: getuid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getuid.obj `if test -f 'getuid.S'; then $(CYGPATH_W) 'getuid.S'; else $(CYGPATH_W) '$(srcdir)/getuid.S'; fi` + +lib_a-getgid.o: getgid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getgid.o `test -f 'getgid.S' || echo '$(srcdir)/'`getgid.S + +lib_a-getgid.obj: getgid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getgid.obj `if test -f 'getgid.S'; then $(CYGPATH_W) 'getgid.S'; else $(CYGPATH_W) '$(srcdir)/getgid.S'; fi` + +lib_a-time.o: time.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-time.o `test -f 'time.S' || echo '$(srcdir)/'`time.S + +lib_a-time.obj: time.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-time.obj `if test -f 'time.S'; then $(CYGPATH_W) 'time.S'; else $(CYGPATH_W) '$(srcdir)/time.S'; fi` + +lib_a-stat.o: stat.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-stat.o `test -f 'stat.S' || echo '$(srcdir)/'`stat.S + +lib_a-stat.obj: stat.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-stat.obj `if test -f 'stat.S'; then $(CYGPATH_W) 'stat.S'; else $(CYGPATH_W) '$(srcdir)/stat.S'; fi` + +lib_a-link.o: link.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-link.o `test -f 'link.S' || echo '$(srcdir)/'`link.S + +lib_a-link.obj: link.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-link.obj `if test -f 'link.S'; then $(CYGPATH_W) 'link.S'; else $(CYGPATH_W) '$(srcdir)/link.S'; fi` + +lib_a-unlink.o: unlink.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-unlink.o `test -f 'unlink.S' || echo '$(srcdir)/'`unlink.S + +lib_a-unlink.obj: unlink.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-unlink.obj `if test -f 'unlink.S'; then $(CYGPATH_W) 'unlink.S'; else $(CYGPATH_W) '$(srcdir)/unlink.S'; fi` + +lib_a-rename.o: rename.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-rename.o `test -f 'rename.S' || echo '$(srcdir)/'`rename.S + +lib_a-rename.obj: rename.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-rename.obj `if test -f 'rename.S'; then $(CYGPATH_W) 'rename.S'; else $(CYGPATH_W) '$(srcdir)/rename.S'; fi` + +lib_a-mkdir.o: mkdir.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-mkdir.o `test -f 'mkdir.S' || echo '$(srcdir)/'`mkdir.S + +lib_a-mkdir.obj: mkdir.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-mkdir.obj `if test -f 'mkdir.S'; then $(CYGPATH_W) 'mkdir.S'; else $(CYGPATH_W) '$(srcdir)/mkdir.S'; fi` + +lib_a-rmdir.o: rmdir.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-rmdir.o `test -f 'rmdir.S' || echo '$(srcdir)/'`rmdir.S + +lib_a-rmdir.obj: rmdir.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-rmdir.obj `if test -f 'rmdir.S'; then $(CYGPATH_W) 'rmdir.S'; else $(CYGPATH_W) '$(srcdir)/rmdir.S'; fi` + +lib_a-sigaction.o: sigaction.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-sigaction.o `test -f 'sigaction.S' || echo '$(srcdir)/'`sigaction.S + +lib_a-sigaction.obj: sigaction.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-sigaction.obj `if test -f 'sigaction.S'; then $(CYGPATH_W) 'sigaction.S'; else $(CYGPATH_W) '$(srcdir)/sigaction.S'; fi` + +lib_a-sigprocmask.o: sigprocmask.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-sigprocmask.o `test -f 'sigprocmask.S' || echo '$(srcdir)/'`sigprocmask.S + +lib_a-sigprocmask.obj: sigprocmask.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-sigprocmask.obj `if test -f 'sigprocmask.S'; then $(CYGPATH_W) 'sigprocmask.S'; else $(CYGPATH_W) '$(srcdir)/sigprocmask.S'; fi` + +lib_a-waitpid.o: waitpid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-waitpid.o `test -f 'waitpid.S' || echo '$(srcdir)/'`waitpid.S + +lib_a-waitpid.obj: waitpid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-waitpid.obj `if test -f 'waitpid.S'; then $(CYGPATH_W) 'waitpid.S'; else $(CYGPATH_W) '$(srcdir)/waitpid.S'; fi` + +lib_a-sysconf.o: sysconf.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-sysconf.o `test -f 'sysconf.S' || echo '$(srcdir)/'`sysconf.S + +lib_a-sysconf.obj: sysconf.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-sysconf.obj `if test -f 'sysconf.S'; then $(CYGPATH_W) 'sysconf.S'; else $(CYGPATH_W) '$(srcdir)/sysconf.S'; fi` + +lib_a-pathconf.o: pathconf.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-pathconf.o `test -f 'pathconf.S' || echo '$(srcdir)/'`pathconf.S + +lib_a-pathconf.obj: pathconf.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-pathconf.obj `if test -f 'pathconf.S'; then $(CYGPATH_W) 'pathconf.S'; else $(CYGPATH_W) '$(srcdir)/pathconf.S'; fi` + +lib_a-fpathconf.o: fpathconf.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fpathconf.o `test -f 'fpathconf.S' || echo '$(srcdir)/'`fpathconf.S + +lib_a-fpathconf.obj: fpathconf.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-fpathconf.obj `if test -f 'fpathconf.S'; then $(CYGPATH_W) 'fpathconf.S'; else $(CYGPATH_W) '$(srcdir)/fpathconf.S'; fi` + +lib_a-getdents.o: getdents.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getdents.o `test -f 'getdents.S' || echo '$(srcdir)/'`getdents.S + +lib_a-getdents.obj: getdents.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getdents.obj `if test -f 'getdents.S'; then $(CYGPATH_W) 'getdents.S'; else $(CYGPATH_W) '$(srcdir)/getdents.S'; fi` + +lib_a-pipe.o: pipe.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-pipe.o `test -f 'pipe.S' || echo '$(srcdir)/'`pipe.S + +lib_a-pipe.obj: pipe.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-pipe.obj `if test -f 'pipe.S'; then $(CYGPATH_W) 'pipe.S'; else $(CYGPATH_W) '$(srcdir)/pipe.S'; fi` + +lib_a-getgroups.o: getgroups.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getgroups.o `test -f 'getgroups.S' || echo '$(srcdir)/'`getgroups.S + +lib_a-getgroups.obj: getgroups.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getgroups.obj `if test -f 'getgroups.S'; then $(CYGPATH_W) 'getgroups.S'; else $(CYGPATH_W) '$(srcdir)/getgroups.S'; fi` + +lib_a-setuid.o: setuid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setuid.o `test -f 'setuid.S' || echo '$(srcdir)/'`setuid.S + +lib_a-setuid.obj: setuid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setuid.obj `if test -f 'setuid.S'; then $(CYGPATH_W) 'setuid.S'; else $(CYGPATH_W) '$(srcdir)/setuid.S'; fi` + +lib_a-setgid.o: setgid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setgid.o `test -f 'setgid.S' || echo '$(srcdir)/'`setgid.S + +lib_a-setgid.obj: setgid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setgid.obj `if test -f 'setgid.S'; then $(CYGPATH_W) 'setgid.S'; else $(CYGPATH_W) '$(srcdir)/setgid.S'; fi` + +lib_a-geteuid.o: geteuid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-geteuid.o `test -f 'geteuid.S' || echo '$(srcdir)/'`geteuid.S + +lib_a-geteuid.obj: geteuid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-geteuid.obj `if test -f 'geteuid.S'; then $(CYGPATH_W) 'geteuid.S'; else $(CYGPATH_W) '$(srcdir)/geteuid.S'; fi` + +lib_a-getegid.o: getegid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getegid.o `test -f 'getegid.S' || echo '$(srcdir)/'`getegid.S + +lib_a-getegid.obj: getegid.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-getegid.obj `if test -f 'getegid.S'; then $(CYGPATH_W) 'getegid.S'; else $(CYGPATH_W) '$(srcdir)/getegid.S'; fi` + +lib_a-chdir.o: chdir.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-chdir.o `test -f 'chdir.S' || echo '$(srcdir)/'`chdir.S + +lib_a-chdir.obj: chdir.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-chdir.obj `if test -f 'chdir.S'; then $(CYGPATH_W) 'chdir.S'; else $(CYGPATH_W) '$(srcdir)/chdir.S'; fi` + +lib_a-times.o: times.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-times.o `test -f 'times.S' || echo '$(srcdir)/'`times.S + +lib_a-times.obj: times.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-times.obj `if test -f 'times.S'; then $(CYGPATH_W) 'times.S'; else $(CYGPATH_W) '$(srcdir)/times.S'; fi` + +lib_a-pause.o: pause.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-pause.o `test -f 'pause.S' || echo '$(srcdir)/'`pause.S + +lib_a-pause.obj: pause.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-pause.obj `if test -f 'pause.S'; then $(CYGPATH_W) 'pause.S'; else $(CYGPATH_W) '$(srcdir)/pause.S'; fi` + +lib_a-alarm.o: alarm.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-alarm.o `test -f 'alarm.S' || echo '$(srcdir)/'`alarm.S + +lib_a-alarm.obj: alarm.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-alarm.obj `if test -f 'alarm.S'; then $(CYGPATH_W) 'alarm.S'; else $(CYGPATH_W) '$(srcdir)/alarm.S'; fi` + +lib_a-access.o: access.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-access.o `test -f 'access.S' || echo '$(srcdir)/'`access.S + +lib_a-access.obj: access.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-access.obj `if test -f 'access.S'; then $(CYGPATH_W) 'access.S'; else $(CYGPATH_W) '$(srcdir)/access.S'; fi` + +lib_a-_longjmp.o: _longjmp.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-_longjmp.o `test -f '_longjmp.S' || echo '$(srcdir)/'`_longjmp.S + +lib_a-_longjmp.obj: _longjmp.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-_longjmp.obj `if test -f '_longjmp.S'; then $(CYGPATH_W) '_longjmp.S'; else $(CYGPATH_W) '$(srcdir)/_longjmp.S'; fi` + +lib_a-_setjmp.o: _setjmp.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-_setjmp.o `test -f '_setjmp.S' || echo '$(srcdir)/'`_setjmp.S + +lib_a-_setjmp.obj: _setjmp.S + $(CCAS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-_setjmp.obj `if test -f '_setjmp.S'; then $(CYGPATH_W) '_setjmp.S'; else $(CYGPATH_W) '$(srcdir)/_setjmp.S'; fi` + .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` -.s.o: - $(CCASCOMPILE) -c $< +lib_a-isatty.o: isatty.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isatty.o `test -f 'isatty.c' || echo '$(srcdir)/'`isatty.c -.s.obj: - $(CCASCOMPILE) -c `$(CYGPATH_W) '$<'` +lib_a-isatty.obj: isatty.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isatty.obj `if test -f 'isatty.c'; then $(CYGPATH_W) 'isatty.c'; else $(CYGPATH_W) '$(srcdir)/isatty.c'; fi` + +lib_a-sbrk.o: sbrk.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sbrk.o `test -f 'sbrk.c' || echo '$(srcdir)/'`sbrk.c + +lib_a-sbrk.obj: sbrk.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sbrk.obj `if test -f 'sbrk.c'; then $(CYGPATH_W) 'sbrk.c'; else $(CYGPATH_W) '$(srcdir)/sbrk.c'; fi` + +lib_a-exec.o: exec.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-exec.o `test -f 'exec.c' || echo '$(srcdir)/'`exec.c + +lib_a-exec.obj: exec.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-exec.obj `if test -f 'exec.c'; then $(CYGPATH_W) 'exec.c'; else $(CYGPATH_W) '$(srcdir)/exec.c'; fi` + +lib_a-opendir.o: opendir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-opendir.o `test -f 'opendir.c' || echo '$(srcdir)/'`opendir.c + +lib_a-opendir.obj: opendir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-opendir.obj `if test -f 'opendir.c'; then $(CYGPATH_W) 'opendir.c'; else $(CYGPATH_W) '$(srcdir)/opendir.c'; fi` + +lib_a-readdir.o: readdir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-readdir.o `test -f 'readdir.c' || echo '$(srcdir)/'`readdir.c + +lib_a-readdir.obj: readdir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-readdir.obj `if test -f 'readdir.c'; then $(CYGPATH_W) 'readdir.c'; else $(CYGPATH_W) '$(srcdir)/readdir.c'; fi` + +lib_a-rewinddir.o: rewinddir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-rewinddir.o `test -f 'rewinddir.c' || echo '$(srcdir)/'`rewinddir.c + +lib_a-rewinddir.obj: rewinddir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-rewinddir.obj `if test -f 'rewinddir.c'; then $(CYGPATH_W) 'rewinddir.c'; else $(CYGPATH_W) '$(srcdir)/rewinddir.c'; fi` + +lib_a-closedir.o: closedir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-closedir.o `test -f 'closedir.c' || echo '$(srcdir)/'`closedir.c + +lib_a-closedir.obj: closedir.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-closedir.obj `if test -f 'closedir.c'; then $(CYGPATH_W) 'closedir.c'; else $(CYGPATH_W) '$(srcdir)/closedir.c'; fi` + +lib_a-dup2.o: dup2.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-dup2.o `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c + +lib_a-dup2.obj: dup2.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-dup2.obj `if test -f 'dup2.c'; then $(CYGPATH_W) 'dup2.c'; else $(CYGPATH_W) '$(srcdir)/dup2.c'; fi` + +lib_a-dup.o: dup.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-dup.o `test -f 'dup.c' || echo '$(srcdir)/'`dup.c + +lib_a-dup.obj: dup.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-dup.obj `if test -f 'dup.c'; then $(CYGPATH_W) 'dup.c'; else $(CYGPATH_W) '$(srcdir)/dup.c'; fi` + +lib_a-tcgetattr.o: tcgetattr.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tcgetattr.o `test -f 'tcgetattr.c' || echo '$(srcdir)/'`tcgetattr.c + +lib_a-tcgetattr.obj: tcgetattr.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tcgetattr.obj `if test -f 'tcgetattr.c'; then $(CYGPATH_W) 'tcgetattr.c'; else $(CYGPATH_W) '$(srcdir)/tcgetattr.c'; fi` + +lib_a-tcsetattr.o: tcsetattr.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tcsetattr.o `test -f 'tcsetattr.c' || echo '$(srcdir)/'`tcsetattr.c + +lib_a-tcsetattr.obj: tcsetattr.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tcsetattr.obj `if test -f 'tcsetattr.c'; then $(CYGPATH_W) 'tcsetattr.c'; else $(CYGPATH_W) '$(srcdir)/tcsetattr.c'; fi` + +lib_a-speed.o: speed.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-speed.o `test -f 'speed.c' || echo '$(srcdir)/'`speed.c + +lib_a-speed.obj: speed.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-speed.obj `if test -f 'speed.c'; then $(CYGPATH_W) 'speed.c'; else $(CYGPATH_W) '$(srcdir)/speed.c'; fi` + +lib_a-tcline.o: tcline.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tcline.o `test -f 'tcline.c' || echo '$(srcdir)/'`tcline.c + +lib_a-tcline.obj: tcline.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-tcline.obj `if test -f 'tcline.c'; then $(CYGPATH_W) 'tcline.c'; else $(CYGPATH_W) '$(srcdir)/tcline.c'; fi` + +lib_a-sleep.o: sleep.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sleep.o `test -f 'sleep.c' || echo '$(srcdir)/'`sleep.c + +lib_a-sleep.obj: sleep.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sleep.obj `if test -f 'sleep.c'; then $(CYGPATH_W) 'sleep.c'; else $(CYGPATH_W) '$(srcdir)/sleep.c'; fi` uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) diff --git a/newlib/libc/sys/sysvi386/_exit.S b/newlib/libc/sys/sysvi386/_exit.S new file mode 100644 index 000000000..57e598979 --- /dev/null +++ b/newlib/libc/sys/sysvi386/_exit.S @@ -0,0 +1,6 @@ + + .globl _exit +_exit: + movl $1, %eax + lcall $7,$0 + diff --git a/newlib/libc/sys/sysvi386/_exit.s b/newlib/libc/sys/sysvi386/_exit.s deleted file mode 100644 index 57e598979..000000000 --- a/newlib/libc/sys/sysvi386/_exit.s +++ /dev/null @@ -1,6 +0,0 @@ - - .globl _exit -_exit: - movl $1, %eax - lcall $7,$0 - diff --git a/newlib/libc/sys/sysvi386/_longjmp.S b/newlib/libc/sys/sysvi386/_longjmp.S new file mode 100644 index 000000000..691409b0b --- /dev/null +++ b/newlib/libc/sys/sysvi386/_longjmp.S @@ -0,0 +1,31 @@ +/ +/ our buffer looks like: +/ eax,ebx,ecx,edx,esi,edi,esp,ebp,pc +/ +/ _longjmp is called with two parameters: jmp_buf*,int +/ jmp_buf* is at 4(%esp), int is at 8(%esp) +/ retaddr is, of course, at (%esp) + + .globl _longjmp + .globl longjmp +_longjmp: +longjmp: + movl 4(%esp), %ebx / address of buf + movl 8(%esp), %eax / store return value + + movl 24(%ebx), %esp / restore stack + movl 32(%ebx), %edi +/ Next line sets up return address. + movl %edi, 0(%esp) + movl 8(%ebx), %ecx + movl 12(%ebx), %edx + movl 16(%ebx), %esi + movl 20(%ebx), %edi + movl 28(%ebx), %ebp + movl 4(%ebx), %ebx + testl %eax,%eax + jne bye + incl %eax / eax hold 0 if we are here +bye: + ret + diff --git a/newlib/libc/sys/sysvi386/_longjmp.s b/newlib/libc/sys/sysvi386/_longjmp.s deleted file mode 100644 index 691409b0b..000000000 --- a/newlib/libc/sys/sysvi386/_longjmp.s +++ /dev/null @@ -1,31 +0,0 @@ -/ -/ our buffer looks like: -/ eax,ebx,ecx,edx,esi,edi,esp,ebp,pc -/ -/ _longjmp is called with two parameters: jmp_buf*,int -/ jmp_buf* is at 4(%esp), int is at 8(%esp) -/ retaddr is, of course, at (%esp) - - .globl _longjmp - .globl longjmp -_longjmp: -longjmp: - movl 4(%esp), %ebx / address of buf - movl 8(%esp), %eax / store return value - - movl 24(%ebx), %esp / restore stack - movl 32(%ebx), %edi -/ Next line sets up return address. - movl %edi, 0(%esp) - movl 8(%ebx), %ecx - movl 12(%ebx), %edx - movl 16(%ebx), %esi - movl 20(%ebx), %edi - movl 28(%ebx), %ebp - movl 4(%ebx), %ebx - testl %eax,%eax - jne bye - incl %eax / eax hold 0 if we are here -bye: - ret - diff --git a/newlib/libc/sys/sysvi386/_setjmp.S b/newlib/libc/sys/sysvi386/_setjmp.S new file mode 100644 index 000000000..8f191b59a --- /dev/null +++ b/newlib/libc/sys/sysvi386/_setjmp.S @@ -0,0 +1,24 @@ +/ +/ our buffer looks like: +/ eax,ebx,ecx,edx,esi,edi,esp,ebp,pc + + .globl _setjmp + .globl setjmp +_setjmp: +setjmp: + pushl %ebx + movl 8(%esp), %ebx + movl %eax, (%ebx) + popl %eax + movl %eax, 4(%ebx) + movl %ecx, 8(%ebx) + movl %edx, 12(%ebx) + movl %esi, 16(%ebx) + movl %edi, 20(%ebx) + movl %esp, 24(%ebx) + movl %ebp, 28(%ebx) + movl (%esp), %eax + movl %eax, 32(%ebx) + xorl %eax, %eax + ret + diff --git a/newlib/libc/sys/sysvi386/_setjmp.s b/newlib/libc/sys/sysvi386/_setjmp.s deleted file mode 100644 index 8f191b59a..000000000 --- a/newlib/libc/sys/sysvi386/_setjmp.s +++ /dev/null @@ -1,24 +0,0 @@ -/ -/ our buffer looks like: -/ eax,ebx,ecx,edx,esi,edi,esp,ebp,pc - - .globl _setjmp - .globl setjmp -_setjmp: -setjmp: - pushl %ebx - movl 8(%esp), %ebx - movl %eax, (%ebx) - popl %eax - movl %eax, 4(%ebx) - movl %ecx, 8(%ebx) - movl %edx, 12(%ebx) - movl %esi, 16(%ebx) - movl %edi, 20(%ebx) - movl %esp, 24(%ebx) - movl %ebp, 28(%ebx) - movl (%esp), %eax - movl %eax, 32(%ebx) - xorl %eax, %eax - ret - diff --git a/newlib/libc/sys/sysvi386/access.S b/newlib/libc/sys/sysvi386/access.S new file mode 100644 index 000000000..bf35891dc --- /dev/null +++ b/newlib/libc/sys/sysvi386/access.S @@ -0,0 +1,8 @@ + .globl _access + .globl access +access: +_access: + movl $0x21, %eax + lcall $7, $0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/access.s b/newlib/libc/sys/sysvi386/access.s deleted file mode 100644 index bf35891dc..000000000 --- a/newlib/libc/sys/sysvi386/access.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _access - .globl access -access: -_access: - movl $0x21, %eax - lcall $7, $0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/alarm.S b/newlib/libc/sys/sysvi386/alarm.S new file mode 100644 index 000000000..f31b3d380 --- /dev/null +++ b/newlib/libc/sys/sysvi386/alarm.S @@ -0,0 +1,5 @@ + .globl _alarm +_alarm: + movl $0x1b, %eax + lcall $7,$0 + ret diff --git a/newlib/libc/sys/sysvi386/alarm.s b/newlib/libc/sys/sysvi386/alarm.s deleted file mode 100644 index f31b3d380..000000000 --- a/newlib/libc/sys/sysvi386/alarm.s +++ /dev/null @@ -1,5 +0,0 @@ - .globl _alarm -_alarm: - movl $0x1b, %eax - lcall $7,$0 - ret diff --git a/newlib/libc/sys/sysvi386/brk.S b/newlib/libc/sys/sysvi386/brk.S new file mode 100644 index 000000000..c3cb43f11 --- /dev/null +++ b/newlib/libc/sys/sysvi386/brk.S @@ -0,0 +1,8 @@ + + .globl _brk +_brk: + movl $0x11, %eax + lcall $7,$0 + jb _cerror + xor %eax,%eax + ret diff --git a/newlib/libc/sys/sysvi386/brk.s b/newlib/libc/sys/sysvi386/brk.s deleted file mode 100644 index c3cb43f11..000000000 --- a/newlib/libc/sys/sysvi386/brk.s +++ /dev/null @@ -1,8 +0,0 @@ - - .globl _brk -_brk: - movl $0x11, %eax - lcall $7,$0 - jb _cerror - xor %eax,%eax - ret diff --git a/newlib/libc/sys/sysvi386/cerror.S b/newlib/libc/sys/sysvi386/cerror.S new file mode 100644 index 000000000..9d53bae15 --- /dev/null +++ b/newlib/libc/sys/sysvi386/cerror.S @@ -0,0 +1,9 @@ + .globl _cerror +_cerror: + movl %eax, errno + movl $-1, %eax + ret + .data + .globl errno +errno: .long 0 + diff --git a/newlib/libc/sys/sysvi386/cerror.s b/newlib/libc/sys/sysvi386/cerror.s deleted file mode 100644 index 9d53bae15..000000000 --- a/newlib/libc/sys/sysvi386/cerror.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _cerror -_cerror: - movl %eax, errno - movl $-1, %eax - ret - .data - .globl errno -errno: .long 0 - diff --git a/newlib/libc/sys/sysvi386/chdir.S b/newlib/libc/sys/sysvi386/chdir.S new file mode 100644 index 000000000..9974c8668 --- /dev/null +++ b/newlib/libc/sys/sysvi386/chdir.S @@ -0,0 +1,9 @@ + .globl _chdir + .globl chdir +_chdir: +chdir: + movl $0xc, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/chdir.s b/newlib/libc/sys/sysvi386/chdir.s deleted file mode 100644 index 9974c8668..000000000 --- a/newlib/libc/sys/sysvi386/chdir.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _chdir - .globl chdir -_chdir: -chdir: - movl $0xc, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/chmod.S b/newlib/libc/sys/sysvi386/chmod.S new file mode 100644 index 000000000..ab5ef3d6a --- /dev/null +++ b/newlib/libc/sys/sysvi386/chmod.S @@ -0,0 +1,9 @@ + .globl _chmod + .globl chmod +_chmod: +chmod: + movl $0xf, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/chmod.s b/newlib/libc/sys/sysvi386/chmod.s deleted file mode 100644 index ab5ef3d6a..000000000 --- a/newlib/libc/sys/sysvi386/chmod.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _chmod - .globl chmod -_chmod: -chmod: - movl $0xf, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/close.S b/newlib/libc/sys/sysvi386/close.S new file mode 100644 index 000000000..e46c0c13d --- /dev/null +++ b/newlib/libc/sys/sysvi386/close.S @@ -0,0 +1,9 @@ + .globl _close + .globl close +_close: +close: + movl $6, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/close.s b/newlib/libc/sys/sysvi386/close.s deleted file mode 100644 index e46c0c13d..000000000 --- a/newlib/libc/sys/sysvi386/close.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _close - .globl close -_close: -close: - movl $6, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/execve.S b/newlib/libc/sys/sysvi386/execve.S new file mode 100644 index 000000000..d1d29bc9f --- /dev/null +++ b/newlib/libc/sys/sysvi386/execve.S @@ -0,0 +1,7 @@ + .globl _execve + .globl execve +_execve: +execve: + movl $0x3b, %eax + lcall $7,$0 + jb _cerror diff --git a/newlib/libc/sys/sysvi386/execve.s b/newlib/libc/sys/sysvi386/execve.s deleted file mode 100644 index d1d29bc9f..000000000 --- a/newlib/libc/sys/sysvi386/execve.s +++ /dev/null @@ -1,7 +0,0 @@ - .globl _execve - .globl execve -_execve: -execve: - movl $0x3b, %eax - lcall $7,$0 - jb _cerror diff --git a/newlib/libc/sys/sysvi386/fcntl.S b/newlib/libc/sys/sysvi386/fcntl.S new file mode 100644 index 000000000..dc3e11f74 --- /dev/null +++ b/newlib/libc/sys/sysvi386/fcntl.S @@ -0,0 +1,9 @@ + + .globl _fcntl + .globl fcntl +_fcntl: +fcntl: + movl $0x3e, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/fcntl.s b/newlib/libc/sys/sysvi386/fcntl.s deleted file mode 100644 index dc3e11f74..000000000 --- a/newlib/libc/sys/sysvi386/fcntl.s +++ /dev/null @@ -1,9 +0,0 @@ - - .globl _fcntl - .globl fcntl -_fcntl: -fcntl: - movl $0x3e, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/fork.S b/newlib/libc/sys/sysvi386/fork.S new file mode 100644 index 000000000..8c9b60035 --- /dev/null +++ b/newlib/libc/sys/sysvi386/fork.S @@ -0,0 +1,12 @@ + .globl _fork + .globl fork +_fork: +fork: + movl $2, %eax + lcall $7,$0 + jb _cerror + testl %edx, %edx + je bye + xorl %eax,%eax +bye: + ret diff --git a/newlib/libc/sys/sysvi386/fork.s b/newlib/libc/sys/sysvi386/fork.s deleted file mode 100644 index 8c9b60035..000000000 --- a/newlib/libc/sys/sysvi386/fork.s +++ /dev/null @@ -1,12 +0,0 @@ - .globl _fork - .globl fork -_fork: -fork: - movl $2, %eax - lcall $7,$0 - jb _cerror - testl %edx, %edx - je bye - xorl %eax,%eax -bye: - ret diff --git a/newlib/libc/sys/sysvi386/fpathconf.S b/newlib/libc/sys/sysvi386/fpathconf.S new file mode 100644 index 000000000..b55ea92d1 --- /dev/null +++ b/newlib/libc/sys/sysvi386/fpathconf.S @@ -0,0 +1,6 @@ + .globl fpathconf +fpathconf: + movl $0x2f28, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/fpathconf.s b/newlib/libc/sys/sysvi386/fpathconf.s deleted file mode 100644 index b55ea92d1..000000000 --- a/newlib/libc/sys/sysvi386/fpathconf.s +++ /dev/null @@ -1,6 +0,0 @@ - .globl fpathconf -fpathconf: - movl $0x2f28, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/fps.S b/newlib/libc/sys/sysvi386/fps.S new file mode 100644 index 000000000..83214dff4 --- /dev/null +++ b/newlib/libc/sys/sysvi386/fps.S @@ -0,0 +1,18 @@ + .globl _fpgetsticky +_fpgetsticky: + getpsw r0 + and.w #0x1f00,r0 + shl.w #0xf8,r0 + ret #0x0 + + + .globl _fpsetsticky +_fpsetsticky: + getpsw r0 + mov.w [ap],r1 + shl.w #0x8,r1 + updpsw.h r1,#0x1f00 + trapfl + and.w #0x1f00,r0 + shl.w #0xf8,r0 + ret #0x0 diff --git a/newlib/libc/sys/sysvi386/fps.s b/newlib/libc/sys/sysvi386/fps.s deleted file mode 100644 index 83214dff4..000000000 --- a/newlib/libc/sys/sysvi386/fps.s +++ /dev/null @@ -1,18 +0,0 @@ - .globl _fpgetsticky -_fpgetsticky: - getpsw r0 - and.w #0x1f00,r0 - shl.w #0xf8,r0 - ret #0x0 - - - .globl _fpsetsticky -_fpsetsticky: - getpsw r0 - mov.w [ap],r1 - shl.w #0x8,r1 - updpsw.h r1,#0x1f00 - trapfl - and.w #0x1f00,r0 - shl.w #0xf8,r0 - ret #0x0 diff --git a/newlib/libc/sys/sysvi386/fstat.S b/newlib/libc/sys/sysvi386/fstat.S new file mode 100644 index 000000000..ced264526 --- /dev/null +++ b/newlib/libc/sys/sysvi386/fstat.S @@ -0,0 +1,9 @@ + .globl _fstat + .globl fstat +_fstat: +fstat: + movl $0x1c, %eax + lcall $7,$0 + jb _cerror + xor %eax,%eax + ret diff --git a/newlib/libc/sys/sysvi386/fstat.s b/newlib/libc/sys/sysvi386/fstat.s deleted file mode 100644 index ced264526..000000000 --- a/newlib/libc/sys/sysvi386/fstat.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _fstat - .globl fstat -_fstat: -fstat: - movl $0x1c, %eax - lcall $7,$0 - jb _cerror - xor %eax,%eax - ret diff --git a/newlib/libc/sys/sysvi386/getdents.S b/newlib/libc/sys/sysvi386/getdents.S new file mode 100644 index 000000000..524a88727 --- /dev/null +++ b/newlib/libc/sys/sysvi386/getdents.S @@ -0,0 +1,6 @@ + .globl _getdents +_getdents: + movl $0x51, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/getdents.s b/newlib/libc/sys/sysvi386/getdents.s deleted file mode 100644 index 524a88727..000000000 --- a/newlib/libc/sys/sysvi386/getdents.s +++ /dev/null @@ -1,6 +0,0 @@ - .globl _getdents -_getdents: - movl $0x51, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/getegid.S b/newlib/libc/sys/sysvi386/getegid.S new file mode 100644 index 000000000..3a9709841 --- /dev/null +++ b/newlib/libc/sys/sysvi386/getegid.S @@ -0,0 +1,9 @@ + .globl _getegid + .globl getegid +_getegid: +getegid: + movl $0x2f, %eax + lcall $7,$0 + movl %edx,%eax + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/getegid.s b/newlib/libc/sys/sysvi386/getegid.s deleted file mode 100644 index 3a9709841..000000000 --- a/newlib/libc/sys/sysvi386/getegid.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _getegid - .globl getegid -_getegid: -getegid: - movl $0x2f, %eax - lcall $7,$0 - movl %edx,%eax - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/geteuid.S b/newlib/libc/sys/sysvi386/geteuid.S new file mode 100644 index 000000000..ae45c473f --- /dev/null +++ b/newlib/libc/sys/sysvi386/geteuid.S @@ -0,0 +1,9 @@ + .globl _geteuid + .globl geteuid +_geteuid: +geteuid: + movl $0x18, %eax + lcall $7,$0 + movl %edx,%eax + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/geteuid.s b/newlib/libc/sys/sysvi386/geteuid.s deleted file mode 100644 index ae45c473f..000000000 --- a/newlib/libc/sys/sysvi386/geteuid.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _geteuid - .globl geteuid -_geteuid: -geteuid: - movl $0x18, %eax - lcall $7,$0 - movl %edx,%eax - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/getgid.S b/newlib/libc/sys/sysvi386/getgid.S new file mode 100644 index 000000000..47a6391f8 --- /dev/null +++ b/newlib/libc/sys/sysvi386/getgid.S @@ -0,0 +1,8 @@ + .globl _getgid + .globl getgid +_getgid: +getgid: + movl $0x2f, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/getgid.s b/newlib/libc/sys/sysvi386/getgid.s deleted file mode 100644 index 47a6391f8..000000000 --- a/newlib/libc/sys/sysvi386/getgid.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _getgid - .globl getgid -_getgid: -getgid: - movl $0x2f, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/getgroups.S b/newlib/libc/sys/sysvi386/getgroups.S new file mode 100644 index 000000000..d690adf44 --- /dev/null +++ b/newlib/libc/sys/sysvi386/getgroups.S @@ -0,0 +1,8 @@ + .globl _getgroups + .globl getgroups +_getgroups: +getgroups: + movl $0x2b28, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/getgroups.s b/newlib/libc/sys/sysvi386/getgroups.s deleted file mode 100644 index d690adf44..000000000 --- a/newlib/libc/sys/sysvi386/getgroups.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _getgroups - .globl getgroups -_getgroups: -getgroups: - movl $0x2b28, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/getpid.S b/newlib/libc/sys/sysvi386/getpid.S new file mode 100644 index 000000000..6d19dffc9 --- /dev/null +++ b/newlib/libc/sys/sysvi386/getpid.S @@ -0,0 +1,9 @@ + + .globl _getpid + .globl getpid +_getpid: +getpid: + movl $0x14, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/getpid.s b/newlib/libc/sys/sysvi386/getpid.s deleted file mode 100644 index 6d19dffc9..000000000 --- a/newlib/libc/sys/sysvi386/getpid.s +++ /dev/null @@ -1,9 +0,0 @@ - - .globl _getpid - .globl getpid -_getpid: -getpid: - movl $0x14, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/getuid.S b/newlib/libc/sys/sysvi386/getuid.S new file mode 100644 index 000000000..9c4dfe3a4 --- /dev/null +++ b/newlib/libc/sys/sysvi386/getuid.S @@ -0,0 +1,8 @@ + .globl _getuid + .globl getuid +_getuid: +getuid: + movl $0x18, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/getuid.s b/newlib/libc/sys/sysvi386/getuid.s deleted file mode 100644 index 9c4dfe3a4..000000000 --- a/newlib/libc/sys/sysvi386/getuid.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _getuid - .globl getuid -_getuid: -getuid: - movl $0x18, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/ioctl.S b/newlib/libc/sys/sysvi386/ioctl.S new file mode 100644 index 000000000..b63597d1f --- /dev/null +++ b/newlib/libc/sys/sysvi386/ioctl.S @@ -0,0 +1,9 @@ + + .globl _ioctl + .globl ioctl +_ioctl: +ioctl: + movl $0x36, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/ioctl.s b/newlib/libc/sys/sysvi386/ioctl.s deleted file mode 100644 index b63597d1f..000000000 --- a/newlib/libc/sys/sysvi386/ioctl.s +++ /dev/null @@ -1,9 +0,0 @@ - - .globl _ioctl - .globl ioctl -_ioctl: -ioctl: - movl $0x36, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/kill.S b/newlib/libc/sys/sysvi386/kill.S new file mode 100644 index 000000000..805d8f778 --- /dev/null +++ b/newlib/libc/sys/sysvi386/kill.S @@ -0,0 +1,9 @@ + .globl _kill + .globl kill +_kill: +kill: + movl $0x25, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/kill.s b/newlib/libc/sys/sysvi386/kill.s deleted file mode 100644 index 805d8f778..000000000 --- a/newlib/libc/sys/sysvi386/kill.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _kill - .globl kill -_kill: -kill: - movl $0x25, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/link.S b/newlib/libc/sys/sysvi386/link.S new file mode 100644 index 000000000..d298cd08e --- /dev/null +++ b/newlib/libc/sys/sysvi386/link.S @@ -0,0 +1,9 @@ + .globl _link + .globl link +_link: +link: + movl $0x9, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/link.s b/newlib/libc/sys/sysvi386/link.s deleted file mode 100644 index d298cd08e..000000000 --- a/newlib/libc/sys/sysvi386/link.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _link - .globl link -_link: -link: - movl $0x9, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/lseek.S b/newlib/libc/sys/sysvi386/lseek.S new file mode 100644 index 000000000..88b2fc1b0 --- /dev/null +++ b/newlib/libc/sys/sysvi386/lseek.S @@ -0,0 +1,8 @@ + .globl _lseek + .globl lseek +_lseek: +lseek: + movl $0x13, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/lseek.s b/newlib/libc/sys/sysvi386/lseek.s deleted file mode 100644 index 88b2fc1b0..000000000 --- a/newlib/libc/sys/sysvi386/lseek.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _lseek - .globl lseek -_lseek: -lseek: - movl $0x13, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/mkdir.S b/newlib/libc/sys/sysvi386/mkdir.S new file mode 100644 index 000000000..b2888eb68 --- /dev/null +++ b/newlib/libc/sys/sysvi386/mkdir.S @@ -0,0 +1,9 @@ + .globl _mkdir + .globl mkdir +_mkdir: +mkdir: + movl $0x50, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/mkdir.s b/newlib/libc/sys/sysvi386/mkdir.s deleted file mode 100644 index b2888eb68..000000000 --- a/newlib/libc/sys/sysvi386/mkdir.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _mkdir - .globl mkdir -_mkdir: -mkdir: - movl $0x50, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/open.S b/newlib/libc/sys/sysvi386/open.S new file mode 100644 index 000000000..97356f1ad --- /dev/null +++ b/newlib/libc/sys/sysvi386/open.S @@ -0,0 +1,9 @@ + + .globl _open + .globl open +_open: +open: + movl $5, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/open.s b/newlib/libc/sys/sysvi386/open.s deleted file mode 100644 index 97356f1ad..000000000 --- a/newlib/libc/sys/sysvi386/open.s +++ /dev/null @@ -1,9 +0,0 @@ - - .globl _open - .globl open -_open: -open: - movl $5, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/pathconf.S b/newlib/libc/sys/sysvi386/pathconf.S new file mode 100644 index 000000000..23de786d9 --- /dev/null +++ b/newlib/libc/sys/sysvi386/pathconf.S @@ -0,0 +1,6 @@ + .globl pathconf +pathconf: + movl $0x2e28, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/pathconf.s b/newlib/libc/sys/sysvi386/pathconf.s deleted file mode 100644 index 23de786d9..000000000 --- a/newlib/libc/sys/sysvi386/pathconf.s +++ /dev/null @@ -1,6 +0,0 @@ - .globl pathconf -pathconf: - movl $0x2e28, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/pause.S b/newlib/libc/sys/sysvi386/pause.S new file mode 100644 index 000000000..8e8bd229b --- /dev/null +++ b/newlib/libc/sys/sysvi386/pause.S @@ -0,0 +1,6 @@ + .globl _pause +_pause: + movl $0x1d, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/pause.s b/newlib/libc/sys/sysvi386/pause.s deleted file mode 100644 index 8e8bd229b..000000000 --- a/newlib/libc/sys/sysvi386/pause.s +++ /dev/null @@ -1,6 +0,0 @@ - .globl _pause -_pause: - movl $0x1d, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/pipe.S b/newlib/libc/sys/sysvi386/pipe.S new file mode 100644 index 000000000..6365bcbe6 --- /dev/null +++ b/newlib/libc/sys/sysvi386/pipe.S @@ -0,0 +1,12 @@ + .globl _pipe + .globl pipe +_pipe: +pipe: + movl $0x2a, %eax + lcall $7,$0 + jb _cerror + movl 4(%esp), %ecx + movl (%ecx), %eax + movl 4(%ecx), %edx + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/pipe.s b/newlib/libc/sys/sysvi386/pipe.s deleted file mode 100644 index 6365bcbe6..000000000 --- a/newlib/libc/sys/sysvi386/pipe.s +++ /dev/null @@ -1,12 +0,0 @@ - .globl _pipe - .globl pipe -_pipe: -pipe: - movl $0x2a, %eax - lcall $7,$0 - jb _cerror - movl 4(%esp), %ecx - movl (%ecx), %eax - movl 4(%ecx), %edx - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/read.S b/newlib/libc/sys/sysvi386/read.S new file mode 100644 index 000000000..8ecb5bacf --- /dev/null +++ b/newlib/libc/sys/sysvi386/read.S @@ -0,0 +1,8 @@ + .globl _read + .globl read +_read: +read: + movl $3, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/read.s b/newlib/libc/sys/sysvi386/read.s deleted file mode 100644 index 8ecb5bacf..000000000 --- a/newlib/libc/sys/sysvi386/read.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _read - .globl read -_read: -read: - movl $3, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/rename.S b/newlib/libc/sys/sysvi386/rename.S new file mode 100644 index 000000000..61a69c59e --- /dev/null +++ b/newlib/libc/sys/sysvi386/rename.S @@ -0,0 +1,9 @@ + .globl _rename + .globl rename +_rename: +rename: + movl $0x3028, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/rename.s b/newlib/libc/sys/sysvi386/rename.s deleted file mode 100644 index 61a69c59e..000000000 --- a/newlib/libc/sys/sysvi386/rename.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _rename - .globl rename -_rename: -rename: - movl $0x3028, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/rmdir.S b/newlib/libc/sys/sysvi386/rmdir.S new file mode 100644 index 000000000..427ee108d --- /dev/null +++ b/newlib/libc/sys/sysvi386/rmdir.S @@ -0,0 +1,9 @@ + .globl _rmdir + .globl rmdir +_rmdir: +rmdir: + movl $0x4f, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/rmdir.s b/newlib/libc/sys/sysvi386/rmdir.s deleted file mode 100644 index 427ee108d..000000000 --- a/newlib/libc/sys/sysvi386/rmdir.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _rmdir - .globl rmdir -_rmdir: -rmdir: - movl $0x4f, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/setgid.S b/newlib/libc/sys/sysvi386/setgid.S new file mode 100644 index 000000000..a55dbf89e --- /dev/null +++ b/newlib/libc/sys/sysvi386/setgid.S @@ -0,0 +1,9 @@ + .globl _setgid + .globl setgid +_setgid: +setgid: + movl $0x2e, %eax + lcall $7,$0 + jb _cerror + xor %eax,%eax + ret diff --git a/newlib/libc/sys/sysvi386/setgid.s b/newlib/libc/sys/sysvi386/setgid.s deleted file mode 100644 index a55dbf89e..000000000 --- a/newlib/libc/sys/sysvi386/setgid.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _setgid - .globl setgid -_setgid: -setgid: - movl $0x2e, %eax - lcall $7,$0 - jb _cerror - xor %eax,%eax - ret diff --git a/newlib/libc/sys/sysvi386/setuid.S b/newlib/libc/sys/sysvi386/setuid.S new file mode 100644 index 000000000..f24da1fd1 --- /dev/null +++ b/newlib/libc/sys/sysvi386/setuid.S @@ -0,0 +1,9 @@ + .globl _setuid + .globl setuid +_setuid: +setuid: + movl $0x17, %eax + lcall $7,$0 + jb _cerror + xor %eax,%eax + ret diff --git a/newlib/libc/sys/sysvi386/setuid.s b/newlib/libc/sys/sysvi386/setuid.s deleted file mode 100644 index f24da1fd1..000000000 --- a/newlib/libc/sys/sysvi386/setuid.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _setuid - .globl setuid -_setuid: -setuid: - movl $0x17, %eax - lcall $7,$0 - jb _cerror - xor %eax,%eax - ret diff --git a/newlib/libc/sys/sysvi386/sigaction.S b/newlib/libc/sys/sysvi386/sigaction.S new file mode 100644 index 000000000..35a1b8d2a --- /dev/null +++ b/newlib/libc/sys/sysvi386/sigaction.S @@ -0,0 +1,20 @@ +/ +/ The SCO signal stuff seems to be weird. The POSIX stuff appears to +/ "extended" system calls, and use values in eax and edx. +/ Like most of the other signal routines, it takes a function pointer +/ in %edx. Since this function is terribly small, I am including it +/ in all of the ones that need it, for now at least. Seems silly to include +/ a whole file for two instructions. + +sigret: + addl $4, %esp + lcall $0xf, $0 + .globl sigaction +sigaction: + movl $0x2728, %eax + movl sigret, %edx + lcall $7,$0 + jb _cerror + ret + addl $4, %esp + lcall $0xf,$0 diff --git a/newlib/libc/sys/sysvi386/sigaction.s b/newlib/libc/sys/sysvi386/sigaction.s deleted file mode 100644 index 35a1b8d2a..000000000 --- a/newlib/libc/sys/sysvi386/sigaction.s +++ /dev/null @@ -1,20 +0,0 @@ -/ -/ The SCO signal stuff seems to be weird. The POSIX stuff appears to -/ "extended" system calls, and use values in eax and edx. -/ Like most of the other signal routines, it takes a function pointer -/ in %edx. Since this function is terribly small, I am including it -/ in all of the ones that need it, for now at least. Seems silly to include -/ a whole file for two instructions. - -sigret: - addl $4, %esp - lcall $0xf, $0 - .globl sigaction -sigaction: - movl $0x2728, %eax - movl sigret, %edx - lcall $7,$0 - jb _cerror - ret - addl $4, %esp - lcall $0xf,$0 diff --git a/newlib/libc/sys/sysvi386/signal.S b/newlib/libc/sys/sysvi386/signal.S new file mode 100644 index 000000000..2418eb02b --- /dev/null +++ b/newlib/libc/sys/sysvi386/signal.S @@ -0,0 +1,16 @@ +/ According to the iBCS2 book, signal() has 0x30 in %eax, and the address +/ of a function in %edx. This function is where a signal handler will +/ return to; it should just adjust the stack pointer, and call $f,$0. +/ Strange but true. + .globl signal + +sigret: + addl $4, %esp + lcall $0xf, $0 +signal: + movl $0x30, %eax + movl sigret, %edx + lcall $7,$0 + jb _cerror +/ The iBCS2 book also clears out %eax here, which seems to be broken. + ret diff --git a/newlib/libc/sys/sysvi386/signal.s b/newlib/libc/sys/sysvi386/signal.s deleted file mode 100644 index 2418eb02b..000000000 --- a/newlib/libc/sys/sysvi386/signal.s +++ /dev/null @@ -1,16 +0,0 @@ -/ According to the iBCS2 book, signal() has 0x30 in %eax, and the address -/ of a function in %edx. This function is where a signal handler will -/ return to; it should just adjust the stack pointer, and call $f,$0. -/ Strange but true. - .globl signal - -sigret: - addl $4, %esp - lcall $0xf, $0 -signal: - movl $0x30, %eax - movl sigret, %edx - lcall $7,$0 - jb _cerror -/ The iBCS2 book also clears out %eax here, which seems to be broken. - ret diff --git a/newlib/libc/sys/sysvi386/sigprocmask.S b/newlib/libc/sys/sysvi386/sigprocmask.S new file mode 100644 index 000000000..fa988d538 --- /dev/null +++ b/newlib/libc/sys/sysvi386/sigprocmask.S @@ -0,0 +1,12 @@ +/ +/ The SCO signal stuff seems to be weird. The POSIX stuff appears to +/ "extended" system calls, and use values in eax and edx. +/ + .globl sigprocmask +sigprocmask: + movl $0x2828, %eax + lcall $7,$0 + jb _cerror + ret + addl $4, %esp + lcall $0xf,$0 diff --git a/newlib/libc/sys/sysvi386/sigprocmask.s b/newlib/libc/sys/sysvi386/sigprocmask.s deleted file mode 100644 index fa988d538..000000000 --- a/newlib/libc/sys/sysvi386/sigprocmask.s +++ /dev/null @@ -1,12 +0,0 @@ -/ -/ The SCO signal stuff seems to be weird. The POSIX stuff appears to -/ "extended" system calls, and use values in eax and edx. -/ - .globl sigprocmask -sigprocmask: - movl $0x2828, %eax - lcall $7,$0 - jb _cerror - ret - addl $4, %esp - lcall $0xf,$0 diff --git a/newlib/libc/sys/sysvi386/stat.S b/newlib/libc/sys/sysvi386/stat.S new file mode 100644 index 000000000..50c84bb97 --- /dev/null +++ b/newlib/libc/sys/sysvi386/stat.S @@ -0,0 +1,9 @@ + .globl _stat + .globl stat +_stat: +stat: + movl $0x12, %eax + lcall $7,$0 + jb _cerror + xor %eax,%eax + ret diff --git a/newlib/libc/sys/sysvi386/stat.s b/newlib/libc/sys/sysvi386/stat.s deleted file mode 100644 index 50c84bb97..000000000 --- a/newlib/libc/sys/sysvi386/stat.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _stat - .globl stat -_stat: -stat: - movl $0x12, %eax - lcall $7,$0 - jb _cerror - xor %eax,%eax - ret diff --git a/newlib/libc/sys/sysvi386/sysconf.S b/newlib/libc/sys/sysvi386/sysconf.S new file mode 100644 index 000000000..99bbc6040 --- /dev/null +++ b/newlib/libc/sys/sysvi386/sysconf.S @@ -0,0 +1,6 @@ + .globl sysconf +sysconf: + movl $0x2d28, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/sysconf.s b/newlib/libc/sys/sysvi386/sysconf.s deleted file mode 100644 index 99bbc6040..000000000 --- a/newlib/libc/sys/sysvi386/sysconf.s +++ /dev/null @@ -1,6 +0,0 @@ - .globl sysconf -sysconf: - movl $0x2d28, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/time.S b/newlib/libc/sys/sysvi386/time.S new file mode 100644 index 000000000..c5617891c --- /dev/null +++ b/newlib/libc/sys/sysvi386/time.S @@ -0,0 +1,8 @@ + .globl _time + .globl time +_time: +time: + movl $0xd, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/time.s b/newlib/libc/sys/sysvi386/time.s deleted file mode 100644 index c5617891c..000000000 --- a/newlib/libc/sys/sysvi386/time.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _time - .globl time -_time: -time: - movl $0xd, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/times.S b/newlib/libc/sys/sysvi386/times.S new file mode 100644 index 000000000..007de1e1e --- /dev/null +++ b/newlib/libc/sys/sysvi386/times.S @@ -0,0 +1,8 @@ + .globl _times + .globl times +_times: +times: + movl $0x2b, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/times.s b/newlib/libc/sys/sysvi386/times.s deleted file mode 100644 index 007de1e1e..000000000 --- a/newlib/libc/sys/sysvi386/times.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _times - .globl times -_times: -times: - movl $0x2b, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/unlink.S b/newlib/libc/sys/sysvi386/unlink.S new file mode 100644 index 000000000..b85e87c27 --- /dev/null +++ b/newlib/libc/sys/sysvi386/unlink.S @@ -0,0 +1,9 @@ + .globl _unlink + .globl unlink +_unlink: +unlink: + movl $0xa, %eax + lcall $7,$0 + jb _cerror + xor %eax, %eax + ret diff --git a/newlib/libc/sys/sysvi386/unlink.s b/newlib/libc/sys/sysvi386/unlink.s deleted file mode 100644 index b85e87c27..000000000 --- a/newlib/libc/sys/sysvi386/unlink.s +++ /dev/null @@ -1,9 +0,0 @@ - .globl _unlink - .globl unlink -_unlink: -unlink: - movl $0xa, %eax - lcall $7,$0 - jb _cerror - xor %eax, %eax - ret diff --git a/newlib/libc/sys/sysvi386/utime.S b/newlib/libc/sys/sysvi386/utime.S new file mode 100644 index 000000000..23fc50476 --- /dev/null +++ b/newlib/libc/sys/sysvi386/utime.S @@ -0,0 +1,8 @@ + .globl _utime + .globl utime +_utime: +utime: + movl $0x1e, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/utime.s b/newlib/libc/sys/sysvi386/utime.s deleted file mode 100644 index 23fc50476..000000000 --- a/newlib/libc/sys/sysvi386/utime.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _utime - .globl utime -_utime: -utime: - movl $0x1e, %eax - lcall $7,$0 - jb _cerror - ret diff --git a/newlib/libc/sys/sysvi386/wait.S b/newlib/libc/sys/sysvi386/wait.S new file mode 100644 index 000000000..1ae8b0c6b --- /dev/null +++ b/newlib/libc/sys/sysvi386/wait.S @@ -0,0 +1,13 @@ + .globl _wait + .globl wait +_wait: +wait: + movl $0x7, %eax + lcall $7,$0 + jb _cerror + movl 4(%esp), %ecx + testl %ecx, %ecx + je bye + movl %edx, (%ecx) +bye: + ret diff --git a/newlib/libc/sys/sysvi386/wait.s b/newlib/libc/sys/sysvi386/wait.s deleted file mode 100644 index 1ae8b0c6b..000000000 --- a/newlib/libc/sys/sysvi386/wait.s +++ /dev/null @@ -1,13 +0,0 @@ - .globl _wait - .globl wait -_wait: -wait: - movl $0x7, %eax - lcall $7,$0 - jb _cerror - movl 4(%esp), %ecx - testl %ecx, %ecx - je bye - movl %edx, (%ecx) -bye: - ret diff --git a/newlib/libc/sys/sysvi386/waitpid.S b/newlib/libc/sys/sysvi386/waitpid.S new file mode 100644 index 000000000..598099f91 --- /dev/null +++ b/newlib/libc/sys/sysvi386/waitpid.S @@ -0,0 +1,18 @@ + .globl _waitpid + .globl waitpid +_waitpid: +waitpid: + pushfl + popl %eax + orl $0x8c4,%eax + pushl %eax + popfl + movl $0x7, %eax + lcall $7,$0 + jb _cerror + movl 8(%esp), %ecx + testl %ecx, %ecx + je bye + movl %edx, (%ecx) +bye: + ret diff --git a/newlib/libc/sys/sysvi386/waitpid.s b/newlib/libc/sys/sysvi386/waitpid.s deleted file mode 100644 index 598099f91..000000000 --- a/newlib/libc/sys/sysvi386/waitpid.s +++ /dev/null @@ -1,18 +0,0 @@ - .globl _waitpid - .globl waitpid -_waitpid: -waitpid: - pushfl - popl %eax - orl $0x8c4,%eax - pushl %eax - popfl - movl $0x7, %eax - lcall $7,$0 - jb _cerror - movl 8(%esp), %ecx - testl %ecx, %ecx - je bye - movl %edx, (%ecx) -bye: - ret diff --git a/newlib/libc/sys/sysvi386/write.S b/newlib/libc/sys/sysvi386/write.S new file mode 100644 index 000000000..05374652c --- /dev/null +++ b/newlib/libc/sys/sysvi386/write.S @@ -0,0 +1,8 @@ + .globl _write + .globl write +_write: +write: + movl $4, %eax + lcall $7,$0 + jb _cerror + ret diff --git a/newlib/libc/sys/sysvi386/write.s b/newlib/libc/sys/sysvi386/write.s deleted file mode 100644 index 05374652c..000000000 --- a/newlib/libc/sys/sysvi386/write.s +++ /dev/null @@ -1,8 +0,0 @@ - .globl _write - .globl write -_write: -write: - movl $4, %eax - lcall $7,$0 - jb _cerror - ret -- cgit v1.2.3