diff options
author | cvs2svn <> | 2006-03-29 22:38:48 +0000 |
---|---|---|
committer | cvs2svn <> | 2006-03-29 22:38:48 +0000 |
commit | ffbf3c2fe5af89ba84aad3359964ead31121b7ad (patch) | |
tree | 80d5b2fcaba574a5bd448a8c9182a4713321ca3d /libgloss | |
parent | d4f78700878b587f344b29040ba6b5b53fd57598 (diff) | |
download | newlib-newlib-1_10_0.zip newlib-newlib-1_10_0.tar.gz newlib-newlib-1_10_0.tar.bz2 |
This commit was manufactured by cvs2svn to create tag 'newlib-1_10_0'.newlib-1_10_0
Sprout from newlib-autotools-branch 2006-03-29 22:38:47 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'newlib-autotools-'
Cherrypick from master 2001-12-19 23:41:46 UTC Thomas Fitzsimmons <fitzsim@redhat.com> ' * libm/machine/configure.in (HAVE_LIBM_MACHINE_DIR): New conditional.':
COPYING.NEWLIB
MAINTAINERS
Makefile.in
README-maintainer-mode
config-ml.in
config.if
config/ChangeLog
config/acinclude.m4
config/mh-irix6
config/mh-openedition
config/mt-aix43
config/mt-i370pic
config/mt-ia64pic
config/mt-s390pic
config/mt-sparcpic
configure
configure.in
etc/ChangeLog
etc/texi2pod.pl
gettext.m4
libgloss/ChangeLog
libgloss/Makefile.in
libgloss/README
libgloss/configure
libgloss/configure.in
libgloss/d30v/Makefile.in
libgloss/d30v/syscalls.c
libgloss/debug.h
libgloss/doc/Makefile.in
libgloss/fr30/Makefile.in
libgloss/hp74x/Makefile.in
libgloss/hp74x/configure
libgloss/i386/Makefile.in
libgloss/i386/configure
libgloss/i386/configure.in
libgloss/i386/cygmon-crt0.S
libgloss/i386/cygmon-gmon.c
libgloss/i386/cygmon-salib.c
libgloss/i386/cygmon.ld
libgloss/i960/Makefile.in
libgloss/libnosys/Makefile.in
libgloss/libnosys/acconfig.h
libgloss/libnosys/config.h.in
libgloss/libnosys/configure
libgloss/libnosys/configure.in
libgloss/libnosys/sbrk.c
libgloss/libnosys/warning.h
libgloss/m32r/Makefile.in
libgloss/m32r/configure
libgloss/m32r/configure.in
libgloss/m32r/crt0.S
libgloss/m32r/m32r-lib.c
libgloss/m32r/trapmon0.c
libgloss/m68k/Makefile.in
libgloss/m68k/asm.h
libgloss/m68k/bcc.ld
libgloss/m68k/configure
libgloss/m68k/configure.in
libgloss/m68k/crt0.S
libgloss/m68k/idp.ld
libgloss/m68k/idpgdb.ld
libgloss/m68k/leds.c
libgloss/m68k/leds.h
libgloss/m68k/mvme135.ld
libgloss/m68k/mvme162.ld
libgloss/m68k/sbc5204.ld
libgloss/m68k/sbc5206.ld
libgloss/m68k/sim-crt0.S
libgloss/m68k/sim-funcs.c
libgloss/m68k/sim.ld
libgloss/mcore/Makefile.in
libgloss/mcore/elf-cmb.ld
libgloss/mips/Makefile.in
libgloss/mips/array.ld
libgloss/mips/cma101.c
libgloss/mips/configure
libgloss/mips/configure.in
libgloss/mips/crt0.S
libgloss/mips/ddb-kseg0.ld
libgloss/mips/ddb.ld
libgloss/mips/dve.ld
libgloss/mips/idt.ld
libgloss/mips/idt32.ld
libgloss/mips/idt64.ld
libgloss/mips/idtecoff.ld
libgloss/mips/jmr3904app-java.ld
libgloss/mips/jmr3904app.ld
libgloss/mips/jmr3904dram-java.ld
libgloss/mips/jmr3904dram.ld
libgloss/mips/lsi.ld
libgloss/mips/nullmon.c
libgloss/mips/nullmon.ld
libgloss/mips/pmon.S
libgloss/mips/pmon.ld
libgloss/mips/regs.S
libgloss/mips/vr4300.S
libgloss/mips/vr5xxx.S
libgloss/mn10200/Makefile.in
libgloss/mn10200/eval.ld
libgloss/mn10200/sim.ld
libgloss/mn10300/Makefile.in
libgloss/mn10300/configure
libgloss/mn10300/configure.in
libgloss/mn10300/eval.ld
libgloss/mn10300/sim.ld
libgloss/pa/Makefile.in
libgloss/pa/configure
libgloss/read.c
libgloss/rs6000/Makefile.in
libgloss/rs6000/ads.ld
libgloss/rs6000/mbx.ld
libgloss/rs6000/simulator.S
libgloss/rs6000/yellowknife.ld
libgloss/sh/sh1lcevb.ld
libgloss/sh/sh2lcevb.ld
libgloss/sh/sh3bb.ld
libgloss/sh/sh3lcevb.ld
libgloss/sparc/Makefile.in
libgloss/sparc/configure
libgloss/sparc/cygmon-salib.c
libgloss/sparc/elfsim.ld
libgloss/sparc/erc32-stub.c
libgloss/sparc/ex930.ld
libgloss/sparc/ex931.ld
libgloss/sparc/ex934.ld
libgloss/sparc/libsys/Makefile.in
libgloss/sparc/sparc86x.ld
libtool.m4
ltcf-c.sh
ltcf-cxx.sh
ltcf-gcj.sh
ltconfig
ltmain.sh
newlib/ChangeLog
newlib/MAINTAINERS
newlib/NEWS
newlib/README
newlib/acinclude.m4
newlib/aclocal.m4
newlib/configure
newlib/configure.host
newlib/configure.in
newlib/doc/Makefile.in
newlib/doc/aclocal.m4
newlib/doc/configure
newlib/libc/Makefile.am
newlib/libc/Makefile.in
newlib/libc/aclocal.m4
newlib/libc/configure
newlib/libc/configure.in
newlib/libc/ctype/Makefile.am
newlib/libc/ctype/Makefile.in
newlib/libc/ctype/ctype.tex
newlib/libc/ctype/ctype_.c
newlib/libc/ctype/islower.c
newlib/libc/ctype/isupper.c
newlib/libc/ctype/tolower.c
newlib/libc/ctype/toupper.c
newlib/libc/errno/Makefile.in
newlib/libc/include/_ansi.h
newlib/libc/include/_syslist.h
newlib/libc/include/ctype.h
newlib/libc/include/errno.h
newlib/libc/include/grp.h
newlib/libc/include/ieeefp.h
newlib/libc/include/locale.h
newlib/libc/include/machine/ieeefp.h
newlib/libc/include/machine/setjmp.h
newlib/libc/include/machine/types.h
newlib/libc/include/malloc.h
newlib/libc/include/math.h
newlib/libc/include/process.h
newlib/libc/include/pthread.h
newlib/libc/include/pwd.h
newlib/libc/include/reent.h
newlib/libc/include/setjmp.h
newlib/libc/include/signal.h
newlib/libc/include/stdio.h
newlib/libc/include/stdlib.h
newlib/libc/include/string.h
newlib/libc/include/sys/_types.h
newlib/libc/include/sys/config.h
newlib/libc/include/sys/dirent.h
newlib/libc/include/sys/errno.h
newlib/libc/include/sys/fcntl.h
newlib/libc/include/sys/features.h
newlib/libc/include/sys/param.h
newlib/libc/include/sys/reent.h
newlib/libc/include/sys/sched.h
newlib/libc/include/sys/stat-dj.h
newlib/libc/include/sys/stat.h
newlib/libc/include/sys/time.h
newlib/libc/include/sys/types.h
newlib/libc/include/sys/unistd.h
newlib/libc/include/time.h
newlib/libc/include/utime.h
newlib/libc/libc.texinfo
newlib/libc/locale/Makefile.am
newlib/libc/locale/Makefile.in
newlib/libc/locale/locale.c
newlib/libc/locale/locale.tex
newlib/libc/machine/Makefile.in
newlib/libc/machine/a29k/Makefile.in
newlib/libc/machine/a29k/aclocal.m4
newlib/libc/machine/a29k/configure
newlib/libc/machine/aclocal.m4
newlib/libc/machine/arm/Makefile.am
newlib/libc/machine/arm/Makefile.in
newlib/libc/machine/arm/aclocal.m4
newlib/libc/machine/arm/configure
newlib/libc/machine/configure
newlib/libc/machine/d10v/Makefile.in
newlib/libc/machine/d10v/aclocal.m4
newlib/libc/machine/d10v/configure
newlib/libc/machine/d30v/Makefile.in
newlib/libc/machine/d30v/aclocal.m4
newlib/libc/machine/d30v/configure
newlib/libc/machine/fr30/Makefile.in
newlib/libc/machine/fr30/aclocal.m4
newlib/libc/machine/fr30/configure
newlib/libc/machine/h8300/Makefile.am
newlib/libc/machine/h8300/Makefile.in
newlib/libc/machine/h8300/aclocal.m4
newlib/libc/machine/h8300/configure
newlib/libc/machine/h8300/defines.h
newlib/libc/machine/h8300/memcpy.S
newlib/libc/machine/h8300/memset.S
newlib/libc/machine/h8300/reg_memcpy.S
newlib/libc/machine/h8300/reg_memset.S
newlib/libc/machine/h8300/setjmp.S
newlib/libc/machine/h8300/strcmp.S
newlib/libc/machine/h8500/Makefile.in
newlib/libc/machine/h8500/aclocal.m4
newlib/libc/machine/h8500/configure
newlib/libc/machine/hppa/DEFS.h
newlib/libc/machine/hppa/Makefile.in
newlib/libc/machine/hppa/aclocal.m4
newlib/libc/machine/hppa/configure
newlib/libc/machine/hppa/pcc_prefix.s
newlib/libc/machine/hppa/setjmp.S
newlib/libc/machine/i386/Makefile.am
newlib/libc/machine/i386/Makefile.in
newlib/libc/machine/i386/aclocal.m4
newlib/libc/machine/i386/configure
newlib/libc/machine/i386/memchr.S
newlib/libc/machine/i386/memcmp.S
newlib/libc/machine/i386/memcpy.S
newlib/libc/machine/i386/memmove.S
newlib/libc/machine/i386/memset.S
newlib/libc/machine/i386/strchr.S
newlib/libc/machine/i386/strlen.S
newlib/libc/machine/i960/Makefile.in
newlib/libc/machine/i960/aclocal.m4
newlib/libc/machine/i960/configure
newlib/libc/machine/m32r/Makefile.in
newlib/libc/machine/m32r/aclocal.m4
newlib/libc/machine/m32r/configure
newlib/libc/machine/m68k/Makefile.in
newlib/libc/machine/m68k/aclocal.m4
newlib/libc/machine/m68k/configure
newlib/libc/machine/m88k/Makefile.in
newlib/libc/machine/m88k/aclocal.m4
newlib/libc/machine/m88k/configure
newlib/libc/machine/mips/Makefile.am
newlib/libc/machine/mips/Makefile.in
newlib/libc/machine/mips/aclocal.m4
newlib/libc/machine/mips/configure
newlib/libc/machine/mips/setjmp.S
newlib/libc/machine/mn10200/Makefile.in
newlib/libc/machine/mn10200/aclocal.m4
newlib/libc/machine/mn10200/configure
newlib/libc/machine/mn10300/Makefile.in
newlib/libc/machine/mn10300/aclocal.m4
newlib/libc/machine/mn10300/configure
newlib/libc/machine/mn10300/setjmp.S
newlib/libc/machine/necv70/Makefile.in
newlib/libc/machine/necv70/aclocal.m4
newlib/libc/machine/necv70/configure
newlib/libc/machine/necv70/necv70.tex
newlib/libc/machine/powerpc/Makefile.am
newlib/libc/machine/powerpc/Makefile.in
newlib/libc/machine/powerpc/aclocal.m4
newlib/libc/machine/powerpc/configure
newlib/libc/machine/powerpc/configure.in
newlib/libc/machine/powerpc/setjmp.S
newlib/libc/machine/sh/Makefile.am
newlib/libc/machine/sh/Makefile.in
newlib/libc/machine/sh/aclocal.m4
newlib/libc/machine/sh/asm.h
newlib/libc/machine/sh/configure
newlib/libc/machine/sh/configure.in
newlib/libc/machine/sh/memcpy.S
newlib/libc/machine/sh/memset.S
newlib/libc/machine/sh/setjmp.S
newlib/libc/machine/sh/strcmp.S
newlib/libc/machine/sh/strcpy.S
newlib/libc/machine/sparc/Makefile.in
newlib/libc/machine/sparc/aclocal.m4
newlib/libc/machine/sparc/configure
newlib/libc/machine/tic80/Makefile.in
newlib/libc/machine/tic80/aclocal.m4
newlib/libc/machine/tic80/configure
newlib/libc/machine/v850/Makefile.in
newlib/libc/machine/v850/aclocal.m4
newlib/libc/machine/v850/configure
newlib/libc/machine/w65/Makefile.in
newlib/libc/machine/w65/aclocal.m4
newlib/libc/machine/w65/configure
newlib/libc/machine/xscale/Makefile.am
newlib/libc/machine/xscale/Makefile.in
newlib/libc/machine/xscale/aclocal.m4
newlib/libc/machine/xscale/configure
newlib/libc/machine/xscale/memchr.c
newlib/libc/machine/xscale/memcmp.c
newlib/libc/machine/xscale/memcpy.c
newlib/libc/machine/xscale/memmove.c
newlib/libc/machine/xscale/memset.c
newlib/libc/machine/xscale/strchr.c
newlib/libc/machine/xscale/strcmp.c
newlib/libc/machine/xscale/strcpy.c
newlib/libc/machine/xscale/strlen.c
newlib/libc/machine/z8k/Makefile.am
newlib/libc/machine/z8k/Makefile.in
newlib/libc/machine/z8k/aclocal.m4
newlib/libc/machine/z8k/configure
newlib/libc/machine/z8k/setjmp.S
newlib/libc/misc/Makefile.am
newlib/libc/misc/Makefile.in
newlib/libc/misc/dprintf.c
newlib/libc/misc/ffs.c
newlib/libc/misc/misc.tex
newlib/libc/misc/unctrl.c
newlib/libc/posix/Makefile.am
newlib/libc/posix/Makefile.in
newlib/libc/posix/closedir.c
newlib/libc/posix/creat.c
newlib/libc/posix/execl.c
newlib/libc/posix/execle.c
newlib/libc/posix/execlp.c
newlib/libc/posix/execve.c
newlib/libc/posix/isatty.c
newlib/libc/posix/opendir.c
newlib/libc/posix/popen.c
newlib/libc/posix/readdir.c
newlib/libc/posix/rewinddir.c
newlib/libc/posix/scandir.c
newlib/libc/posix/seekdir.c
newlib/libc/posix/telldir.c
newlib/libc/reent/Makefile.am
newlib/libc/reent/Makefile.in
newlib/libc/reent/execr.c
newlib/libc/reent/impure.c
newlib/libc/reent/linkr.c
newlib/libc/reent/lseekr.c
newlib/libc/reent/openr.c
newlib/libc/reent/readr.c
newlib/libc/reent/reent.c
newlib/libc/reent/reent.tex
newlib/libc/reent/sbrkr.c
newlib/libc/reent/signalr.c
newlib/libc/reent/signgam.c
newlib/libc/reent/statr.c
newlib/libc/reent/timer.c
newlib/libc/reent/unlinkr.c
newlib/libc/reent/writer.c
newlib/libc/signal/Makefile.in
newlib/libc/signal/signal.c
newlib/libc/stdio/Makefile.am
newlib/libc/stdio/Makefile.in
newlib/libc/stdio/clearerr.c
newlib/libc/stdio/fclose.c
newlib/libc/stdio/fdopen.c
newlib/libc/stdio/feof.c
newlib/libc/stdio/ferror.c
newlib/libc/stdio/fflush.c
newlib/libc/stdio/fgetc.c
newlib/libc/stdio/fgetpos.c
newlib/libc/stdio/fgets.c
newlib/libc/stdio/fileno.c
newlib/libc/stdio/findfp.c
newlib/libc/stdio/fiprintf.c
newlib/libc/stdio/flags.c
newlib/libc/stdio/fopen.c
newlib/libc/stdio/fprintf.c
newlib/libc/stdio/fputc.c
newlib/libc/stdio/fputs.c
newlib/libc/stdio/fread.c
newlib/libc/stdio/freopen.c
newlib/libc/stdio/fscanf.c
newlib/libc/stdio/fseek.c
newlib/libc/stdio/fsetpos.c
newlib/libc/stdio/ftell.c
newlib/libc/stdio/fvwrite.c
newlib/libc/stdio/fwalk.c
newlib/libc/stdio/fwrite.c
newlib/libc/stdio/getc.c
newlib/libc/stdio/getchar.c
newlib/libc/stdio/gets.c
newlib/libc/stdio/getw.c
newlib/libc/stdio/iprintf.c
newlib/libc/stdio/local.h
newlib/libc/stdio/makebuf.c
newlib/libc/stdio/mktemp.c
newlib/libc/stdio/perror.c
newlib/libc/stdio/printf.c
newlib/libc/stdio/putc.c
newlib/libc/stdio/putchar.c
newlib/libc/stdio/puts.c
newlib/libc/stdio/putw.c
newlib/libc/stdio/refill.c
newlib/libc/stdio/remove.c
newlib/libc/stdio/rename.c
newlib/libc/stdio/rewind.c
newlib/libc/stdio/rget.c
newlib/libc/stdio/scanf.c
newlib/libc/stdio/setbuf.c
newlib/libc/stdio/setvbuf.c
newlib/libc/stdio/siprintf.c
newlib/libc/stdio/snprintf.c
newlib/libc/stdio/sprintf.c
newlib/libc/stdio/sscanf.c
newlib/libc/stdio/stdio.c
newlib/libc/stdio/stdio.tex
newlib/libc/stdio/tmpfile.c
newlib/libc/stdio/tmpnam.c
newlib/libc/stdio/ungetc.c
newlib/libc/stdio/vfieeefp.h
newlib/libc/stdio/vfprintf.c
newlib/libc/stdio/vfscanf.c
newlib/libc/stdio/vprintf.c
newlib/libc/stdio/vscanf.c
newlib/libc/stdio/vsnprintf.c
newlib/libc/stdio/vsprintf.c
newlib/libc/stdio/vsscanf.c
newlib/libc/stdio/wbuf.c
newlib/libc/stdio/wsetup.c
newlib/libc/stdlib/Makefile.am
newlib/libc/stdlib/Makefile.in
newlib/libc/stdlib/assert.c
newlib/libc/stdlib/atexit.c
newlib/libc/stdlib/atexit.h
newlib/libc/stdlib/atof.c
newlib/libc/stdlib/atoff.c
newlib/libc/stdlib/atoi.c
newlib/libc/stdlib/atol.c
newlib/libc/stdlib/bsearch.c
newlib/libc/stdlib/div.c
newlib/libc/stdlib/drand48.c
newlib/libc/stdlib/dtoa.c
newlib/libc/stdlib/efgcvt.c
newlib/libc/stdlib/environ.c
newlib/libc/stdlib/envlock.c
newlib/libc/stdlib/exit.c
newlib/libc/stdlib/getenv_r.c
newlib/libc/stdlib/getopt.c
newlib/libc/stdlib/lcong48.c
newlib/libc/stdlib/ldiv.c
newlib/libc/stdlib/ldtoa.c
newlib/libc/stdlib/lrand48.c
newlib/libc/stdlib/malign.c
newlib/libc/stdlib/mallocr.c
newlib/libc/stdlib/mblen.c
newlib/libc/stdlib/mblen_r.c
newlib/libc/stdlib/mbstowcs.c
newlib/libc/stdlib/mbstowcs_r.c
newlib/libc/stdlib/mbtowc.c
newlib/libc/stdlib/mbtowc_r.c
newlib/libc/stdlib/mlock.c
newlib/libc/stdlib/mprec.c
newlib/libc/stdlib/mprec.h
newlib/libc/stdlib/mrand48.c
newlib/libc/stdlib/msize.c
newlib/libc/stdlib/mstats.c
newlib/libc/stdlib/mtrim.c
newlib/libc/stdlib/putenv.c
newlib/libc/stdlib/putenv_r.c
newlib/libc/stdlib/qsort.c
newlib/libc/stdlib/rand.c
newlib/libc/stdlib/rand48.c
newlib/libc/stdlib/rand48.h
newlib/libc/stdlib/seed48.c
newlib/libc/stdlib/setenv_r.c
newlib/libc/stdlib/srand48.c
newlib/libc/stdlib/stdlib.tex
newlib/libc/stdlib/strdup.c
newlib/libc/stdlib/strdup_r.c
newlib/libc/stdlib/strtod.c
newlib/libc/stdlib/strtoll.c
newlib/libc/stdlib/system.c
newlib/libc/stdlib/valloc.c
newlib/libc/stdlib/wcstombs.c
newlib/libc/stdlib/wcstombs_r.c
newlib/libc/stdlib/wctomb.c
newlib/libc/stdlib/wctomb_r.c
newlib/libc/string/Makefile.am
newlib/libc/string/Makefile.in
newlib/libc/string/bcmp.c
newlib/libc/string/bcopy.c
newlib/libc/string/bzero.c
newlib/libc/string/memchr.c
newlib/libc/string/memcmp.c
newlib/libc/string/memset.c
newlib/libc/string/strcasecmp.c
newlib/libc/string/strchr.c
newlib/libc/string/strcoll.c
newlib/libc/string/strcspn.c
newlib/libc/string/strerror.c
newlib/libc/string/strings.tex
newlib/libc/string/strlwr.c
newlib/libc/string/strncasecmp.c
newlib/libc/string/strncat.c
newlib/libc/string/strpbrk.c
newlib/libc/string/strtok.c
newlib/libc/string/strtok_r.c
newlib/libc/string/strupr.c
newlib/libc/sys.tex
newlib/libc/sys/Makefile.in
newlib/libc/sys/a29khif/Makefile.in
newlib/libc/sys/a29khif/aclocal.m4
newlib/libc/sys/a29khif/configure
newlib/libc/sys/aclocal.m4
newlib/libc/sys/arc/Makefile.in
newlib/libc/sys/arc/aclocal.m4
newlib/libc/sys/arc/configure
newlib/libc/sys/arc/syscalls.c
newlib/libc/sys/arm/Makefile.am
newlib/libc/sys/arm/Makefile.in
newlib/libc/sys/arm/aclocal.m4
newlib/libc/sys/arm/configure
newlib/libc/sys/arm/crt0.S
newlib/libc/sys/arm/libcfunc.c
newlib/libc/sys/arm/setjmp.S
newlib/libc/sys/arm/swi.h
newlib/libc/sys/arm/sys/param.h
newlib/libc/sys/arm/syscalls.c
newlib/libc/sys/arm/trap.S
newlib/libc/sys/configure
newlib/libc/sys/configure.in
newlib/libc/sys/cygwin/Makefile.am
newlib/libc/sys/cygwin/Makefile.in
newlib/libc/sys/cygwin/aclocal.m4
newlib/libc/sys/cygwin/configure
newlib/libc/sys/cygwin/configure.in
newlib/libc/sys/cygwin/crt0.c
newlib/libc/sys/cygwin/include/unistd.h
newlib/libc/sys/cygwin/sys/dirent.h
newlib/libc/sys/cygwin/sys/param.h
newlib/libc/sys/cygwin/sys/utime.h
newlib/libc/sys/cygwin/sys/utmp.h
newlib/libc/sys/d10v/Makefile.in
newlib/libc/sys/d10v/aclocal.m4
newlib/libc/sys/d10v/configure
newlib/libc/sys/decstation/Makefile.in
newlib/libc/sys/decstation/aclocal.m4
newlib/libc/sys/decstation/configure
newlib/libc/sys/go32/Makefile.am
newlib/libc/sys/go32/Makefile.in
newlib/libc/sys/go32/_exit.s
newlib/libc/sys/go32/_main.c
newlib/libc/sys/go32/abort.c
newlib/libc/sys/go32/access.c
newlib/libc/sys/go32/aclocal.m4
newlib/libc/sys/go32/bdos.c
newlib/libc/sys/go32/bdosptr.c
newlib/libc/sys/go32/brk.s
newlib/libc/sys/go32/chdir.s
newlib/libc/sys/go32/chmod.c
newlib/libc/sys/go32/chown.c
newlib/libc/sys/go32/clock.S
newlib/libc/sys/go32/close.s
newlib/libc/sys/go32/configure
newlib/libc/sys/go32/configure.in
newlib/libc/sys/go32/copying.dj
newlib/libc/sys/go32/creat.s
newlib/libc/sys/go32/crlf2nl.c
newlib/libc/sys/go32/crt0.S
newlib/libc/sys/go32/dir.c
newlib/libc/sys/go32/dir.h
newlib/libc/sys/go32/djtime.h
newlib/libc/sys/go32/dos.h
newlib/libc/sys/go32/dosmem.S
newlib/libc/sys/go32/dpmi.c
newlib/libc/sys/go32/dpmi.h
newlib/libc/sys/go32/dup.s
newlib/libc/sys/go32/dup2.s
newlib/libc/sys/go32/exec.c
newlib/libc/sys/go32/fchmod.c
newlib/libc/sys/go32/findfirs.s
newlib/libc/sys/go32/findnext.s
newlib/libc/sys/go32/fixpath.c
newlib/libc/sys/go32/fstat.s
newlib/libc/sys/go32/fsync.s
newlib/libc/sys/go32/ftruncat.c
newlib/libc/sys/go32/gerrno.s
newlib/libc/sys/go32/getcwd.c
newlib/libc/sys/go32/getdate.c
newlib/libc/sys/go32/getdtabl.c
newlib/libc/sys/go32/getgid.c
newlib/libc/sys/go32/getkey.s
newlib/libc/sys/go32/getpages.c
newlib/libc/sys/go32/getpid.c
newlib/libc/sys/go32/getrusag.c
newlib/libc/sys/go32/gettime.c
newlib/libc/sys/go32/gettimeo.c
newlib/libc/sys/go32/gettimeo.s
newlib/libc/sys/go32/getuid.c
newlib/libc/sys/go32/getwd.s
newlib/libc/sys/go32/go32.h
newlib/libc/sys/go32/go32func.c
newlib/libc/sys/go32/infoblk.c
newlib/libc/sys/go32/inportb.s
newlib/libc/sys/go32/inportl.s
newlib/libc/sys/go32/inportsb.s
newlib/libc/sys/go32/inportsl.s
newlib/libc/sys/go32/inportsw.s
newlib/libc/sys/go32/inportw.s
newlib/libc/sys/go32/int86x.s
newlib/libc/sys/go32/intdos.c
newlib/libc/sys/go32/intdosx.c
newlib/libc/sys/go32/isatty.s
newlib/libc/sys/go32/kbhit.s
newlib/libc/sys/go32/kill.c
newlib/libc/sys/go32/link.s
newlib/libc/sys/go32/longjmp.S
newlib/libc/sys/go32/lseek.s
newlib/libc/sys/go32/lstat.s
newlib/libc/sys/go32/mkdir.s
newlib/libc/sys/go32/open.s
newlib/libc/sys/go32/outportb.s
newlib/libc/sys/go32/outportl.s
newlib/libc/sys/go32/outportw.s
newlib/libc/sys/go32/outprtsb.s
newlib/libc/sys/go32/outprtsl.s
newlib/libc/sys/go32/outprtsw.s
newlib/libc/sys/go32/pc.h
newlib/libc/sys/go32/read.s
newlib/libc/sys/go32/readv.c
newlib/libc/sys/go32/rename.s
newlib/libc/sys/go32/rmdir.s
newlib/libc/sys/go32/sbrk.s
newlib/libc/sys/go32/screen.S
newlib/libc/sys/go32/setjmp.S
newlib/libc/sys/go32/setmode.s
newlib/libc/sys/go32/setstack.S
newlib/libc/sys/go32/settimeo.s
newlib/libc/sys/go32/sleep.c
newlib/libc/sys/go32/stat.c
newlib/libc/sys/go32/stat.s
newlib/libc/sys/go32/stat_ast.s
newlib/libc/sys/go32/sys/dir.h
newlib/libc/sys/go32/sys/dirent.h
newlib/libc/sys/go32/sys/dos.h
newlib/libc/sys/go32/sys/dpmi.h
newlib/libc/sys/go32/sys/errno.h
newlib/libc/sys/go32/sys/fcntl.h
newlib/libc/sys/go32/sys/file.h
newlib/libc/sys/go32/sys/go32.h
newlib/libc/sys/go32/sys/param.h
newlib/libc/sys/go32/sys/pc.h
newlib/libc/sys/go32/sys/register.h
newlib/libc/sys/go32/sys/resource.h
newlib/libc/sys/go32/sys/setjmp.h
newlib/libc/sys/go32/sys/stdc.h
newlib/libc/sys/go32/sys/uio.h
newlib/libc/sys/go32/syserr.c
newlib/libc/sys/go32/system.s
newlib/libc/sys/go32/tell.s
newlib/libc/sys/go32/time.c
newlib/libc/sys/go32/truncate.c
newlib/libc/sys/go32/turbo.s
newlib/libc/sys/go32/umask.c
newlib/libc/sys/go32/unlink.s
newlib/libc/sys/go32/utime.c
newlib/libc/sys/go32/utimes.c
newlib/libc/sys/go32/write.s
newlib/libc/sys/go32/writestub.c
newlib/libc/sys/go32/writev.c
newlib/libc/sys/h8300hms/Makefile.am
newlib/libc/sys/h8300hms/Makefile.in
newlib/libc/sys/h8300hms/_exit.c
newlib/libc/sys/h8300hms/aclocal.m4
newlib/libc/sys/h8300hms/configure
newlib/libc/sys/h8300hms/crt0.S
newlib/libc/sys/h8300hms/syscalls.c
newlib/libc/sys/h8300hms/write.c
newlib/libc/sys/h8500hms/Makefile.in
newlib/libc/sys/h8500hms/aclocal.m4
newlib/libc/sys/h8500hms/configure
newlib/libc/sys/linux/Makefile.am
newlib/libc/sys/linux/Makefile.in
newlib/libc/sys/linux/aclocal.m4
newlib/libc/sys/linux/brk.c
newlib/libc/sys/linux/configure
newlib/libc/sys/linux/configure.in
newlib/libc/sys/linux/crt0.c
newlib/libc/sys/linux/getoptlong.c
newlib/libc/sys/linux/ids.c
newlib/libc/sys/linux/include/getopt.h
newlib/libc/sys/linux/include/stdint.h
newlib/libc/sys/linux/include/unistd.h
newlib/libc/sys/linux/inode.c
newlib/libc/sys/linux/io.c
newlib/libc/sys/linux/linux.c
newlib/libc/sys/linux/process.c
newlib/libc/sys/linux/select.c
newlib/libc/sys/linux/shared.ld
newlib/libc/sys/linux/signal.c
newlib/libc/sys/linux/sys/cdefs.h
newlib/libc/sys/linux/sys/dirent.h
newlib/libc/sys/linux/sys/errno.h
newlib/libc/sys/linux/sys/resource.h
newlib/libc/sys/linux/sys/signal.h
newlib/libc/sys/linux/sys/stat.h
newlib/libc/sys/linux/sys/syscall.h
newlib/libc/sys/linux/sys/termios.h
newlib/libc/sys/linux/sys/time.h
newlib/libc/sys/linux/sys/types.h
newlib/libc/sys/linux/systat.c
newlib/libc/sys/linux/termios.c
newlib/libc/sys/linux/time.c
newlib/libc/sys/linux/wait.c
newlib/libc/sys/m88kbug/Makefile.in
newlib/libc/sys/m88kbug/aclocal.m4
newlib/libc/sys/m88kbug/configure
newlib/libc/sys/mmixware/Makefile.am
newlib/libc/sys/mmixware/Makefile.in
newlib/libc/sys/mmixware/aclocal.m4
newlib/libc/sys/mmixware/configure
newlib/libc/sys/mmixware/open.c
newlib/libc/sys/mmixware/read.c
newlib/libc/sys/mmixware/sys/syscall.h
newlib/libc/sys/mmixware/times.c
newlib/libc/sys/netware/Makefile.in
newlib/libc/sys/netware/aclocal.m4
newlib/libc/sys/netware/configure
newlib/libc/sys/rtems/Makefile.in
newlib/libc/sys/rtems/aclocal.m4
newlib/libc/sys/rtems/configure
newlib/libc/sys/rtems/crt0.c
newlib/libc/sys/rtems/include/limits.h
newlib/libc/sys/rtems/sys/dirent.h
newlib/libc/sys/sh/Makefile.am
newlib/libc/sys/sh/Makefile.in
newlib/libc/sys/sh/aclocal.m4
newlib/libc/sys/sh/configure
newlib/libc/sys/sh/crt0.S
newlib/libc/sys/sh/sys/syscall.h
newlib/libc/sys/sh/trap.S
newlib/libc/sys/sparc64/Makefile.in
newlib/libc/sys/sparc64/aclocal.m4
newlib/libc/sys/sparc64/configure
newlib/libc/sys/sun4/Makefile.in
newlib/libc/sys/sun4/aclocal.m4
newlib/libc/sys/sun4/configure
newlib/libc/sys/sysmec/Makefile.in
newlib/libc/sys/sysmec/aclocal.m4
newlib/libc/sys/sysmec/configure
newlib/libc/sys/sysnec810/Makefile.in
newlib/libc/sys/sysnec810/aclocal.m4
newlib/libc/sys/sysnec810/configure
newlib/libc/sys/sysnecv850/Makefile.in
newlib/libc/sys/sysnecv850/aclocal.m4
newlib/libc/sys/sysnecv850/configure
newlib/libc/sys/sysnecv850/crt0.S
newlib/libc/sys/sysvi386/Makefile.in
newlib/libc/sys/sysvi386/aclocal.m4
newlib/libc/sys/sysvi386/configure
newlib/libc/sys/sysvi386/sys/param.h
newlib/libc/sys/sysvnecv70/Makefile.in
newlib/libc/sys/sysvnecv70/aclocal.m4
newlib/libc/sys/sysvnecv70/configure
newlib/libc/sys/tic80/Makefile.in
newlib/libc/sys/tic80/aclocal.m4
newlib/libc/sys/tic80/configure
newlib/libc/sys/w65/Makefile.in
newlib/libc/sys/w65/aclocal.m4
newlib/libc/sys/w65/configure
newlib/libc/sys/z8ksim/Makefile.in
newlib/libc/sys/z8ksim/aclocal.m4
newlib/libc/sys/z8ksim/configure
newlib/libc/syscalls/Makefile.am
newlib/libc/syscalls/Makefile.in
newlib/libc/syscalls/sysclose.c
newlib/libc/syscalls/sysexecve.c
newlib/libc/syscalls/sysfcntl.c
newlib/libc/syscalls/sysfork.c
newlib/libc/syscalls/sysfstat.c
newlib/libc/syscalls/sysgetpid.c
newlib/libc/syscalls/sysgettod.c
newlib/libc/syscalls/syskill.c
newlib/libc/syscalls/syslink.c
newlib/libc/syscalls/syslseek.c
newlib/libc/syscalls/sysopen.c
newlib/libc/syscalls/sysread.c
newlib/libc/syscalls/syssbrk.c
newlib/libc/syscalls/sysstat.c
newlib/libc/syscalls/systimes.c
newlib/libc/syscalls/sysunlink.c
newlib/libc/syscalls/syswait.c
newlib/libc/syscalls/syswrite.c
newlib/libc/time/Makefile.am
newlib/libc/time/Makefile.in
newlib/libc/time/asctime.c
newlib/libc/time/clock.c
newlib/libc/time/ctime.c
newlib/libc/time/difftime.c
newlib/libc/time/gmtime.c
newlib/libc/time/gmtime_r.c
newlib/libc/time/lcltime.c
newlib/libc/time/lcltime_r.c
newlib/libc/time/mktime.c
newlib/libc/time/strftime.c
newlib/libc/time/time.tex
newlib/libc/unix/Makefile.am
newlib/libc/unix/Makefile.in
newlib/libc/unix/getcwd.c
newlib/libc/unix/getlogin.c
newlib/libc/unix/getpass.c
newlib/libc/unix/getut.c
newlib/libc/unix/sigset.c
newlib/libc/unix/ttyname.c
newlib/libm/Makefile.am
newlib/libm/Makefile.in
newlib/libm/aclocal.m4
newlib/libm/common/Makefile.am
newlib/libm/common/Makefile.in
newlib/libm/common/common.tex
newlib/libm/common/fdlibm.h
newlib/libm/common/s_expm1.c
newlib/libm/common/s_ilogb.c
newlib/libm/common/s_infinity.c
newlib/libm/common/s_modf.c
newlib/libm/common/s_nan.c
newlib/libm/common/s_nextafter.c
newlib/libm/common/s_scalbn.c
newlib/libm/common/sf_nan.c
newlib/libm/configure
newlib/libm/configure.in
newlib/libm/libm.texinfo
newlib/libm/machine/Makefile.am
newlib/libm/machine/Makefile.in
newlib/libm/machine/aclocal.m4
newlib/libm/machine/configure
newlib/libm/machine/i386/Makefile.in
newlib/libm/machine/i386/aclocal.m4
newlib/libm/machine/i386/configure
newlib/libm/machine/i386/f_atan2.S
newlib/libm/machine/i386/f_atan2f.S
newlib/libm/machine/i386/f_exp.c
newlib/libm/machine/i386/f_expf.c
newlib/libm/machine/i386/f_frexp.S
newlib/libm/machine/i386/f_frexpf.S
newlib/libm/machine/i386/f_ldexp.S
newlib/libm/machine/i386/f_ldexpf.S
newlib/libm/machine/i386/f_log.S
newlib/libm/machine/i386/f_log10.S
newlib/libm/machine/i386/f_log10f.S
newlib/libm/machine/i386/f_logf.S
newlib/libm/machine/i386/f_pow.c
newlib/libm/machine/i386/f_powf.c
newlib/libm/machine/i386/f_tan.S
newlib/libm/machine/i386/f_tanf.S
newlib/libm/math/Makefile.am
newlib/libm/math/Makefile.in
newlib/libm/math/e_pow.c
newlib/libm/math/ef_atan2.c
newlib/libm/math/ef_hypot.c
newlib/libm/math/ef_pow.c
newlib/libm/math/er_gamma.c
newlib/libm/math/erf_gamma.c
newlib/libm/math/math.tex
newlib/libm/math/s_asinh.c
newlib/libm/math/s_atan.c
newlib/libm/math/s_frexp.c
newlib/libm/math/s_infconst.c
newlib/libm/math/s_isinf.c
newlib/libm/math/s_isnan.c
newlib/libm/math/s_ldexp.c
newlib/libm/math/sf_isinf.c
newlib/libm/math/sf_isnan.c
newlib/libm/math/w_acos.c
newlib/libm/math/w_acosh.c
newlib/libm/math/w_asin.c
newlib/libm/math/w_atan2.c
newlib/libm/math/w_atanh.c
newlib/libm/math/w_cosh.c
newlib/libm/math/w_exp.c
newlib/libm/math/w_fmod.c
newlib/libm/math/w_gamma.c
newlib/libm/math/w_hypot.c
newlib/libm/math/w_j0.c
newlib/libm/math/w_lgamma.c
newlib/libm/math/w_log.c
newlib/libm/math/w_pow.c
newlib/libm/math/w_sinh.c
newlib/libm/math/wf_gamma.c
newlib/libm/math/wf_lgamma.c
newlib/libm/mathfp/Makefile.am
newlib/libm/mathfp/Makefile.in
newlib/libm/mathfp/e_acosh.c
newlib/libm/mathfp/e_atanh.c
newlib/libm/mathfp/e_hypot.c
newlib/libm/mathfp/er_gamma.c
newlib/libm/mathfp/er_lgamma.c
newlib/libm/mathfp/erf_gamma.c
newlib/libm/mathfp/erf_lgamma.c
newlib/libm/mathfp/mathfp.tex
newlib/libm/mathfp/s_acos.c
newlib/libm/mathfp/s_asine.c
newlib/libm/mathfp/s_asinh.c
newlib/libm/mathfp/s_atan.c
newlib/libm/mathfp/s_atan2.c
newlib/libm/mathfp/s_atangent.c
newlib/libm/mathfp/s_cosh.c
newlib/libm/mathfp/s_exp.c
newlib/libm/mathfp/s_fmod.c
newlib/libm/mathfp/s_frexp.c
newlib/libm/mathfp/s_infconst.c
newlib/libm/mathfp/s_isinf.c
newlib/libm/mathfp/s_isnan.c
newlib/libm/mathfp/s_ldexp.c
newlib/libm/mathfp/s_logarithm.c
newlib/libm/mathfp/s_mathcnst.c
newlib/libm/mathfp/s_pow.c
newlib/libm/mathfp/s_sineh.c
newlib/libm/mathfp/sf_atangent.c
newlib/libm/mathfp/sf_frexp.c
newlib/libm/mathfp/sf_isinf.c
newlib/libm/mathfp/sf_isnan.c
newlib/libm/mathfp/sf_pow.c
newlib/libm/mathfp/w_jn.c
newlib/libm/test/Makefile.in
newlib/libm/test/convert.c
symlink-tree
texinfo/texinfo.tex
Cherrypick from master 2001-12-13 23:57:00 UTC Thomas Fitzsimmons <fitzsim@redhat.com> ' * configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystem':
ChangeLog
config.guess
config.sub
newlib/Makefile.am
newlib/Makefile.in
Cherrypick from master 2002-01-28 18:03:54 UTC Thomas Fitzsimmons <fitzsim@redhat.com> ' * libc/include/sys/signal.h [__CYGWIN__]: Issue error message':
newlib/libc/include/sys/signal.h
Cherrypick from cygnus 1999-05-03 07:29:06 UTC Richard Henderson <rth@redhat.com> '19990502 sourceware import':
COPYING
COPYING.LIB
config/mh-a68bsd
config/mh-aix386
config/mh-apollo68
config/mh-cxux
config/mh-cygwin
config/mh-decstation
config/mh-delta88
config/mh-dgux
config/mh-dgux386
config/mh-djgpp
config/mh-hp300
config/mh-hpux
config/mh-hpux8
config/mh-interix
config/mh-irix4
config/mh-irix5
config/mh-lynxos
config/mh-lynxrs6k
config/mh-mingw32
config/mh-ncr3000
config/mh-ncrsvr43
config/mh-necv4
config/mh-riscos
config/mh-sco
config/mh-solaris
config/mh-sun3
config/mh-sysv
config/mh-sysv4
config/mh-sysv5
config/mh-vaxult2
config/mpw-mh-mpw
config/mpw/ChangeLog
config/mpw/MoveIfChange
config/mpw/README
config/mpw/forward-include
config/mpw/g-mpw-make.sed
config/mpw/mpw-touch
config/mpw/mpw-true
config/mpw/null-command
config/mpw/open-brace
config/mpw/tr-7to8-src
config/mpw/true
config/mt-armpic
config/mt-elfalphapic
config/mt-linux
config/mt-m68kpic
config/mt-papic
config/mt-ppcpic
config/mt-v810
config/mt-x86pic
etc/Makefile.in
etc/configure.texi
etc/make-stds.texi
etc/standards.texi
install-sh
missing
mkinstalldirs
move-if-change
mpw-README
mpw-build.in
mpw-config.in
mpw-configure
mpw-install
setup.com
ylwrap
Delete:
COPYING.LIBGLOSS
Makefile.def
Makefile.tpl
compile
config/acx.m4
config/codeset.m4
config/depstand.m4
config/enable.m4
config/gettext-sister.m4
config/gettext.m4
config/glibc21.m4
config/gxx-include-dir.m4
config/iconv.m4
config/intdiv0.m4
config/inttypes-pri.m4
config/inttypes.m4
config/inttypes_h.m4
config/lcmessage.m4
config/lead-dot.m4
config/lib-ld.m4
config/lib-link.m4
config/lib-prefix.m4
config/mh-ppc-aix
config/mh-ppc-darwin
config/mh-x86omitfp
config/mt-alphaieee
config/mt-gnu
config/nls.m4
config/no-executables.m4
config/po.m4
config/progtest.m4
config/stdint.m4
config/stdint_h.m4
config/tls.m4
config/uintmax_t.m4
config/ulonglong.m4
config/warnings.m4
depcomp
etc/fdl.texi
libgloss/arm/Makefile.in
libgloss/arm/coff-iq80310.specs
libgloss/arm/coff-pid.specs
libgloss/arm/coff-rdimon.specs
libgloss/arm/coff-rdpmon.specs
libgloss/arm/coff-redboot.ld
libgloss/arm/coff-redboot.specs
libgloss/arm/configure
libgloss/arm/configure.in
libgloss/arm/crt0.S
libgloss/arm/elf-iq80310.specs
libgloss/arm/elf-pid.specs
libgloss/arm/elf-rdimon.specs
libgloss/arm/elf-rdpmon.specs
libgloss/arm/elf-redboot.ld
libgloss/arm/elf-redboot.specs
libgloss/arm/libcfunc.c
libgloss/arm/redboot-crt0.S
libgloss/arm/redboot-syscalls.c
libgloss/arm/swi.h
libgloss/arm/syscall.h
libgloss/arm/syscalls.c
libgloss/arm/trap.S
libgloss/cris/Makefile.in
libgloss/cris/configure
libgloss/cris/configure.in
libgloss/cris/crt0.S
libgloss/cris/crti.c
libgloss/cris/crtn.c
libgloss/cris/gensyscalls
libgloss/cris/lcrt0.c
libgloss/cris/linunistd.h
libgloss/cris/outbyte.c
libgloss/cris/setup.S
libgloss/crx/Makefile.in
libgloss/crx/_exit.c
libgloss/crx/_getenv.c
libgloss/crx/_rename.c
libgloss/crx/close.c
libgloss/crx/configure
libgloss/crx/configure.in
libgloss/crx/crt0.S
libgloss/crx/crti.S
libgloss/crx/crtn.S
libgloss/crx/dvz_hndl.c
libgloss/crx/flg_hndl.c
libgloss/crx/fstat.c
libgloss/crx/getpid.c
libgloss/crx/iad_hndl.c
libgloss/crx/intable.c
libgloss/crx/isatty.c
libgloss/crx/kill.c
libgloss/crx/lseek.c
libgloss/crx/open.c
libgloss/crx/putnum.c
libgloss/crx/read.c
libgloss/crx/sbrk.c
libgloss/crx/sim.ld
libgloss/crx/stat.c
libgloss/crx/svc_hndl.c
libgloss/crx/time.c
libgloss/crx/und_hndl.c
libgloss/crx/unlink.c
libgloss/crx/write.c
libgloss/frv/Makefile.in
libgloss/frv/configure
libgloss/frv/configure.in
libgloss/frv/crt0.S
libgloss/frv/fstat.c
libgloss/frv/getpid.c
libgloss/frv/isatty.c
libgloss/frv/kill.c
libgloss/frv/print.c
libgloss/frv/putnum.c
libgloss/frv/sbrk.c
libgloss/frv/sim-close.S
libgloss/frv/sim-exit.S
libgloss/frv/sim-inbyte.c
libgloss/frv/sim-lseek.S
libgloss/frv/sim-open.S
libgloss/frv/sim-read.S
libgloss/frv/sim-time.c
libgloss/frv/sim-unlink.S
libgloss/frv/sim-write.S
libgloss/frv/stat.c
libgloss/iq2000/Makefile.in
libgloss/iq2000/_exit.c
libgloss/iq2000/access.c
libgloss/iq2000/chmod.c
libgloss/iq2000/chown.c
libgloss/iq2000/close.c
libgloss/iq2000/configure
libgloss/iq2000/configure.in
libgloss/iq2000/creat.c
libgloss/iq2000/crt0.S
libgloss/iq2000/crt1.c
libgloss/iq2000/execv.c
libgloss/iq2000/execve.c
libgloss/iq2000/fork.c
libgloss/iq2000/fstat.c
libgloss/iq2000/getpid.c
libgloss/iq2000/gettime.c
libgloss/iq2000/isatty.c
libgloss/iq2000/kill.c
libgloss/iq2000/lseek.c
libgloss/iq2000/open.c
libgloss/iq2000/pipe.c
libgloss/iq2000/read.c
libgloss/iq2000/sbrk.c
libgloss/iq2000/sim.ld
libgloss/iq2000/stat.c
libgloss/iq2000/test.c
libgloss/iq2000/time.c
libgloss/iq2000/times.c
libgloss/iq2000/trap.c
libgloss/iq2000/trap.h
libgloss/iq2000/unlink.c
libgloss/iq2000/utime.c
libgloss/iq2000/wait.c
libgloss/iq2000/write.c
libgloss/libnosys/_exit.c
libgloss/libnosys/chown.c
libgloss/libnosys/errno.c
libgloss/libnosys/readlink.c
libgloss/libnosys/symlink.c
libgloss/m32c/Makefile.in
libgloss/m32c/abort.S
libgloss/m32c/argv.S
libgloss/m32c/argvlen.S
libgloss/m32c/chdir.S
libgloss/m32c/chmod.S
libgloss/m32c/close.S
libgloss/m32c/configure
libgloss/m32c/configure.in
libgloss/m32c/crt0.S
libgloss/m32c/crtn.S
libgloss/m32c/exit.S
libgloss/m32c/fstat.S
libgloss/m32c/genscript
libgloss/m32c/getpid.S
libgloss/m32c/gettimeofday.S
libgloss/m32c/heaptop.S
libgloss/m32c/isatty.S
libgloss/m32c/kill.S
libgloss/m32c/link.S
libgloss/m32c/lseek.S
libgloss/m32c/m32c.tmpl
libgloss/m32c/m32csys.h
libgloss/m32c/open.S
libgloss/m32c/read.S
libgloss/m32c/sbrk.c
libgloss/m32c/stat.S
libgloss/m32c/time.S
libgloss/m32c/times.S
libgloss/m32c/unlink.S
libgloss/m32c/utime.S
libgloss/m32c/write.S
libgloss/m68hc11/Makefile.in
libgloss/m68hc11/configure
libgloss/m68hc11/configure.in
libgloss/m68hc11/crt0.S
libgloss/m68hc11/sci-inout.S
libgloss/m68hc11/sim-valid-m68hc11.ld
libgloss/m68hc11/sim-valid-m68hc12.ld
libgloss/m68hc11/syscalls.c
libgloss/m68k/dbug-cf.sc
libgloss/mips/cfe.c
libgloss/mips/cfe.ld
libgloss/mips/cfe_api.c
libgloss/mips/cfe_api.h
libgloss/mips/cfe_api_int.h
libgloss/mips/cfe_error.h
libgloss/mips/cfe_mem.c
libgloss/mips/crt0_cfe.S
libgloss/mips/crt0_cygmon.S
libgloss/mips/cygmon.c
libgloss/mn10300/asb2303.ld
libgloss/mn10300/asb2305.ld
libgloss/mt/16-002.ld
libgloss/mt/16-003.ld
libgloss/mt/64-001.ld
libgloss/mt/Makefile.in
libgloss/mt/access.c
libgloss/mt/chmod.c
libgloss/mt/close.c
libgloss/mt/configure
libgloss/mt/configure.in
libgloss/mt/crt0-16-002.S
libgloss/mt/crt0-16-003.S
libgloss/mt/crt0-64-001.S
libgloss/mt/crt0-ms2.S
libgloss/mt/crt0.S
libgloss/mt/exit-16-002.c
libgloss/mt/exit-16-003.c
libgloss/mt/exit-64-001.c
libgloss/mt/exit-ms2.c
libgloss/mt/exit.c
libgloss/mt/fstat.c
libgloss/mt/getpid.c
libgloss/mt/gettime.c
libgloss/mt/isatty.c
libgloss/mt/kill.c
libgloss/mt/lseek.c
libgloss/mt/ms2.ld
libgloss/mt/open.c
libgloss/mt/read.c
libgloss/mt/sbrk.c
libgloss/mt/startup-16-002.S
libgloss/mt/startup-16-003.S
libgloss/mt/startup-64-001.S
libgloss/mt/startup-ms2.S
libgloss/mt/stat.c
libgloss/mt/time.c
libgloss/mt/times.c
libgloss/mt/trap.S
libgloss/mt/trap.h
libgloss/mt/unlink.c
libgloss/mt/utime.c
libgloss/mt/write.c
libgloss/rs6000/sim-getrusage.S
libgloss/xstormy16/Makefile.in
libgloss/xstormy16/close.c
libgloss/xstormy16/configure
libgloss/xstormy16/configure.in
libgloss/xstormy16/crt0.s
libgloss/xstormy16/crt0_stub.s
libgloss/xstormy16/crti.s
libgloss/xstormy16/crtn.s
libgloss/xstormy16/eva_app.c
libgloss/xstormy16/eva_app.ld
libgloss/xstormy16/eva_stub.ld
libgloss/xstormy16/fstat.c
libgloss/xstormy16/getpid.c
libgloss/xstormy16/kill.c
libgloss/xstormy16/lseek.c
libgloss/xstormy16/open.c
libgloss/xstormy16/sim_high.ld
libgloss/xstormy16/sim_malloc_start.s
libgloss/xstormy16/sim_rom.ld
libgloss/xstormy16/stat.c
libgloss/xstormy16/syscalls.S
libgloss/xstormy16/syscalls.m4
libgloss/xstormy16/unlink.c
libgloss/xstormy16/xstormy16_stub.c
newlib/acconfig.h
newlib/iconvdata/EUC-JP.irreversible
newlib/iconvdata/Makefile.am
newlib/iconvdata/Makefile.in
newlib/iconvdata/SJIS.irreversible
newlib/iconvdata/aclocal.m4
newlib/iconvdata/configure
newlib/iconvdata/configure.in
newlib/iconvdata/dummy.c
newlib/iconvdata/euc-jp.c
newlib/iconvdata/gconv-modules
newlib/iconvdata/jis0201.c
newlib/iconvdata/jis0201.h
newlib/iconvdata/jis0208.c
newlib/iconvdata/jis0208.h
newlib/iconvdata/jis0212.c
newlib/iconvdata/jis0212.h
newlib/iconvdata/sjis.c
newlib/libc/argz/Makefile.am
newlib/libc/argz/Makefile.in
newlib/libc/argz/argz_add.c
newlib/libc/argz/argz_add_sep.c
newlib/libc/argz/argz_append.c
newlib/libc/argz/argz_count.c
newlib/libc/argz/argz_create.c
newlib/libc/argz/argz_create_sep.c
newlib/libc/argz/argz_delete.c
newlib/libc/argz/argz_extract.c
newlib/libc/argz/argz_insert.c
newlib/libc/argz/argz_next.c
newlib/libc/argz/argz_replace.c
newlib/libc/argz/argz_stringify.c
newlib/libc/argz/buf_findstr.c
newlib/libc/argz/buf_findstr.h
newlib/libc/argz/dummy.c
newlib/libc/argz/envz_add.c
newlib/libc/argz/envz_entry.c
newlib/libc/argz/envz_get.c
newlib/libc/argz/envz_merge.c
newlib/libc/argz/envz_remove.c
newlib/libc/argz/envz_strip.c
newlib/libc/ctype/isblank.c
newlib/libc/ctype/iswalnum.c
newlib/libc/ctype/iswalpha.c
newlib/libc/ctype/iswblank.c
newlib/libc/ctype/iswcntrl.c
newlib/libc/ctype/iswctype.c
newlib/libc/ctype/iswdigit.c
newlib/libc/ctype/iswgraph.c
newlib/libc/ctype/iswlower.c
newlib/libc/ctype/iswprint.c
newlib/libc/ctype/iswpunct.c
newlib/libc/ctype/iswspace.c
newlib/libc/ctype/iswupper.c
newlib/libc/ctype/iswxdigit.c
newlib/libc/ctype/jp2uc.c
newlib/libc/ctype/jp2uc.h
newlib/libc/ctype/local.h
newlib/libc/ctype/towctrans.c
newlib/libc/ctype/towlower.c
newlib/libc/ctype/towupper.c
newlib/libc/ctype/utf8alpha.h
newlib/libc/ctype/utf8print.h
newlib/libc/ctype/utf8punct.h
newlib/libc/ctype/wctrans.c
newlib/libc/ctype/wctype.c
newlib/libc/iconv/Makefile.am
newlib/libc/iconv/Makefile.in
newlib/libc/iconv/ccs/Makefile.am
newlib/libc/iconv/ccs/Makefile.in
newlib/libc/iconv/ccs/big5.c
newlib/libc/iconv/ccs/binary/Makefile.am
newlib/libc/iconv/ccs/binary/Makefile.in
newlib/libc/iconv/ccs/binary/big5.cct
newlib/libc/iconv/ccs/binary/cns11643_plane1.cct
newlib/libc/iconv/ccs/binary/cns11643_plane14.cct
newlib/libc/iconv/ccs/binary/cns11643_plane2.cct
newlib/libc/iconv/ccs/binary/cp775.cct
newlib/libc/iconv/ccs/binary/cp850.cct
newlib/libc/iconv/ccs/binary/cp852.cct
newlib/libc/iconv/ccs/binary/cp855.cct
newlib/libc/iconv/ccs/binary/cp866.cct
newlib/libc/iconv/ccs/binary/iso_8859_1.cct
newlib/libc/iconv/ccs/binary/iso_8859_10.cct
newlib/libc/iconv/ccs/binary/iso_8859_11.cct
newlib/libc/iconv/ccs/binary/iso_8859_13.cct
newlib/libc/iconv/ccs/binary/iso_8859_14.cct
newlib/libc/iconv/ccs/binary/iso_8859_15.cct
newlib/libc/iconv/ccs/binary/iso_8859_2.cct
newlib/libc/iconv/ccs/binary/iso_8859_3.cct
newlib/libc/iconv/ccs/binary/iso_8859_4.cct
newlib/libc/iconv/ccs/binary/iso_8859_5.cct
newlib/libc/iconv/ccs/binary/iso_8859_6.cct
newlib/libc/iconv/ccs/binary/iso_8859_7.cct
newlib/libc/iconv/ccs/binary/iso_8859_8.cct
newlib/libc/iconv/ccs/binary/iso_8859_9.cct
newlib/libc/iconv/ccs/binary/iso_ir_111.cct
newlib/libc/iconv/ccs/binary/jis_x0201_1976.cct
newlib/libc/iconv/ccs/binary/jis_x0208_1990.cct
newlib/libc/iconv/ccs/binary/jis_x0212_1990.cct
newlib/libc/iconv/ccs/binary/koi8_r.cct
newlib/libc/iconv/ccs/binary/koi8_ru.cct
newlib/libc/iconv/ccs/binary/koi8_u.cct
newlib/libc/iconv/ccs/binary/koi8_uni.cct
newlib/libc/iconv/ccs/binary/ksx1001.cct
newlib/libc/iconv/ccs/binary/win_1250.cct
newlib/libc/iconv/ccs/binary/win_1251.cct
newlib/libc/iconv/ccs/binary/win_1252.cct
newlib/libc/iconv/ccs/binary/win_1253.cct
newlib/libc/iconv/ccs/binary/win_1254.cct
newlib/libc/iconv/ccs/binary/win_1255.cct
newlib/libc/iconv/ccs/binary/win_1256.cct
newlib/libc/iconv/ccs/binary/win_1257.cct
newlib/libc/iconv/ccs/binary/win_1258.cct
newlib/libc/iconv/ccs/ccs.h
newlib/libc/iconv/ccs/ccsbi.c
newlib/libc/iconv/ccs/ccsbi.h
newlib/libc/iconv/ccs/ccsnames.h
newlib/libc/iconv/ccs/cns11643_plane1.c
newlib/libc/iconv/ccs/cns11643_plane14.c
newlib/libc/iconv/ccs/cns11643_plane2.c
newlib/libc/iconv/ccs/cp775.c
newlib/libc/iconv/ccs/cp850.c
newlib/libc/iconv/ccs/cp852.c
newlib/libc/iconv/ccs/cp855.c
newlib/libc/iconv/ccs/cp866.c
newlib/libc/iconv/ccs/iso_8859_1.c
newlib/libc/iconv/ccs/iso_8859_10.c
newlib/libc/iconv/ccs/iso_8859_11.c
newlib/libc/iconv/ccs/iso_8859_13.c
newlib/libc/iconv/ccs/iso_8859_14.c
newlib/libc/iconv/ccs/iso_8859_15.c
newlib/libc/iconv/ccs/iso_8859_2.c
newlib/libc/iconv/ccs/iso_8859_3.c
newlib/libc/iconv/ccs/iso_8859_4.c
newlib/libc/iconv/ccs/iso_8859_5.c
newlib/libc/iconv/ccs/iso_8859_6.c
newlib/libc/iconv/ccs/iso_8859_7.c
newlib/libc/iconv/ccs/iso_8859_8.c
newlib/libc/iconv/ccs/iso_8859_9.c
newlib/libc/iconv/ccs/iso_ir_111.c
newlib/libc/iconv/ccs/jis_x0201_1976.c
newlib/libc/iconv/ccs/jis_x0208_1990.c
newlib/libc/iconv/ccs/jis_x0212_1990.c
newlib/libc/iconv/ccs/koi8_r.c
newlib/libc/iconv/ccs/koi8_ru.c
newlib/libc/iconv/ccs/koi8_u.c
newlib/libc/iconv/ccs/koi8_uni.c
newlib/libc/iconv/ccs/ksx1001.c
newlib/libc/iconv/ccs/mktbl.pl
newlib/libc/iconv/ccs/win_1250.c
newlib/libc/iconv/ccs/win_1251.c
newlib/libc/iconv/ccs/win_1252.c
newlib/libc/iconv/ccs/win_1253.c
newlib/libc/iconv/ccs/win_1254.c
newlib/libc/iconv/ccs/win_1255.c
newlib/libc/iconv/ccs/win_1256.c
newlib/libc/iconv/ccs/win_1257.c
newlib/libc/iconv/ccs/win_1258.c
newlib/libc/iconv/ces/Makefile.am
newlib/libc/iconv/ces/Makefile.in
newlib/libc/iconv/ces/cesbi.c
newlib/libc/iconv/ces/cesbi.h
newlib/libc/iconv/ces/cesdeps.h
newlib/libc/iconv/ces/euc.c
newlib/libc/iconv/ces/mkdeps.pl
newlib/libc/iconv/ces/table-pcs.c
newlib/libc/iconv/ces/table.c
newlib/libc/iconv/ces/ucs-2-internal.c
newlib/libc/iconv/ces/ucs-2.c
newlib/libc/iconv/ces/ucs-4-internal.c
newlib/libc/iconv/ces/ucs-4.c
newlib/libc/iconv/ces/us-ascii.c
newlib/libc/iconv/ces/utf-16.c
newlib/libc/iconv/ces/utf-8.c
newlib/libc/iconv/encoding.aliases
newlib/libc/iconv/iconv.tex
newlib/libc/iconv/lib/Makefile.am
newlib/libc/iconv/lib/Makefile.in
newlib/libc/iconv/lib/aliasesbi.c
newlib/libc/iconv/lib/aliasesi.c
newlib/libc/iconv/lib/conv.h
newlib/libc/iconv/lib/encnames.h
newlib/libc/iconv/lib/encoding.deps
newlib/libc/iconv/lib/endian.h
newlib/libc/iconv/lib/iconv.c
newlib/libc/iconv/lib/iconvnls.c
newlib/libc/iconv/lib/iconvnls.h
newlib/libc/iconv/lib/local.h
newlib/libc/iconv/lib/nullconv.c
newlib/libc/iconv/lib/ucsconv.c
newlib/libc/iconv/lib/ucsconv.h
newlib/libc/include/argz.h
newlib/libc/include/envz.h
newlib/libc/include/getopt.h
newlib/libc/include/iconv.h
newlib/libc/include/inttypes.h
newlib/libc/include/langinfo.h
newlib/libc/include/libgen.h
newlib/libc/include/limits.h
newlib/libc/include/machine/_types.h
newlib/libc/include/machine/endian.h
newlib/libc/include/machine/malloc.h
newlib/libc/include/machine/param.h
newlib/libc/include/machine/stdlib.h
newlib/libc/include/machine/termios.h
newlib/libc/include/newlib.h
newlib/libc/include/search.h
newlib/libc/include/stdint.h
newlib/libc/include/sys/cdefs.h
newlib/libc/include/sys/iconvnls.h
newlib/libc/include/sys/lock.h
newlib/libc/include/sys/queue.h
newlib/libc/include/sys/stdio.h
newlib/libc/include/sys/string.h
newlib/libc/include/sys/syslimits.h
newlib/libc/include/wchar.h
newlib/libc/include/wctype.h
newlib/libc/locale/fix_grouping.c
newlib/libc/locale/ldpart.c
newlib/libc/locale/ldpart.h
newlib/libc/locale/lmessages.c
newlib/libc/locale/lmessages.h
newlib/libc/locale/lmonetary.c
newlib/libc/locale/lmonetary.h
newlib/libc/locale/lnumeric.c
newlib/libc/locale/lnumeric.h
newlib/libc/locale/nl_langinfo.3
newlib/libc/locale/nl_langinfo.c
newlib/libc/locale/setlocale.h
newlib/libc/locale/timelocal.c
newlib/libc/locale/timelocal.h
newlib/libc/machine/arm/access.c
newlib/libc/machine/arm/machine/endian.h
newlib/libc/machine/arm/machine/param.h
newlib/libc/machine/arm/setjmp.S
newlib/libc/machine/cris/Makefile.am
newlib/libc/machine/cris/Makefile.in
newlib/libc/machine/cris/aclocal.m4
newlib/libc/machine/cris/configure
newlib/libc/machine/cris/configure.in
newlib/libc/machine/cris/include/pthread.h
newlib/libc/machine/cris/libcdtor.c
newlib/libc/machine/cris/memcpy.c
newlib/libc/machine/cris/memmove.c
newlib/libc/machine/cris/memset.c
newlib/libc/machine/cris/setjmp.c
newlib/libc/machine/cris/sys/errno.h
newlib/libc/machine/cris/sys/fcntl.h
newlib/libc/machine/cris/sys/signal.h
newlib/libc/machine/crx/Makefile.am
newlib/libc/machine/crx/Makefile.in
newlib/libc/machine/crx/aclocal.m4
newlib/libc/machine/crx/configure
newlib/libc/machine/crx/configure.in
newlib/libc/machine/crx/getenv.c
newlib/libc/machine/crx/setjmp.S
newlib/libc/machine/crx/sys/asm.h
newlib/libc/machine/crx/sys/libh.h
newlib/libc/machine/crx/sys/syscall.h
newlib/libc/machine/frv/Makefile.am
newlib/libc/machine/frv/Makefile.in
newlib/libc/machine/frv/aclocal.m4
newlib/libc/machine/frv/configure
newlib/libc/machine/frv/configure.in
newlib/libc/machine/frv/setjmp.S
newlib/libc/machine/h8300/h8sx_strcpy.S
newlib/libc/machine/h8300/setarch.h
newlib/libc/machine/i386/f_atan2.S
newlib/libc/machine/i386/f_atan2f.S
newlib/libc/machine/i386/f_exp.c
newlib/libc/machine/i386/f_expf.c
newlib/libc/machine/i386/f_frexp.S
newlib/libc/machine/i386/f_frexpf.S
newlib/libc/machine/i386/f_ldexp.S
newlib/libc/machine/i386/f_ldexpf.S
newlib/libc/machine/i386/f_log.S
newlib/libc/machine/i386/f_log10.S
newlib/libc/machine/i386/f_log10f.S
newlib/libc/machine/i386/f_logf.S
newlib/libc/machine/i386/f_math.h
newlib/libc/machine/i386/f_pow.c
newlib/libc/machine/i386/f_powf.c
newlib/libc/machine/i386/f_tan.S
newlib/libc/machine/i386/f_tanf.S
newlib/libc/machine/iq2000/Makefile.am
newlib/libc/machine/iq2000/Makefile.in
newlib/libc/machine/iq2000/aclocal.m4
newlib/libc/machine/iq2000/configure
newlib/libc/machine/iq2000/configure.in
newlib/libc/machine/iq2000/setjmp.S
newlib/libc/machine/m32c/Makefile.am
newlib/libc/machine/m32c/Makefile.in
newlib/libc/machine/m32c/aclocal.m4
newlib/libc/machine/m32c/configure
newlib/libc/machine/m32c/configure.in
newlib/libc/machine/m32c/setjmp.S
newlib/libc/machine/m68hc11/Makefile.am
newlib/libc/machine/m68hc11/Makefile.in
newlib/libc/machine/m68hc11/aclocal.m4
newlib/libc/machine/m68hc11/configure
newlib/libc/machine/m68hc11/configure.in
newlib/libc/machine/m68hc11/setjmp.S
newlib/libc/machine/mips/memcpy.c
newlib/libc/machine/mips/memset.c
newlib/libc/machine/mips/strcmp.c
newlib/libc/machine/mips/strlen.c
newlib/libc/machine/mips/strncpy.c
newlib/libc/machine/mt/Makefile.am
newlib/libc/machine/mt/Makefile.in
newlib/libc/machine/mt/aclocal.m4
newlib/libc/machine/mt/configure
newlib/libc/machine/mt/configure.in
newlib/libc/machine/mt/setjmp.S
newlib/libc/machine/powerpc/atosfix16.c
newlib/libc/machine/powerpc/atosfix32.c
newlib/libc/machine/powerpc/atosfix64.c
newlib/libc/machine/powerpc/atoufix16.c
newlib/libc/machine/powerpc/atoufix32.c
newlib/libc/machine/powerpc/atoufix64.c
newlib/libc/machine/powerpc/fix64.h
newlib/libc/machine/powerpc/machine/malloc.h
newlib/libc/machine/powerpc/machine/stdlib.h
newlib/libc/machine/powerpc/simdldtoa.c
newlib/libc/machine/powerpc/strtosfix16.c
newlib/libc/machine/powerpc/strtosfix32.c
newlib/libc/machine/powerpc/strtosfix64.c
newlib/libc/machine/powerpc/strtoufix16.c
newlib/libc/machine/powerpc/strtoufix32.c
newlib/libc/machine/powerpc/strtoufix64.c
newlib/libc/machine/powerpc/times.c
newlib/libc/machine/powerpc/ufix64toa.c
newlib/libc/machine/powerpc/vec_calloc.c
newlib/libc/machine/powerpc/vec_free.c
newlib/libc/machine/powerpc/vec_malloc.c
newlib/libc/machine/powerpc/vec_mallocr.c
newlib/libc/machine/powerpc/vec_realloc.c
newlib/libc/machine/powerpc/vfprintf.c
newlib/libc/machine/powerpc/vfscanf.c
newlib/libc/machine/sh/strlen.S
newlib/libc/machine/sh/strncpy.S
newlib/libc/machine/tic4x/Makefile.am
newlib/libc/machine/tic4x/Makefile.in
newlib/libc/machine/tic4x/aclocal.m4
newlib/libc/machine/tic4x/configure
newlib/libc/machine/tic4x/configure.in
newlib/libc/machine/tic4x/setjmp.S
newlib/libc/machine/xscale/machine/profile.h
newlib/libc/machine/xscale/setjmp.S
newlib/libc/machine/xstormy16/Makefile.am
newlib/libc/machine/xstormy16/Makefile.in
newlib/libc/machine/xstormy16/aclocal.m4
newlib/libc/machine/xstormy16/configure
newlib/libc/machine/xstormy16/configure.in
newlib/libc/machine/xstormy16/mallocr.c
newlib/libc/machine/xstormy16/setjmp.S
newlib/libc/machine/xstormy16/tiny-malloc.c
newlib/libc/machine/z8k/memcmp.S
newlib/libc/machine/z8k/memcpy.S
newlib/libc/machine/z8k/memmove.S
newlib/libc/machine/z8k/memset.S
newlib/libc/misc/init.c
newlib/libc/posix/readdir_r.c
newlib/libc/reent/fcntlr.c
newlib/libc/reent/fstat64r.c
newlib/libc/reent/getreent.c
newlib/libc/reent/lseek64r.c
newlib/libc/reent/open64r.c
newlib/libc/search/Makefile.am
newlib/libc/search/Makefile.in
newlib/libc/search/bsearch.c
newlib/libc/search/db_local.h
newlib/libc/search/extern.h
newlib/libc/search/hash.c
newlib/libc/search/hash.h
newlib/libc/search/hash_bigkey.c
newlib/libc/search/hash_buf.c
newlib/libc/search/hash_func.c
newlib/libc/search/hash_log2.c
newlib/libc/search/hash_page.c
newlib/libc/search/hcreate.3
newlib/libc/search/hcreate.c
newlib/libc/search/hcreate_r.c
newlib/libc/search/page.h
newlib/libc/search/qsort.c
newlib/libc/search/tdelete.c
newlib/libc/search/tdestroy.c
newlib/libc/search/tfind.c
newlib/libc/search/tsearch.3
newlib/libc/search/tsearch.c
newlib/libc/search/twalk.c
newlib/libc/stdio/asiprintf.c
newlib/libc/stdio/asprintf.c
newlib/libc/stdio/dprintf.c
newlib/libc/stdio/fcloseall.c
newlib/libc/stdio/fiscanf.c
newlib/libc/stdio/fseeko.c
newlib/libc/stdio/ftello.c
newlib/libc/stdio/getc_u.c
newlib/libc/stdio/getchar_u.c
newlib/libc/stdio/getdelim.c
newlib/libc/stdio/getline.c
newlib/libc/stdio/iscanf.c
newlib/libc/stdio/putc_u.c
newlib/libc/stdio/putchar_u.c
newlib/libc/stdio/sccl.c
newlib/libc/stdio/setbuffer.c
newlib/libc/stdio/setlinebuf.c
newlib/libc/stdio/siscanf.c
newlib/libc/stdio/sniprintf.c
newlib/libc/stdio/vasiprintf.c
newlib/libc/stdio/vasprintf.c
newlib/libc/stdio/vdprintf.c
newlib/libc/stdio/viprintf.c
newlib/libc/stdio/viscanf.c
newlib/libc/stdio/vsiprintf.c
newlib/libc/stdio/vsiscanf.c
newlib/libc/stdio/vsniprintf.c
newlib/libc/stdio64/Makefile.am
newlib/libc/stdio64/Makefile.in
newlib/libc/stdio64/dummy.c
newlib/libc/stdio64/fdopen64.c
newlib/libc/stdio64/fgetpos64.c
newlib/libc/stdio64/fopen64.c
newlib/libc/stdio64/freopen64.c
newlib/libc/stdio64/fseeko64.c
newlib/libc/stdio64/fsetpos64.c
newlib/libc/stdio64/ftello64.c
newlib/libc/stdio64/local64.h
newlib/libc/stdio64/stdio64.c
newlib/libc/stdio64/stdio64.tex
newlib/libc/stdio64/tmpfile64.c
newlib/libc/stdlib/_Exit.c
newlib/libc/stdlib/__atexit.c
newlib/libc/stdlib/__call_atexit.c
newlib/libc/stdlib/a64l.c
newlib/libc/stdlib/atoll.c
newlib/libc/stdlib/btowc.c
newlib/libc/stdlib/cxa_atexit.c
newlib/libc/stdlib/cxa_finalize.c
newlib/libc/stdlib/getsubopt.3
newlib/libc/stdlib/getsubopt.c
newlib/libc/stdlib/l64a.c
newlib/libc/stdlib/llabs.c
newlib/libc/stdlib/lldiv.c
newlib/libc/stdlib/mbrlen.c
newlib/libc/stdlib/mbrtowc.c
newlib/libc/stdlib/mbsinit.c
newlib/libc/stdlib/mbsrtowcs.c
newlib/libc/stdlib/on_exit.c
newlib/libc/stdlib/wcrtomb.c
newlib/libc/stdlib/wcsrtombs.c
newlib/libc/stdlib/wctob.c
newlib/libc/string/memccpy.c
newlib/libc/string/mempcpy.c
newlib/libc/string/strdup.c
newlib/libc/string/strdup_r.c
newlib/libc/string/strerror_r.c
newlib/libc/string/strlcat.c
newlib/libc/string/strlcpy.c
newlib/libc/string/strndup.c
newlib/libc/string/strndup_r.c
newlib/libc/string/strnlen.c
newlib/libc/string/strsep.c
newlib/libc/string/wcscat.c
newlib/libc/string/wcschr.c
newlib/libc/string/wcscmp.c
newlib/libc/string/wcscoll.c
newlib/libc/string/wcscpy.c
newlib/libc/string/wcscspn.c
newlib/libc/string/wcslcat.c
newlib/libc/string/wcslcpy.c
newlib/libc/string/wcslen.c
newlib/libc/string/wcsncat.c
newlib/libc/string/wcsncmp.c
newlib/libc/string/wcsncpy.c
newlib/libc/string/wcsnlen.c
newlib/libc/string/wcspbrk.c
newlib/libc/string/wcsrchr.c
newlib/libc/string/wcsspn.c
newlib/libc/string/wcsstr.c
newlib/libc/string/wcstrings.tex
newlib/libc/string/wcswidth.c
newlib/libc/string/wcwidth.c
newlib/libc/string/wmemchr.c
newlib/libc/string/wmemcmp.c
newlib/libc/string/wmemcpy.c
newlib/libc/string/wmemmove.c
newlib/libc/string/wmemset.c
newlib/libc/sys/arm/aeabi_atexit.c
newlib/libc/sys/h8300hms/_exit.S
newlib/libc/sys/h8300hms/close.S
newlib/libc/sys/h8300hms/fstat.S
newlib/libc/sys/h8300hms/lseek.S
newlib/libc/sys/h8300hms/open.S
newlib/libc/sys/h8300hms/read.S
newlib/libc/sys/h8300hms/setarch.h
newlib/libc/sys/h8300hms/stat.S
newlib/libc/sys/h8300hms/sys/syscall.h
newlib/libc/sys/h8300hms/write.S
newlib/libc/sys/linux/aio.c
newlib/libc/sys/linux/aio64.c
newlib/libc/sys/linux/argp/Makefile.am
newlib/libc/sys/linux/argp/Makefile.in
newlib/libc/sys/linux/argp/argp-ba.c
newlib/libc/sys/linux/argp/argp-eexst.c
newlib/libc/sys/linux/argp/argp-fmtstream.c
newlib/libc/sys/linux/argp/argp-fmtstream.h
newlib/libc/sys/linux/argp/argp-fs-xinl.c
newlib/libc/sys/linux/argp/argp-help.c
newlib/libc/sys/linux/argp/argp-namefrob.h
newlib/libc/sys/linux/argp/argp-parse.c
newlib/libc/sys/linux/argp/argp-pv.c
newlib/libc/sys/linux/argp/argp-pvh.c
newlib/libc/sys/linux/argp/argp-xinl.c
newlib/libc/sys/linux/bits/initspin.h
newlib/libc/sys/linux/bits/libc-lock.h
newlib/libc/sys/linux/bits/pthreadtypes.h
newlib/libc/sys/linux/bits/typesizes.h
newlib/libc/sys/linux/bp-checks.h
newlib/libc/sys/linux/calloc.c
newlib/libc/sys/linux/callocr.c
newlib/libc/sys/linux/cfreer.c
newlib/libc/sys/linux/cfspeed.c
newlib/libc/sys/linux/clock_getres.c
newlib/libc/sys/linux/clock_gettime.c
newlib/libc/sys/linux/clock_settime.c
newlib/libc/sys/linux/cmath/Makefile.am
newlib/libc/sys/linux/cmath/Makefile.in
newlib/libc/sys/linux/cmath/math_private.h
newlib/libc/sys/linux/cmath/s_cacos.c
newlib/libc/sys/linux/cmath/s_cacosf.c
newlib/libc/sys/linux/cmath/s_cacosh.c
newlib/libc/sys/linux/cmath/s_cacoshf.c
newlib/libc/sys/linux/cmath/s_cacoshl.c
newlib/libc/sys/linux/cmath/s_cacosl.c
newlib/libc/sys/linux/cmath/s_casin.c
newlib/libc/sys/linux/cmath/s_casinf.c
newlib/libc/sys/linux/cmath/s_casinh.c
newlib/libc/sys/linux/cmath/s_casinhf.c
newlib/libc/sys/linux/cmath/s_casinhl.c
newlib/libc/sys/linux/cmath/s_casinl.c
newlib/libc/sys/linux/cmath/s_catan.c
newlib/libc/sys/linux/cmath/s_catanf.c
newlib/libc/sys/linux/cmath/s_catanh.c
newlib/libc/sys/linux/cmath/s_catanhf.c
newlib/libc/sys/linux/cmath/s_catanhl.c
newlib/libc/sys/linux/cmath/s_catanl.c
newlib/libc/sys/linux/cmath/s_cbrtl.c
newlib/libc/sys/linux/cmath/s_ccos.c
newlib/libc/sys/linux/cmath/s_ccosf.c
newlib/libc/sys/linux/cmath/s_ccosh.c
newlib/libc/sys/linux/cmath/s_ccoshf.c
newlib/libc/sys/linux/cmath/s_ccoshl.c
newlib/libc/sys/linux/cmath/s_ccosl.c
newlib/libc/sys/linux/cmath/s_cexp.c
newlib/libc/sys/linux/cmath/s_cexpf.c
newlib/libc/sys/linux/cmath/s_cexpl.c
newlib/libc/sys/linux/cmath/s_clog.c
newlib/libc/sys/linux/cmath/s_clog10.c
newlib/libc/sys/linux/cmath/s_clog10f.c
newlib/libc/sys/linux/cmath/s_clog10l.c
newlib/libc/sys/linux/cmath/s_clogf.c
newlib/libc/sys/linux/cmath/s_clogl.c
newlib/libc/sys/linux/cmath/s_cpow.c
newlib/libc/sys/linux/cmath/s_cpowf.c
newlib/libc/sys/linux/cmath/s_cpowl.c
newlib/libc/sys/linux/cmath/s_cproj.c
newlib/libc/sys/linux/cmath/s_cprojf.c
newlib/libc/sys/linux/cmath/s_cprojl.c
newlib/libc/sys/linux/cmath/s_csin.c
newlib/libc/sys/linux/cmath/s_csinf.c
newlib/libc/sys/linux/cmath/s_csinh.c
newlib/libc/sys/linux/cmath/s_csinhf.c
newlib/libc/sys/linux/cmath/s_csinhl.c
newlib/libc/sys/linux/cmath/s_csinl.c
newlib/libc/sys/linux/cmath/s_csqrt.c
newlib/libc/sys/linux/cmath/s_csqrtf.c
newlib/libc/sys/linux/cmath/s_csqrtl.c
newlib/libc/sys/linux/cmath/s_ctan.c
newlib/libc/sys/linux/cmath/s_ctanf.c
newlib/libc/sys/linux/cmath/s_ctanh.c
newlib/libc/sys/linux/cmath/s_ctanhf.c
newlib/libc/sys/linux/cmath/s_ctanhl.c
newlib/libc/sys/linux/cmath/s_ctanl.c
newlib/libc/sys/linux/config.h
newlib/libc/sys/linux/confstr.c
newlib/libc/sys/linux/confstr.h
newlib/libc/sys/linux/crt1.c
newlib/libc/sys/linux/ctermid.c
newlib/libc/sys/linux/dl/Makefile.am
newlib/libc/sys/linux/dl/Makefile.in
newlib/libc/sys/linux/dl/abi-tag.h
newlib/libc/sys/linux/dl/atomicity.h
newlib/libc/sys/linux/dl/dl-addr.c
newlib/libc/sys/linux/dl/dl-cache.c
newlib/libc/sys/linux/dl/dl-cache.h
newlib/libc/sys/linux/dl/dl-close.c
newlib/libc/sys/linux/dl/dl-debug.c
newlib/libc/sys/linux/dl/dl-deps.c
newlib/libc/sys/linux/dl/dl-dst.h
newlib/libc/sys/linux/dl/dl-error.c
newlib/libc/sys/linux/dl/dl-fini.c
newlib/libc/sys/linux/dl/dl-init.c
newlib/libc/sys/linux/dl/dl-iteratephdr.c
newlib/libc/sys/linux/dl/dl-libc.c
newlib/libc/sys/linux/dl/dl-librecon.h
newlib/libc/sys/linux/dl/dl-load.c
newlib/libc/sys/linux/dl/dl-local.h
newlib/libc/sys/linux/dl/dl-lookup.c
newlib/libc/sys/linux/dl/dl-lookupcfg.h
newlib/libc/sys/linux/dl/dl-minimal.c
newlib/libc/sys/linux/dl/dl-misc.c
newlib/libc/sys/linux/dl/dl-object.c
newlib/libc/sys/linux/dl/dl-open.c
newlib/libc/sys/linux/dl/dl-osinfo.h
newlib/libc/sys/linux/dl/dl-profile.c
newlib/libc/sys/linux/dl/dl-profstub.c
newlib/libc/sys/linux/dl/dl-reloc.c
newlib/libc/sys/linux/dl/dl-runtime.c
newlib/libc/sys/linux/dl/dl-support.c
newlib/libc/sys/linux/dl/dl-sym.c
newlib/libc/sys/linux/dl/dl-version.c
newlib/libc/sys/linux/dl/do-lookup.h
newlib/libc/sys/linux/dl/do-rel.h
newlib/libc/sys/linux/dl/dynamic-link.h
newlib/libc/sys/linux/dl/kernel-features.h
newlib/libc/sys/linux/dl/ldsodefs.h
newlib/libc/sys/linux/dl/libintl.h
newlib/libc/sys/linux/dl/trusted-dirs.h
newlib/libc/sys/linux/dl/unsecvars.h
newlib/libc/sys/linux/fclean.c
newlib/libc/sys/linux/flockfile.c
newlib/libc/sys/linux/fpathconf.c
newlib/libc/sys/linux/free.c
newlib/libc/sys/linux/freer.c
newlib/libc/sys/linux/fstab.c
newlib/libc/sys/linux/fstatvfs.c
newlib/libc/sys/linux/fstatvfs64.c
newlib/libc/sys/linux/ftok.c
newlib/libc/sys/linux/ftw.c
newlib/libc/sys/linux/ftw64.c
newlib/libc/sys/linux/funlockfile.c
newlib/libc/sys/linux/getdate.c
newlib/libc/sys/linux/getdate_err.c
newlib/libc/sys/linux/gethostid.c
newlib/libc/sys/linux/gethostname.c
newlib/libc/sys/linux/getlogin.c
newlib/libc/sys/linux/getopt.c
newlib/libc/sys/linux/getopt1.c
newlib/libc/sys/linux/getpwent.c
newlib/libc/sys/linux/getreent.c
newlib/libc/sys/linux/getrlimit64.c
newlib/libc/sys/linux/getwd.c
newlib/libc/sys/linux/hp-timing.h
newlib/libc/sys/linux/iconv/Makefile.am
newlib/libc/sys/linux/iconv/Makefile.in
newlib/libc/sys/linux/iconv/categories.def
newlib/libc/sys/linux/iconv/dummy-repertoire.c
newlib/libc/sys/linux/iconv/gconv.c
newlib/libc/sys/linux/iconv/gconv_builtin.c
newlib/libc/sys/linux/iconv/gconv_builtin.h
newlib/libc/sys/linux/iconv/gconv_cache.c
newlib/libc/sys/linux/iconv/gconv_charset.h
newlib/libc/sys/linux/iconv/gconv_close.c
newlib/libc/sys/linux/iconv/gconv_conf.c
newlib/libc/sys/linux/iconv/gconv_db.c
newlib/libc/sys/linux/iconv/gconv_dl.c
newlib/libc/sys/linux/iconv/gconv_int.h
newlib/libc/sys/linux/iconv/gconv_open.c
newlib/libc/sys/linux/iconv/gconv_simple.c
newlib/libc/sys/linux/iconv/gconv_trans.c
newlib/libc/sys/linux/iconv/hash-string.h
newlib/libc/sys/linux/iconv/iconv.c
newlib/libc/sys/linux/iconv/iconv.h
newlib/libc/sys/linux/iconv/iconv_charmap.c
newlib/libc/sys/linux/iconv/iconv_close.c
newlib/libc/sys/linux/iconv/iconv_open.c
newlib/libc/sys/linux/iconv/iconvconfig.c
newlib/libc/sys/linux/iconv/iconvconfig.h
newlib/libc/sys/linux/iconv/loadinfo.h
newlib/libc/sys/linux/iconv/localeinfo.h
newlib/libc/sys/linux/iconv/loop.c
newlib/libc/sys/linux/iconv/skeleton.c
newlib/libc/sys/linux/iconv/strtab.c
newlib/libc/sys/linux/include/argp.h
newlib/libc/sys/linux/include/arpa/ftp.h
newlib/libc/sys/linux/include/arpa/inet.h
newlib/libc/sys/linux/include/arpa/nameser.h
newlib/libc/sys/linux/include/arpa/nameser_compat.h
newlib/libc/sys/linux/include/arpa/telnet.h
newlib/libc/sys/linux/include/arpa/tftp.h
newlib/libc/sys/linux/include/bp-sym.h
newlib/libc/sys/linux/include/cmathcalls.h
newlib/libc/sys/linux/include/complex.h
newlib/libc/sys/linux/include/dl-hash.h
newlib/libc/sys/linux/include/dlfcn.h
newlib/libc/sys/linux/include/fnmatch.h
newlib/libc/sys/linux/include/gconv.h
newlib/libc/sys/linux/include/glob.h
newlib/libc/sys/linux/include/hesiod.h
newlib/libc/sys/linux/include/iconv.h
newlib/libc/sys/linux/include/ifaddrs.h
newlib/libc/sys/linux/include/libc_private.h
newlib/libc/sys/linux/include/limits.h
newlib/libc/sys/linux/include/link.h
newlib/libc/sys/linux/include/ltdl.h
newlib/libc/sys/linux/include/malloc.h
newlib/libc/sys/linux/include/mcheck.h
newlib/libc/sys/linux/include/mqueue.h
newlib/libc/sys/linux/include/namespace.h
newlib/libc/sys/linux/include/net/bpf.h
newlib/libc/sys/linux/include/net/bpf_compat.h
newlib/libc/sys/linux/include/net/bpfdesc.h
newlib/libc/sys/linux/include/net/bridge.h
newlib/libc/sys/linux/include/net/ethernet.h
newlib/libc/sys/linux/include/net/fddi.h
newlib/libc/sys/linux/include/net/if.h
newlib/libc/sys/linux/include/net/if_arc.h
newlib/libc/sys/linux/include/net/if_arp.h
newlib/libc/sys/linux/include/net/if_atm.h
newlib/libc/sys/linux/include/net/if_dl.h
newlib/libc/sys/linux/include/net/if_gif.h
newlib/libc/sys/linux/include/net/if_ieee80211.h
newlib/libc/sys/linux/include/net/if_llc.h
newlib/libc/sys/linux/include/net/if_media.h
newlib/libc/sys/linux/include/net/if_mib.h
newlib/libc/sys/linux/include/net/if_ppp.h
newlib/libc/sys/linux/include/net/if_pppvar.h
newlib/libc/sys/linux/include/net/if_slvar.h
newlib/libc/sys/linux/include/net/if_sppp.h
newlib/libc/sys/linux/include/net/if_stf.h
newlib/libc/sys/linux/include/net/if_tap.h
newlib/libc/sys/linux/include/net/if_tapvar.h
newlib/libc/sys/linux/include/net/if_tun.h
newlib/libc/sys/linux/include/net/if_tunvar.h
newlib/libc/sys/linux/include/net/if_types.h
newlib/libc/sys/linux/include/net/if_var.h
newlib/libc/sys/linux/include/net/if_vlan_var.h
newlib/libc/sys/linux/include/net/intrq.h
newlib/libc/sys/linux/include/net/iso88025.h
newlib/libc/sys/linux/include/net/net_osdep.h
newlib/libc/sys/linux/include/net/netisr.h
newlib/libc/sys/linux/include/net/pfil.h
newlib/libc/sys/linux/include/net/pfkeyv2.h
newlib/libc/sys/linux/include/net/ppp_comp.h
newlib/libc/sys/linux/include/net/ppp_defs.h
newlib/libc/sys/linux/include/net/radix.h
newlib/libc/sys/linux/include/net/raw_cb.h
newlib/libc/sys/linux/include/net/route.h
newlib/libc/sys/linux/include/net/slcompress.h
newlib/libc/sys/linux/include/net/slip.h
newlib/libc/sys/linux/include/net/zlib.h
newlib/libc/sys/linux/include/netconfig.h
newlib/libc/sys/linux/include/netdb.h
newlib/libc/sys/linux/include/netinet/icmp6.h
newlib/libc/sys/linux/include/netinet/icmp_var.h
newlib/libc/sys/linux/include/netinet/if_atm.h
newlib/libc/sys/linux/include/netinet/if_ether.h
newlib/libc/sys/linux/include/netinet/igmp.h
newlib/libc/sys/linux/include/netinet/igmp_var.h
newlib/libc/sys/linux/include/netinet/in.h
newlib/libc/sys/linux/include/netinet/in_gif.h
newlib/libc/sys/linux/include/netinet/in_pcb.h
newlib/libc/sys/linux/include/netinet/in_systm.h
newlib/libc/sys/linux/include/netinet/in_var.h
newlib/libc/sys/linux/include/netinet/ip.h
newlib/libc/sys/linux/include/netinet/ip6.h
newlib/libc/sys/linux/include/netinet/ip_dummynet.h
newlib/libc/sys/linux/include/netinet/ip_ecn.h
newlib/libc/sys/linux/include/netinet/ip_encap.h
newlib/libc/sys/linux/include/netinet/ip_flow.h
newlib/libc/sys/linux/include/netinet/ip_fw.h
newlib/libc/sys/linux/include/netinet/ip_icmp.h
newlib/libc/sys/linux/include/netinet/ip_mroute.h
newlib/libc/sys/linux/include/netinet/ip_var.h
newlib/libc/sys/linux/include/netinet/ipprotosw.h
newlib/libc/sys/linux/include/netinet/tcp.h
newlib/libc/sys/linux/include/netinet/tcp_debug.h
newlib/libc/sys/linux/include/netinet/tcp_fsm.h
newlib/libc/sys/linux/include/netinet/tcp_seq.h
newlib/libc/sys/linux/include/netinet/tcp_timer.h
newlib/libc/sys/linux/include/netinet/tcp_var.h
newlib/libc/sys/linux/include/netinet/tcpip.h
newlib/libc/sys/linux/include/netinet/udp.h
newlib/libc/sys/linux/include/netinet/udp_var.h
newlib/libc/sys/linux/include/netinet6/ah.h
newlib/libc/sys/linux/include/netinet6/ah6.h
newlib/libc/sys/linux/include/netinet6/esp.h
newlib/libc/sys/linux/include/netinet6/esp6.h
newlib/libc/sys/linux/include/netinet6/esp_rijndael.h
newlib/libc/sys/linux/include/netinet6/icmp6.h
newlib/libc/sys/linux/include/netinet6/in6.h
newlib/libc/sys/linux/include/netinet6/in6_gif.h
newlib/libc/sys/linux/include/netinet6/in6_ifattach.h
newlib/libc/sys/linux/include/netinet6/in6_pcb.h
newlib/libc/sys/linux/include/netinet6/in6_prefix.h
newlib/libc/sys/linux/include/netinet6/in6_var.h
newlib/libc/sys/linux/include/netinet6/ip6.h
newlib/libc/sys/linux/include/netinet6/ip6_ecn.h
newlib/libc/sys/linux/include/netinet6/ip6_fw.h
newlib/libc/sys/linux/include/netinet6/ip6_mroute.h
newlib/libc/sys/linux/include/netinet6/ip6_var.h
newlib/libc/sys/linux/include/netinet6/ip6protosw.h
newlib/libc/sys/linux/include/netinet6/ipcomp.h
newlib/libc/sys/linux/include/netinet6/ipcomp6.h
newlib/libc/sys/linux/include/netinet6/ipsec.h
newlib/libc/sys/linux/include/netinet6/ipsec6.h
newlib/libc/sys/linux/include/netinet6/mld6_var.h
newlib/libc/sys/linux/include/netinet6/nd6.h
newlib/libc/sys/linux/include/netinet6/pim6.h
newlib/libc/sys/linux/include/netinet6/pim6_var.h
newlib/libc/sys/linux/include/netinet6/raw_ip6.h
newlib/libc/sys/linux/include/netinet6/scope6_var.h
newlib/libc/sys/linux/include/netinet6/tcp6_var.h
newlib/libc/sys/linux/include/netinet6/udp6_var.h
newlib/libc/sys/linux/include/netns/idp.h
newlib/libc/sys/linux/include/netns/idp_var.h
newlib/libc/sys/linux/include/netns/ns.h
newlib/libc/sys/linux/include/netns/ns_error.h
newlib/libc/sys/linux/include/netns/ns_if.h
newlib/libc/sys/linux/include/netns/ns_pcb.h
newlib/libc/sys/linux/include/netns/sp.h
newlib/libc/sys/linux/include/netns/spidp.h
newlib/libc/sys/linux/include/netns/spp_debug.h
newlib/libc/sys/linux/include/netns/spp_timer.h
newlib/libc/sys/linux/include/netns/spp_var.h
newlib/libc/sys/linux/include/nsswitch.h
newlib/libc/sys/linux/include/paths.h
newlib/libc/sys/linux/include/pthread.h
newlib/libc/sys/linux/include/regex.h
newlib/libc/sys/linux/include/resolv.h
newlib/libc/sys/linux/include/rpc/Makefile
newlib/libc/sys/linux/include/rpc/auth.h
newlib/libc/sys/linux/include/rpc/auth_des.h
newlib/libc/sys/linux/include/rpc/auth_kerb.h
newlib/libc/sys/linux/include/rpc/auth_unix.h
newlib/libc/sys/linux/include/rpc/clnt.h
newlib/libc/sys/linux/include/rpc/clnt_soc.h
newlib/libc/sys/linux/include/rpc/clnt_stat.h
newlib/libc/sys/linux/include/rpc/des.h
newlib/libc/sys/linux/include/rpc/des_crypt.h
newlib/libc/sys/linux/include/rpc/nettype.h
newlib/libc/sys/linux/include/rpc/pmap_clnt.h
newlib/libc/sys/linux/include/rpc/pmap_prot.h
newlib/libc/sys/linux/include/rpc/pmap_rmt.h
newlib/libc/sys/linux/include/rpc/raw.h
newlib/libc/sys/linux/include/rpc/rpc.h
newlib/libc/sys/linux/include/rpc/rpc_com.h
newlib/libc/sys/linux/include/rpc/rpc_msg.h
newlib/libc/sys/linux/include/rpc/rpcb_clnt.h
newlib/libc/sys/linux/include/rpc/rpcb_prot.h
newlib/libc/sys/linux/include/rpc/rpcb_prot.x
newlib/libc/sys/linux/include/rpc/rpcent.h
newlib/libc/sys/linux/include/rpc/svc.h
newlib/libc/sys/linux/include/rpc/svc_auth.h
newlib/libc/sys/linux/include/rpc/svc_dg.h
newlib/libc/sys/linux/include/rpc/svc_soc.h
newlib/libc/sys/linux/include/rpc/types.h
newlib/libc/sys/linux/include/rpc/xdr.h
newlib/libc/sys/linux/include/rune.h
newlib/libc/sys/linux/include/runetype.h
newlib/libc/sys/linux/include/semaphore.h
newlib/libc/sys/linux/include/setjmp.h
newlib/libc/sys/linux/include/setlocale.h
newlib/libc/sys/linux/include/time.h
newlib/libc/sys/linux/include/un-namespace.h
newlib/libc/sys/linux/include/wordexp.h
newlib/libc/sys/linux/internal_statvfs.c
newlib/libc/sys/linux/intl/Makefile.am
newlib/libc/sys/linux/intl/Makefile.in
newlib/libc/sys/linux/intl/bindtextdom.c
newlib/libc/sys/linux/intl/catgets.c
newlib/libc/sys/linux/intl/catgetsinfo.h
newlib/libc/sys/linux/intl/config.h
newlib/libc/sys/linux/intl/dcgettext.c
newlib/libc/sys/linux/intl/dcigettext.c
newlib/libc/sys/linux/intl/dcngettext.c
newlib/libc/sys/linux/intl/dgettext.c
newlib/libc/sys/linux/intl/dngettext.c
newlib/libc/sys/linux/intl/explodename.c
newlib/libc/sys/linux/intl/finddomain.c
newlib/libc/sys/linux/intl/gettext.c
newlib/libc/sys/linux/intl/gettext.h
newlib/libc/sys/linux/intl/gettextP.h
newlib/libc/sys/linux/intl/hash-string.h
newlib/libc/sys/linux/intl/l10nflist.c
newlib/libc/sys/linux/intl/loadinfo.h
newlib/libc/sys/linux/intl/loadmsgcat.c
newlib/libc/sys/linux/intl/locale.alias
newlib/libc/sys/linux/intl/localealias.c
newlib/libc/sys/linux/intl/ngettext.c
newlib/libc/sys/linux/intl/open_catalog.c
newlib/libc/sys/linux/intl/plural.c
newlib/libc/sys/linux/intl/plural.y
newlib/libc/sys/linux/intl/stpcpy.c
newlib/libc/sys/linux/intl/textdomain.c
newlib/libc/sys/linux/io64.c
newlib/libc/sys/linux/ipc.c
newlib/libc/sys/linux/kernel_sigaction.h
newlib/libc/sys/linux/libc-internal.h
newlib/libc/sys/linux/libc-symbols.h
newlib/libc/sys/linux/libc-tsd.h
newlib/libc/sys/linux/libintl.h
newlib/libc/sys/linux/linux_fsinfo.h
newlib/libc/sys/linux/linuxthreads/LICENSE
newlib/libc/sys/linux/linuxthreads/Makefile.am
newlib/libc/sys/linux/linuxthreads/Makefile.in
newlib/libc/sys/linux/linuxthreads/aclocal.m4
newlib/libc/sys/linux/linuxthreads/attr.c
newlib/libc/sys/linux/linuxthreads/barrier.c
newlib/libc/sys/linux/linuxthreads/bits/initspin.h
newlib/libc/sys/linux/linuxthreads/bits/libc-lock.h
newlib/libc/sys/linux/linuxthreads/bits/libc-tsd.h
newlib/libc/sys/linux/linuxthreads/bits/local_lim.h
newlib/libc/sys/linux/linuxthreads/bits/posix_opt.h
newlib/libc/sys/linux/linuxthreads/bits/pthreadtypes.h
newlib/libc/sys/linux/linuxthreads/bits/sigthread.h
newlib/libc/sys/linux/linuxthreads/bp-sym.h
newlib/libc/sys/linux/linuxthreads/cancel.c
newlib/libc/sys/linux/linuxthreads/condvar.c
newlib/libc/sys/linux/linuxthreads/config.h
newlib/libc/sys/linux/linuxthreads/configure
newlib/libc/sys/linux/linuxthreads/configure.in
newlib/libc/sys/linux/linuxthreads/defs.awk
newlib/libc/sys/linux/linuxthreads/ecmutex.c
newlib/libc/sys/linux/linuxthreads/events.c
newlib/libc/sys/linux/linuxthreads/getcpuclockid.c
newlib/libc/sys/linux/linuxthreads/getreent.c
newlib/libc/sys/linux/linuxthreads/internals.h
newlib/libc/sys/linux/linuxthreads/join.c
newlib/libc/sys/linux/linuxthreads/joinrace.c
newlib/libc/sys/linux/linuxthreads/kernel-features.h
newlib/libc/sys/linux/linuxthreads/libc-internal.h
newlib/libc/sys/linux/linuxthreads/libc-symbols.h
newlib/libc/sys/linux/linuxthreads/linuxthreads.texi
newlib/libc/sys/linux/linuxthreads/lockfile.c
newlib/libc/sys/linux/linuxthreads/machine/Makefile.am
newlib/libc/sys/linux/linuxthreads/machine/Makefile.in
newlib/libc/sys/linux/linuxthreads/machine/aclocal.m4
newlib/libc/sys/linux/linuxthreads/machine/configure
newlib/libc/sys/linux/linuxthreads/machine/configure.in
newlib/libc/sys/linux/linuxthreads/machine/generic/generic-sysdep.h
newlib/libc/sys/linux/linuxthreads/machine/i386/Makefile.am
newlib/libc/sys/linux/linuxthreads/machine/i386/Makefile.in
newlib/libc/sys/linux/linuxthreads/machine/i386/aclocal.m4
newlib/libc/sys/linux/linuxthreads/machine/i386/bp-asm.h
newlib/libc/sys/linux/linuxthreads/machine/i386/clone.S
newlib/libc/sys/linux/linuxthreads/machine/i386/configure
newlib/libc/sys/linux/linuxthreads/machine/i386/configure.in
newlib/libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.S
newlib/libc/sys/linux/linuxthreads/machine/i386/i386-sysdep.h
newlib/libc/sys/linux/linuxthreads/machine/i386/pspinlock.c
newlib/libc/sys/linux/linuxthreads/machine/i386/pt-machine.h
newlib/libc/sys/linux/linuxthreads/machine/i386/sigcontextinfo.h
newlib/libc/sys/linux/linuxthreads/machine/i386/stackinfo.h
newlib/libc/sys/linux/linuxthreads/machine/i386/sysdep.S
newlib/libc/sys/linux/linuxthreads/machine/i386/sysdep.h
newlib/libc/sys/linux/linuxthreads/machine/i386/useldt.h
newlib/libc/sys/linux/linuxthreads/manager.c
newlib/libc/sys/linux/linuxthreads/mq_notify.c
newlib/libc/sys/linux/linuxthreads/mutex.c
newlib/libc/sys/linux/linuxthreads/no-tsd.c
newlib/libc/sys/linux/linuxthreads/oldsemaphore.c
newlib/libc/sys/linux/linuxthreads/posix-timer.h
newlib/libc/sys/linux/linuxthreads/prio.c
newlib/libc/sys/linux/linuxthreads/proc_service.h
newlib/libc/sys/linux/linuxthreads/pt-machine.c
newlib/libc/sys/linux/linuxthreads/ptclock_gettime.c
newlib/libc/sys/linux/linuxthreads/ptclock_settime.c
newlib/libc/sys/linux/linuxthreads/ptfork.c
newlib/libc/sys/linux/linuxthreads/pthread.c
newlib/libc/sys/linux/linuxthreads/ptlongjmp.c
newlib/libc/sys/linux/linuxthreads/queue.h
newlib/libc/sys/linux/linuxthreads/reent.c
newlib/libc/sys/linux/linuxthreads/reqsyscalls.c
newlib/libc/sys/linux/linuxthreads/restart.h
newlib/libc/sys/linux/linuxthreads/rwlock.c
newlib/libc/sys/linux/linuxthreads/semaphore.c
newlib/libc/sys/linux/linuxthreads/semaphore.h
newlib/libc/sys/linux/linuxthreads/shlib-compat.h
newlib/libc/sys/linux/linuxthreads/signals.c
newlib/libc/sys/linux/linuxthreads/specific.c
newlib/libc/sys/linux/linuxthreads/spinlock.c
newlib/libc/sys/linux/linuxthreads/spinlock.h
newlib/libc/sys/linux/linuxthreads/sysctl.c
newlib/libc/sys/linux/linuxthreads/td_init.c
newlib/libc/sys/linux/linuxthreads/td_log.c
newlib/libc/sys/linux/linuxthreads/td_symbol_list.c
newlib/libc/sys/linux/linuxthreads/td_ta_clear_event.c
newlib/libc/sys/linux/linuxthreads/td_ta_delete.c
newlib/libc/sys/linux/linuxthreads/td_ta_enable_stats.c
newlib/libc/sys/linux/linuxthreads/td_ta_event_addr.c
newlib/libc/sys/linux/linuxthreads/td_ta_event_getmsg.c
newlib/libc/sys/linux/linuxthreads/td_ta_get_nthreads.c
newlib/libc/sys/linux/linuxthreads/td_ta_get_ph.c
newlib/libc/sys/linux/linuxthreads/td_ta_get_stats.c
newlib/libc/sys/linux/linuxthreads/td_ta_map_id2thr.c
newlib/libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c
newlib/libc/sys/linux/linuxthreads/td_ta_new.c
newlib/libc/sys/linux/linuxthreads/td_ta_reset_stats.c
newlib/libc/sys/linux/linuxthreads/td_ta_set_event.c
newlib/libc/sys/linux/linuxthreads/td_ta_setconcurrency.c
newlib/libc/sys/linux/linuxthreads/td_ta_thr_iter.c
newlib/libc/sys/linux/linuxthreads/td_ta_tsd_iter.c
newlib/libc/sys/linux/linuxthreads/td_thr_clear_event.c
newlib/libc/sys/linux/linuxthreads/td_thr_dbresume.c
newlib/libc/sys/linux/linuxthreads/td_thr_dbsuspend.c
newlib/libc/sys/linux/linuxthreads/td_thr_event_enable.c
newlib/libc/sys/linux/linuxthreads/td_thr_event_getmsg.c
newlib/libc/sys/linux/linuxthreads/td_thr_get_info.c
newlib/libc/sys/linux/linuxthreads/td_thr_getfpregs.c
newlib/libc/sys/linux/linuxthreads/td_thr_getgregs.c
newlib/libc/sys/linux/linuxthreads/td_thr_getxregs.c
newlib/libc/sys/linux/linuxthreads/td_thr_getxregsize.c
newlib/libc/sys/linux/linuxthreads/td_thr_set_event.c
newlib/libc/sys/linux/linuxthreads/td_thr_setfpregs.c
newlib/libc/sys/linux/linuxthreads/td_thr_setgregs.c
newlib/libc/sys/linux/linuxthreads/td_thr_setprio.c
newlib/libc/sys/linux/linuxthreads/td_thr_setsigpending.c
newlib/libc/sys/linux/linuxthreads/td_thr_setxregs.c
newlib/libc/sys/linux/linuxthreads/td_thr_sigsetmask.c
newlib/libc/sys/linux/linuxthreads/td_thr_tsd.c
newlib/libc/sys/linux/linuxthreads/td_thr_validate.c
newlib/libc/sys/linux/linuxthreads/testrtsig.h
newlib/libc/sys/linux/linuxthreads/thread_db.h
newlib/libc/sys/linux/linuxthreads/thread_dbP.h
newlib/libc/sys/linux/linuxthreads/timer_create.c
newlib/libc/sys/linux/linuxthreads/timer_delete.c
newlib/libc/sys/linux/linuxthreads/timer_getoverr.c
newlib/libc/sys/linux/linuxthreads/timer_gettime.c
newlib/libc/sys/linux/linuxthreads/timer_routines.c
newlib/libc/sys/linux/linuxthreads/timer_settime.c
newlib/libc/sys/linux/linuxthreads/tst-cancel.c
newlib/libc/sys/linux/linuxthreads/tst-context.c
newlib/libc/sys/linux/linuxthreads/tststack.c
newlib/libc/sys/linux/linuxthreads/unload.c
newlib/libc/sys/linux/linuxthreads/weaks.c
newlib/libc/sys/linux/linuxthreads/wrapsyscall.c
newlib/libc/sys/linux/machine/Makefile.am
newlib/libc/sys/linux/machine/Makefile.in
newlib/libc/sys/linux/machine/aclocal.m4
newlib/libc/sys/linux/machine/configure
newlib/libc/sys/linux/machine/configure.in
newlib/libc/sys/linux/machine/hp-timing.h
newlib/libc/sys/linux/machine/i386/Makefile.am
newlib/libc/sys/linux/machine/i386/Makefile.in
newlib/libc/sys/linux/machine/i386/aclocal.m4
newlib/libc/sys/linux/machine/i386/configure
newlib/libc/sys/linux/machine/i386/configure.in
newlib/libc/sys/linux/machine/i386/crt0.c
newlib/libc/sys/linux/machine/i386/dl-machine.h
newlib/libc/sys/linux/machine/i386/dl-procinfo.c
newlib/libc/sys/linux/machine/i386/dl-procinfo.h
newlib/libc/sys/linux/machine/i386/get_clockfreq.c
newlib/libc/sys/linux/machine/i386/getpagesize.c
newlib/libc/sys/linux/machine/i386/hp-timing.c
newlib/libc/sys/linux/machine/i386/hp-timing.h
newlib/libc/sys/linux/machine/i386/huge_val.h
newlib/libc/sys/linux/machine/i386/i386mach.h
newlib/libc/sys/linux/machine/i386/include/endian.h
newlib/libc/sys/linux/machine/i386/include/param.h
newlib/libc/sys/linux/machine/i386/include/setjmp.h
newlib/libc/sys/linux/machine/i386/include/termios.h
newlib/libc/sys/linux/machine/i386/setjmp.S
newlib/libc/sys/linux/machine/i386/sigaction.c
newlib/libc/sys/linux/machine/i386/sigstack.h
newlib/libc/sys/linux/machine/i386/socketcall.h
newlib/libc/sys/linux/machine/i386/syscall.h
newlib/libc/sys/linux/machine/i386/sysdep.h
newlib/libc/sys/linux/machine/i386/weakalias.h
newlib/libc/sys/linux/malign.c
newlib/libc/sys/linux/malignr.c
newlib/libc/sys/linux/mallinfor.c
newlib/libc/sys/linux/malloc.c
newlib/libc/sys/linux/mallocr.c
newlib/libc/sys/linux/malloptr.c
newlib/libc/sys/linux/mallstatsr.c
newlib/libc/sys/linux/mcheck.c
newlib/libc/sys/linux/mhooks.h
newlib/libc/sys/linux/mmap.c
newlib/libc/sys/linux/mntent.c
newlib/libc/sys/linux/mntent_r.c
newlib/libc/sys/linux/mq_close.c
newlib/libc/sys/linux/mq_getattr.c
newlib/libc/sys/linux/mq_notify.c
newlib/libc/sys/linux/mq_open.c
newlib/libc/sys/linux/mq_receive.c
newlib/libc/sys/linux/mq_send.c
newlib/libc/sys/linux/mq_setattr.c
newlib/libc/sys/linux/mq_unlink.c
newlib/libc/sys/linux/mqlocal.h
newlib/libc/sys/linux/msize.c
newlib/libc/sys/linux/msizer.c
newlib/libc/sys/linux/mstats.c
newlib/libc/sys/linux/mtrim.c
newlib/libc/sys/linux/mtrimr.c
newlib/libc/sys/linux/net/Makefile.am
newlib/libc/sys/linux/net/Makefile.in
newlib/libc/sys/linux/net/addr2ascii.3
newlib/libc/sys/linux/net/addr2ascii.c
newlib/libc/sys/linux/net/ascii2addr.c
newlib/libc/sys/linux/net/base64.c
newlib/libc/sys/linux/net/bindresvport.c
newlib/libc/sys/linux/net/byteorder.3
newlib/libc/sys/linux/net/ether_addr.c
newlib/libc/sys/linux/net/ethers.3
newlib/libc/sys/linux/net/getaddrinfo.3
newlib/libc/sys/linux/net/getaddrinfo.c
newlib/libc/sys/linux/net/gethostbydns.c
newlib/libc/sys/linux/net/gethostbyht.c
newlib/libc/sys/linux/net/gethostbyname.3
newlib/libc/sys/linux/net/gethostbynis.c
newlib/libc/sys/linux/net/gethostnamadr.c
newlib/libc/sys/linux/net/getifaddrs.3
newlib/libc/sys/linux/net/getifaddrs.c
newlib/libc/sys/linux/net/getipnodebyname.3
newlib/libc/sys/linux/net/getnameinfo.3
newlib/libc/sys/linux/net/getnameinfo.c
newlib/libc/sys/linux/net/getnetbydns.c
newlib/libc/sys/linux/net/getnetbyht.c
newlib/libc/sys/linux/net/getnetbynis.c
newlib/libc/sys/linux/net/getnetent.3
newlib/libc/sys/linux/net/getnetnamadr.c
newlib/libc/sys/linux/net/getproto.c
newlib/libc/sys/linux/net/getprotoent.3
newlib/libc/sys/linux/net/getprotoent.c
newlib/libc/sys/linux/net/getprotoname.c
newlib/libc/sys/linux/net/getservbyname.c
newlib/libc/sys/linux/net/getservbyport.c
newlib/libc/sys/linux/net/getservent.3
newlib/libc/sys/linux/net/getservent.c
newlib/libc/sys/linux/net/herror.c
newlib/libc/sys/linux/net/hesiod.3
newlib/libc/sys/linux/net/hesiod.c
newlib/libc/sys/linux/net/if_indextoname.3
newlib/libc/sys/linux/net/ifname.c
newlib/libc/sys/linux/net/inet.3
newlib/libc/sys/linux/net/inet6_option_space.3
newlib/libc/sys/linux/net/inet6_rthdr_space.3
newlib/libc/sys/linux/net/inet_addr.c
newlib/libc/sys/linux/net/inet_lnaof.c
newlib/libc/sys/linux/net/inet_makeaddr.c
newlib/libc/sys/linux/net/inet_net.3
newlib/libc/sys/linux/net/inet_net_ntop.c
newlib/libc/sys/linux/net/inet_net_pton.c
newlib/libc/sys/linux/net/inet_neta.c
newlib/libc/sys/linux/net/inet_netof.c
newlib/libc/sys/linux/net/inet_network.c
newlib/libc/sys/linux/net/inet_ntoa.c
newlib/libc/sys/linux/net/inet_ntop.c
newlib/libc/sys/linux/net/inet_pton.c
newlib/libc/sys/linux/net/innetgr-stub.c
newlib/libc/sys/linux/net/ip6opt.c
newlib/libc/sys/linux/net/iso_addr.3
newlib/libc/sys/linux/net/iso_addr.c
newlib/libc/sys/linux/net/issetugid-stub.c
newlib/libc/sys/linux/net/linkaddr.3
newlib/libc/sys/linux/net/linkaddr.c
newlib/libc/sys/linux/net/map_v4v6.c
newlib/libc/sys/linux/net/name6.c
newlib/libc/sys/linux/net/namespace.h
newlib/libc/sys/linux/net/ns.3
newlib/libc/sys/linux/net/ns_addr.c
newlib/libc/sys/linux/net/ns_name.c
newlib/libc/sys/linux/net/ns_netint.c
newlib/libc/sys/linux/net/ns_ntoa.c
newlib/libc/sys/linux/net/ns_parse.c
newlib/libc/sys/linux/net/ns_print.c
newlib/libc/sys/linux/net/ns_ttl.c
newlib/libc/sys/linux/net/nsap_addr.c
newlib/libc/sys/linux/net/nsdispatch.3
newlib/libc/sys/linux/net/nsdispatch.c
newlib/libc/sys/linux/net/nslexer.c
newlib/libc/sys/linux/net/nslexer.l
newlib/libc/sys/linux/net/nsparser.c
newlib/libc/sys/linux/net/nsparser.h
newlib/libc/sys/linux/net/nsparser.y
newlib/libc/sys/linux/net/rcmd.3
newlib/libc/sys/linux/net/rcmd.c
newlib/libc/sys/linux/net/rcmdsh.3
newlib/libc/sys/linux/net/rcmdsh.c
newlib/libc/sys/linux/net/recv.c
newlib/libc/sys/linux/net/res_comp.c
newlib/libc/sys/linux/net/res_config.h
newlib/libc/sys/linux/net/res_data.c
newlib/libc/sys/linux/net/res_debug.c
newlib/libc/sys/linux/net/res_init.c
newlib/libc/sys/linux/net/res_mkquery.c
newlib/libc/sys/linux/net/res_mkupdate.c
newlib/libc/sys/linux/net/res_query.c
newlib/libc/sys/linux/net/res_send.c
newlib/libc/sys/linux/net/res_update.c
newlib/libc/sys/linux/net/resolver.3
newlib/libc/sys/linux/net/rthdr.c
newlib/libc/sys/linux/net/send.c
newlib/libc/sys/linux/net/un-namespace.h
newlib/libc/sys/linux/net/vars.c
newlib/libc/sys/linux/ntp_gettime.c
newlib/libc/sys/linux/pathconf.c
newlib/libc/sys/linux/pread.c
newlib/libc/sys/linux/pread64.c
newlib/libc/sys/linux/prof-freq.c
newlib/libc/sys/linux/profile.c
newlib/libc/sys/linux/psignal.c
newlib/libc/sys/linux/pvallocr.c
newlib/libc/sys/linux/pwrite.c
newlib/libc/sys/linux/pwrite64.c
newlib/libc/sys/linux/raise.c
newlib/libc/sys/linux/readdir64.c
newlib/libc/sys/linux/realloc.c
newlib/libc/sys/linux/reallocr.c
newlib/libc/sys/linux/rename.c
newlib/libc/sys/linux/resource.c
newlib/libc/sys/linux/scandir64.c
newlib/libc/sys/linux/sched.c
newlib/libc/sys/linux/seteuid.c
newlib/libc/sys/linux/sethostid.c
newlib/libc/sys/linux/sethostname.c
newlib/libc/sys/linux/setrlimit64.c
newlib/libc/sys/linux/shm_open.c
newlib/libc/sys/linux/shm_unlink.c
newlib/libc/sys/linux/sig.c
newlib/libc/sys/linux/sigaction.c
newlib/libc/sys/linux/siglongjmp.c
newlib/libc/sys/linux/sigqueue.c
newlib/libc/sys/linux/sigset.c
newlib/libc/sys/linux/sigwait.c
newlib/libc/sys/linux/sleep.c
newlib/libc/sys/linux/socket.c
newlib/libc/sys/linux/sockops.h
newlib/libc/sys/linux/stack.c
newlib/libc/sys/linux/statvfs.c
newlib/libc/sys/linux/statvfs64.c
newlib/libc/sys/linux/stdlib/COPYRIGHT
newlib/libc/sys/linux/stdlib/Makefile.am
newlib/libc/sys/linux/stdlib/Makefile.in
newlib/libc/sys/linux/stdlib/cclass.h
newlib/libc/sys/linux/stdlib/cname.h
newlib/libc/sys/linux/stdlib/collate.c
newlib/libc/sys/linux/stdlib/collate.h
newlib/libc/sys/linux/stdlib/collcmp.c
newlib/libc/sys/linux/stdlib/engine.c
newlib/libc/sys/linux/stdlib/fnmatch.3
newlib/libc/sys/linux/stdlib/fnmatch.c
newlib/libc/sys/linux/stdlib/glob.3
newlib/libc/sys/linux/stdlib/glob.c
newlib/libc/sys/linux/stdlib/reallocf.c
newlib/libc/sys/linux/stdlib/regcomp.c
newlib/libc/sys/linux/stdlib/regerror.c
newlib/libc/sys/linux/stdlib/regex.3
newlib/libc/sys/linux/stdlib/regex2.h
newlib/libc/sys/linux/stdlib/regexec.c
newlib/libc/sys/linux/stdlib/regfree.c
newlib/libc/sys/linux/stdlib/utils.h
newlib/libc/sys/linux/stdlib/wordexp.c
newlib/libc/sys/linux/stdlib/wordfree.c
newlib/libc/sys/linux/strsignal.c
newlib/libc/sys/linux/strverscmp.c
newlib/libc/sys/linux/sys/_types.h
newlib/libc/sys/linux/sys/dlfcn.h
newlib/libc/sys/linux/sys/elfclass.h
newlib/libc/sys/linux/sys/event.h
newlib/libc/sys/linux/sys/features.h
newlib/libc/sys/linux/sys/ioccom.h
newlib/libc/sys/linux/sys/libc-tsd.h
newlib/libc/sys/linux/sys/link.h
newlib/libc/sys/linux/sys/linux_time.h
newlib/libc/sys/linux/sys/lock.h
newlib/libc/sys/linux/sys/param.h
newlib/libc/sys/linux/sys/select.h
newlib/libc/sys/linux/sys/socket.h
newlib/libc/sys/linux/sys/sockio.h
newlib/libc/sys/linux/sys/stdio.h
newlib/libc/sys/linux/sys/string.h
newlib/libc/sys/linux/sys/unistd.h
newlib/libc/sys/linux/sys/utime.h
newlib/libc/sys/linux/sysconf.c
newlib/libc/sys/linux/sysctl.c
newlib/libc/sys/linux/system.c
newlib/libc/sys/linux/tcdrain.c
newlib/libc/sys/linux/tcsendbrk.c
newlib/libc/sys/linux/thread-m.h
newlib/libc/sys/linux/ttyname_r.c
newlib/libc/sys/linux/usleep.c
newlib/libc/sys/linux/utimes.c
newlib/libc/sys/linux/vallocr.c
newlib/libc/sys/linux/versionsort.c
newlib/libc/sys/linux/versionsort64.c
newlib/libc/sys/mmixware/link.c
newlib/libc/sys/rdos/Makefile.am
newlib/libc/sys/rdos/Makefile.in
newlib/libc/sys/rdos/aclocal.m4
newlib/libc/sys/rdos/chown.c
newlib/libc/sys/rdos/close.c
newlib/libc/sys/rdos/config.h
newlib/libc/sys/rdos/configure
newlib/libc/sys/rdos/configure.in
newlib/libc/sys/rdos/crt0.S
newlib/libc/sys/rdos/execve.c
newlib/libc/sys/rdos/fork.c
newlib/libc/sys/rdos/fstat.c
newlib/libc/sys/rdos/getenv.c
newlib/libc/sys/rdos/getpid.c
newlib/libc/sys/rdos/gettod.c
newlib/libc/sys/rdos/isatty.c
newlib/libc/sys/rdos/kill.c
newlib/libc/sys/rdos/link.c
newlib/libc/sys/rdos/lseek.c
newlib/libc/sys/rdos/open.c
newlib/libc/sys/rdos/rdos.S
newlib/libc/sys/rdos/rdos.h
newlib/libc/sys/rdos/rdoshelp.c
newlib/libc/sys/rdos/read.c
newlib/libc/sys/rdos/readlink.c
newlib/libc/sys/rdos/sbrk.c
newlib/libc/sys/rdos/stat.c
newlib/libc/sys/rdos/symlink.c
newlib/libc/sys/rdos/times.c
newlib/libc/sys/rdos/unlink.c
newlib/libc/sys/rdos/user.def
newlib/libc/sys/rdos/wait.c
newlib/libc/sys/rdos/write.c
newlib/libc/sys/rtems/machine/limits.h
newlib/libc/sys/rtems/machine/param.h
newlib/libc/sys/rtems/sys/param.h
newlib/libc/sys/rtems/sys/queue.h
newlib/libc/sys/rtems/sys/syslimits.h
newlib/libc/sys/rtems/sys/utime.h
newlib/libc/sys/sh/ftruncate.c
newlib/libc/sys/sh/truncate.c
newlib/libc/time/gettzinfo.c
newlib/libc/time/local.h
newlib/libc/time/mktm_r.c
newlib/libc/time/strptime.c
newlib/libc/time/tzlock.c
newlib/libc/time/tzset.c
newlib/libc/time/tzset_r.c
newlib/libc/time/tzvars.c
newlib/libc/unix/basename.c
newlib/libc/unix/dirname.c
newlib/libc/unix/pread.c
newlib/libc/unix/pwrite.c
newlib/libm/common/s_fdim.c
newlib/libm/common/s_fma.c
newlib/libm/common/s_fmax.c
newlib/libm/common/s_fmin.c
newlib/libm/common/s_fpclassify.c
newlib/libm/common/s_infconst.c
newlib/libm/common/s_isinf.c
newlib/libm/common/s_isinfd.c
newlib/libm/common/s_isnan.c
newlib/libm/common/s_isnand.c
newlib/libm/common/s_lrint.c
newlib/libm/common/s_lround.c
newlib/libm/common/s_nearbyint.c
newlib/libm/common/s_remquo.c
newlib/libm/common/s_round.c
newlib/libm/common/s_scalbln.c
newlib/libm/common/s_signbit.c
newlib/libm/common/s_trunc.c
newlib/libm/common/sf_fdim.c
newlib/libm/common/sf_fma.c
newlib/libm/common/sf_fmax.c
newlib/libm/common/sf_fmin.c
newlib/libm/common/sf_isinf.c
newlib/libm/common/sf_isinff.c
newlib/libm/common/sf_isnan.c
newlib/libm/common/sf_isnanf.c
newlib/libm/common/sf_lrint.c
newlib/libm/common/sf_lround.c
newlib/libm/common/sf_nearbyint.c
newlib/libm/common/sf_remquo.c
newlib/libm/common/sf_round.c
newlib/libm/common/sf_scalbln.c
newlib/libm/common/sf_trunc.c
newlib/libm/math/w_exp2.c
newlib/libm/math/w_sincos.c
newlib/libm/math/w_tgamma.c
newlib/libm/math/wf_exp2.c
newlib/libm/math/wf_sincos.c
newlib/libm/math/wf_tgamma.c
newlib/libm/mathfp/s_exp2.c
newlib/libm/mathfp/s_sincos.c
newlib/libm/mathfp/s_tgamma.c
newlib/libm/mathfp/sf_exp2.c
newlib/libm/mathfp/sf_sincos.c
newlib/libm/mathfp/sf_tgamma.c
newlib/libtool.m4
newlib/newlib.hin
newlib/stamp-h.in
newlib/testsuite/config/default.exp
newlib/testsuite/include/check.h
newlib/testsuite/lib/checkoutput.exp
newlib/testsuite/lib/flags.exp
newlib/testsuite/lib/newlib.exp
newlib/testsuite/lib/passfail.exp
newlib/testsuite/newlib.elix/elix.exp
newlib/testsuite/newlib.elix/tmmap.c
newlib/testsuite/newlib.iconv/iconv.exp
newlib/testsuite/newlib.iconv/iconvjp.c
newlib/testsuite/newlib.iconv/iconvnm.c
newlib/testsuite/newlib.iconv/iconvru.c
newlib/testsuite/newlib.locale/UTF-8.c
newlib/testsuite/newlib.locale/UTF-8.exp
newlib/testsuite/newlib.locale/locale.exp
newlib/testsuite/newlib.search/hsearchtest.c
newlib/testsuite/newlib.search/hsearchtest.exp
newlib/testsuite/newlib.stdlib/atexit.c
newlib/testsuite/newlib.stdlib/atexit.exp
newlib/testsuite/newlib.string/memmove1.c
newlib/testsuite/newlib.string/string.exp
newlib/testsuite/newlib.string/tstring.c
newlib/testsuite/newlib.wctype/tiswctype.c
newlib/testsuite/newlib.wctype/twctrans.c
newlib/testsuite/newlib.wctype/twctype.c
newlib/testsuite/newlib.wctype/wctype.exp
src-release
Diffstat (limited to 'libgloss')
351 files changed, 915 insertions, 33292 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 095dec1..60fcc7f 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,1031 +1,3 @@ -2006-03-22 Nathan Sidwell <nathan@codesourcery.com> - - * mt/startup-16-002.S (.internal_io): Make @nobits. - * mt/startup-16-003.S (.internal_io): Make @nobits. - * mt/startup-ms2.S (.internal_io): Make @nobits. - -2006-03-02 DJ Delorie <dj@redhat.com> - - * m32c/exit.S: Preserve r1. - -2006-02-24 Paul Brook <paul@codesourcery.com> - - * arm/redboot-crt0.S: Use cps in Thumb-2 mode. - -2006-02-22 Nathan Sidwell <nathan@codesourcery.com> - - * m68k/Makefile.in (CF_SCRIPTS): New. - (all): Add CF_SCRIPTS. - (m5208evb.ld, m5213evb.ld, m5235evb.ld, m5272c3.ld, - m5282evb.ld): New targets - (install): Iterate over CF_SCRIPTS. - * m68k/crt0.S: Don't use dbra on any cf chips. - * m68k/dbug-cf.sc: New. - -2006-02-07 Paul Brook <paul@codesourcery.com> - - * arm/crt0.S: Add Thumb-2 startup code. - * arm/redboot-crt0.S: Ditto. - * arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn. - * arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define. - * arm/trap.S: Disable for Thumb-2. - -2006-01-18 Nathan Sidwell <nathan@codesourcery.com> - - * mt/ms2.ld (.sram): Correct typo in section names. - -2006-01-16 Nathan Sidwell <nathan@codesourcery.com> - - * mt/Makefile.in (SCRIPTS, CRT0): Add ms2 files. - (crt0-ms2.o): New target. - * mt/crt0-ms2.S, mt/exit-ms2.c, mt/ms2.ld, mt/startup-ms2.S: New. - -2006-01-04 Paul Brook <paul@codesourcery.com> - - * m68k/bcc.ld: Add .got.plt and .got - * m68k/idp.ld: Ditto. - * m68k/idpgdb: Ditto. - * m68k/mvme135.ld: Ditto. - * m68k/sbc5204.ld: Ditto. - * m68k/sbc5206.ld: Ditto. - * m68k/sim.ld: Ditto. - -2005-12-13 DJ Delorie <dj@redhat.com> - - * m32c/crt0.S: Add support for preinit, init, and fini arrays, and - .init and .fini processing. - * m32c/crtn.S: Likewise. - * m32c/exit.S: Likewise. - -2005-12-13 Nathan Sidwell <nathan@codesourcery.com> - - * mt/16-002.ld: Change architecture to 'mt'. Remove - SEARCH_DIR. - * mt/16-003.ld: Likewise. - * mt/64-001.ld: Likewise. - * mt/Makefile.in: Change comment to reference 'mt' rather than 'ms1'. - * mt/crt0.S: Likewise. - -2005-12-12 Nathan Sidwell <nathan@codesourcery.com> - - * configure.in: Replace ms1 arch with mt arch. - * configure: Rebuilt. - * mt: Renamed from ms1 dir. - -2005-12-06 Paul Brook <paul@codesourcery.com> - - * m68k/bcc.ld: Add .text.*, .rodata.*, .data.* and .bss.*. - * m68k/idp.ld: Ditto. - * m68k/idpgdb: Ditto. - * m68k/mvme135.ld: Ditto. - * m68k/sbc5204.ld: Ditto. - * m68k/sbc5206.ld: Ditto. - * m68k/sim.ld: Ditto. - -2005-11-30 Shaun Jackman <sjackman@gmail.com> - - * libnosys/Makefile.in (OBJS): Add chown, readlink, and symlink. - * libnosys/chown.c: New file. - * libnosys/readlink.c: New file. - * libnosys/symlink.c: New file. - -2005-11-30 Shaun Jackman <sjackman@gmail.com> - - * arm/libcfunc.c (clock, sleep, usleep): New functions. - * arm/syscalls.c (_clock): New function. - (_times): Call _clock. - -2005-11-17 Shaun Jackman <sjackman@gmail.com> - - * libgloss/arm/libcfunc.c (isatty): Call _isatty. GDB now supports - the IsTTY SWI that _isatty calls. - -2005-11-17 Hans-Peter Nilsson <hp@axis.com> - - * cris/linunistd.h: Don't redefine errno as extern int. - -2005-10-20 Jeff Johnston <jjohnstn@redhat.com> - - * arm/configure.in: Add AC_SUBST for BUILD_CRT0_TRUE and - BUILD_CRT0_FALSE. - * arm/configure: Regenerate. - -2005-10-17 Jeff Johnston <jjohnstn@redhat.com> - - * arm/configure.in: Support building crt0.o when syscalls - are disabled in newlib. - * arm/configure: Regenerated. - -2005-10-03 James E Wilson <wilson@specifix.com> - - * mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld, - mips/dve.ld, mips/idt.ld, mips/idt32.ld, mips/idt64.ld, - mips/idtecoff.ld, mips/jmr3904app-java.ld, mips/jmr3904app.ld, - jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, mips/nullmon.ld, - mips/pmon.ld: Add support for .bss.* sections. - -2005-09-23 James E Wilson <wilson@specifix.com> - - * mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld, - mips/dve.ld, mips/idt.ld, mips/idt32.ld, mips/idt64.ld, - mips/idtecoff.ld, mips/jmr3904app-java.ld, mips/jmr3904app.ld, - jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, mips/nullmon.ld, - mips/pmon.ld: Change x* to x.* in existing linkonce lines. Add - support for .gnu.linkonce.b.*. - -2005-08-30 Jeff Johnston <jjohnstn@redhat.com> - - * rs6000/Makefile.in (VPATH): Use colon as separator. - -2005-08-24 Aldy Hernandez <aldyh@redhat.com> - - * ms1/access.c: Change copyright notice. - -2005-08-19 DJ Delorie <dj@redhat.com> - - * m32c/Makefile.in (m16cmon.ld, m32cmon.ld): Fix output names. - (*.o): Add dependencies. - * m32c/m32csys.h: Move syscall location to 0x400 as per Renesas - recommendations. - -2005-08-18 DJ Delorie <dj@redhat.com> - - * m32c/Makefile.in: Block out memory regions reserved for monitors - and simulators. Add monitor link scripts. - -2005-08-16 Shaun Jackman <sjackman@gmail.com> - - * arm/syscalls.c (initialise_monitor_handles): Set - monitor_stderr to the result of SWI_open(":tt", "a") - instead of simply duplicating stdout. - -2005-08-10 DJ Delorie <dj@redhat.com> - - * configure.in: Add m32c support. - * configure: Regenerated - * m32c: New directory, Renesas R8C/M16C/M32C support. - * m32c/abort.S m32c/argvlen.S m32c/argv.S m32c/chdir.S, - m32c/chmod.S m32c/close.S m32c/configure m32c/configure.in, - m32c/crt0.S, m32c/crtn.S, m32c/exit.S, m32c/fstat.S, - m32c/genscript, m32c/getpid.S, m32c/gettimeofday.S, - m32c/heaptop.S, m32c/isatty.S, m32c/kill.S, m32c/link.S, - m32c/lseek.S, m32c/m32csys.h, m32c/m32c.tmpl, m32c/Makefile.in, - m32c/open.S, m32c/read.S, m32c/sbrk.c, m32c/stat.S, m32c/time.S, - m32c/times.S, m32c/unlink.S, m32c/utime.S, m32c/write.S: New files - -2005-08-02 Shaun Jackman <sjackman@gmail.com> - - * libgloss/arm/libcfunc.c (isatty): New function. - -2005-08-02 Shaun Jackman <sjackman@gmail.com> - - * libgloss/arm/syscalls.c (_exit): Call _kill with the second - argument set to -1, which is an invalid signal number. - (_kill): Comment and coding style changes only. - (_raise): Remove function. - -2005-07-19 Paul Brook <paul@codesourcery.com> - - * arm/crt0.S: Ensure doubleword stack alignment. - -2005-07-18 Richard Sandiford <richard@codesourcery.com> - - * mips/array.ld (.sdata): Include .gnu.linkonce.s.*, not - .gnu.linkonce.s*. - (.sbss): Include .sbss.* and .gnu.linkonce.sb.*. - * mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld, mips/dve.ld, - * mips/idt32.ld, mips/idt64.ld, mips/idtecoff.ld, mips/idt.ld, - * mips/jmr3904app-java.ld, mips/jmr3904app.ld, - * mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, - * mips/lsi.ld, mips/nullmon.ld, mips/pmon.ld: As for mips/array.ld. - -2005-07-18 Shaun Jackman <sjackman@gmail.com> - - * libgloss/arm/libcfunc.c (abort): Call _exit instead of the RDI swi. - (alarm): Add the weak attribute. - (pause): New function. Return ENOSYS. - * libgloss/arm/syscalls.c (_getpid): Add the weak attribute. - (_fstat): Ditto. - (_stat): Ditto. - (_link): Ditto. Return ENOSYS. - (_unlink): Call the swi instead of returning -1. - (_raise): Add the weak attribute. Return ENOSYS. - (isatty): Rename to _isatty. Call the swi instead of returning 1. - (_system): Call the swi instead of returning ENOSYS. - (_rename): Ditto. - -2005-07-06 Aldy Hernandez <aldyh@redhat.com> - - * configure.in: Add ms1 case. - * configure: Regenerate. - * ms1/16-002.ld: New. - * ms1/16-003.ld: New. - * ms1/64-001.ld: New. - * ms1/access.c: New. - * ms1/chmod.c: New. - * ms1/close.c: New. - * ms1/configure: New. - * ms1/configure.in: New. - * ms1/crt0-16-002.S: New. - * ms1/crt0-16-003.S: New. - * ms1/crt0-64-001.S: New. - * ms1/crt0.S: New. - * ms1/exit-16-002.c: New. - * ms1/exit-16-003.c: New. - * ms1/exit-64-001.c: New. - * ms1/exit.c: New. - * ms1/fstat.c: New. - * ms1/getpid.c: New. - * ms1/gettime.c: New. - * ms1/isatty.c: New. - * ms1/kill.c: New. - * ms1/lseek.c: New. - * ms1/Makefile.in: New. - * ms1/open.c: New. - * ms1/read.c: New. - * ms1/sbrk.c: New. - * ms1/startup-16-002.S: New. - * ms1/startup-16-003.S: New. - * ms1/startup-64-001.S: New. - * ms1/stat.c: New. - * ms1/time.c: New. - * ms1/times.c: New. - * ms1/trap.h: New. - * ms1/trap.S: New. - * ms1/unlink.c: New. - * ms1/utime.c: New. - * ms1/write.c: New. - -2005-05-19 Corinna Vinschen <vinschen@redhat.com> - - * arm/elf-redboot.ld, iq2000/sim.ld, m68hc11/sim-valid-m68hc11.ld, - * m68hc11/sim-valid-m68hc12.ld, mcore/elf-cmb.ld, mips/cfe.ld, - * mips/ddb-kseg0.ld, mips/ddb.ld, mips/dve.ld, mips/idt.ld, - * mips/idt32.ld, mips/idt64.ld, mips/jmr3904app-java.ld, - * mips/jmr3904app.ld, mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, - * mips/nullmon.ld, mips/pmon.ld, mn10200/eval.ld, mn10200/sim.ld, - * mn10300/asb2303.ld, mn10300/asb2305.ld, mn10300/eval.ld, - * mn10300/sim.ld, rs6000/ads.ld, rs6000/mbx.ld, rs6000/yellowknife.ld, - * sh/sh1lcevb.ld, sh/sh2lcevb.ld, sh/sh3bb.ld, sh/sh3lcevb.ld, - * sparc/elfsim.ld, sparc/ex930.ld, sparc/ex931.ld, sparc/ex934.ld, - * sparc/sparc86x.ld, xstormy16/eva_app.ld, xstormy16/eva_stub.ld, - * xstormy16/sim_high.ld, xstormy16/sim_rom.ld: Add .debug_ranges - section. - -2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com> - - * arm/syscalls.c (get_errno): Fix output register constraint. - -2005-05-05 J"orn Rennecke <joern.rennecke@st.com> - - * rs6000/sim-getrusage.S: New file, broken out of: - (simulator.S). - * rs6000/Makefile.in (SIM_OBJS): Add sim-getrusage.o. - (sim-getrusage.o): New rule. - -2005-04-28 Shaun Jackman <sjackman@gmail.com> - - * libgloss/syscalls.c (get_errno): Add an output register constraint. - -2005-04-19 Eric Christopher <echristo@redhat.com> - - * mips/regs.S: Sign extend constants for mips64 and unify - address handling. - -2005-04-12 Shaun Jackman <sjackman@gmail.com> - - * libgloss/arm/Makefile.in (RDPMON_BSP): librdpmon.a was empty due - to a typo. Fixed. - (RDIMON_BSP): Ditto. - -2005-04-12 Richard Sandiford <rsandifo@redhat.com> - - * mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld, - * mips/idt64.ld, mips/idtecoff.ld, mips/idt.ld, - * mips/jmr3904app-java.ld, mips/jmr3904app.ld, - * mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, - * mips/nullmon.ld, mips/pmon.ld: Keep .init and .fini. - -2005-02-08 Antony King <antony.king@st.com> - - * arm/syscalls.c: Change CHECK_INIT to pass reentrant struct - instead of file pointer. - -2005-02-01 Hans-Peter Nilsson <hp@axis.com> - - * cris/Makefile.in (ALL_INSTALL_FILES): New macro. - (ALL_INSTALL_FILES_NEWLIB_COPY): New macro. - (all): Use ALL_INSTALL_FILES instead of its contents. Add - ALL_INSTALL_FILES_NEWLIB_COPY. - ($(objroot)/newlib/%, $(objroot)/newlib/libnosys.a): New rules - -2005-01-27 Hans-Peter Nilsson <hp@axis.com> - - * configure.in: Support cris-*-* and crisv32-*-*. - * libnosys/configure.in: Ditto. - * configure, libnosys/configure: Regenerate. - * cris: New directory. - * cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h, - cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c, - cris/Makefile.in, cris/setup.S, cris/configure: New files. - -2005-01-21 Hans-Peter Nilsson <hp@axis.com> - - * libnosys/warning.h (stub_warning): Remove "warning: " prefix. - -2005-01-18 Hans-Peter Nilsson <hp@axis.com> - - * libnosys/warning.h (link_warning) [HAVE_GNU_LD and HAVE_ELF]: - Prefix symbol in section name with __SYMBOL_PREFIX. Do not use - __make_section_unallocated. Mark magic variable as used. - -2005-01-18 Hans-Peter Nilsson <hp@axis.com> - - * libnosys/configure.in (libc_cv_asm_previous_directive): Set - cache-id variable. - (libc_cv_asm_popsection_directive): Ditto. - (libc_cv_section_attributes): Ditto. - (libc_symbol_prefix): Rename from libc_dollar_prefix. Check for - "_" as well, and set __SYMBOL_PREFIX accordingly. - * libnosys/configure: Regenerate. - -2005-01-18 Hans-Peter Nilsson <hp@axis.com> - - * libnosys/Makefile.in (LD, AS): Correct obsoleted suffix: Say - as-new and ld-new, not as.new and ld.new. - -2005-01-14 Hans-Peter Nilsson <hp@axis.com> - - * libnosys/warning.h (__make_section_unallocated) - [HAVE_ASM_PREVIOUS_DIRECTIVE, HAVE_ASM_POPSECTION_DIRECTIVE]: Use "\n" - instead of ";" to delimit assembly lines. - -2005-01-07 Paul Brook <paul@codesourcery.com> - - * arm/crt0.S: Call __libc_{init,fini}_array instead of - _init/_fini if they exist. - -2004-11-26 Paul Brook <paul@codesourcery.com> - - * arm/crt0.S (_start): Add .cantunwind annotation. - -2004-10-28 Nick Clifton <nickc@redhat.com> - - * configure.in: Add support for iq2000 target. - * configure: Regenerate. - -2004-10-05 Tomer Levi <Tomer.Levi@nsc.com> - - * configure.in: Support crx-*-*. - * configure: regenerate. - * crx/_exit.c: New file. - * crx/_getenv.c: Ditto. - * crx/_rename: Ditto. - * crx/close.c: Ditto. - * crx/configure.in: Ditto. - * crx/crti.S: Ditto. - * crx/crtn.S: Ditto. - * crx/crt0.S: Ditto. - * crx/dvz_hndl.c: Ditto. - * crx/flg_hndl.c: Ditto. - * crx/fstat.c: Ditto. - * crx/getpid.c: Ditto. - * crx/iad_hndl.c: Ditto. - * crx/intable.c: Ditto. - * crx/isatty.c: Ditto. - * crx/kill.c: Ditto. - * crx/lseek.c: Ditto. - * crx/Makefile.in: Ditto. - * crx/open.c: Ditto. - * crx/putnum.c: Ditto. - * crx/read.c: Ditto. - * crx/sbrk.c: Ditto. - * crx/sim.ld: Ditto. - * crx/stat.c: Ditto. - * crx/svc_hndl.c: Ditto. - * crx/time.c: Ditto. - * crx/und_hndl.c: Ditto. - * crx/unlink.c: Ditto. - * crx/write.c: Ditto. - -2004-10-01 Paul Brook <paul@codesourcery.com> - - * arm/configure.in: Add *-*-aebi target. - * arm/configure: Regenerate. - -2004-08-25 Corinna Vinschen <vinschen@redhat.com> - - * i386/cygmon.ld (.text): Fix alignment. - (.rodata): Handle .rodata.* sections. - -2004-06-27 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp> - - * Makefile.in: Support $(DESTDIR). - * arm/Makefile.in: Ditto. - * d30v/Makefile.in: Ditto. - * doc/Makefile.in: Ditto. - * fr30/Makefile.in: Ditto. - * frv/Makefile.in: Ditto. - * hp74x/Makefile.in: Ditto. - * i386/Makefile.in: Ditto. - * i960/Makefile.in: Ditto. - * iq2000/Makefile.in: Ditto. - * libnosys/Makefile.in: Ditto. - * m32r/Makefile.in: Ditto. - * m68hc11/Makefile.in: Ditto. - * m68k/Makefile.in: Ditto. - * mcore/Makefile.in: Ditto. - * mips/Makefile.in: Ditto. - * mn10200/Makefile.in: Ditto. - * mn10300/Makefile.in: Ditto. - * pa/Makefile.in: Ditto. - * rs6000/Makefile.in: Ditto. - * sparc/Makefile.in: Ditto. - * sparc/libsys/Makefile.in: Ditto. - * xstormy16/Makefile.in: Ditto. - -2004-06-25 Jeff Johnston <jjohnstn@redhat.com> - - * libnosys/_exit.c: New file. - * libnosys/Makefile.in: Add _exit.o. - -2004-06-17 Jeff Johnston <jjohnstn@redhat.com> - - * arm/configure.in: Check the value of newlib-may-supply-syscalls - enablement variable to determine if crt0 should or should not be - built. - * arm/configure: Regenerated. - * arm/Makefile.in: Changed to look at @BUILD_CRT0_TRUE@ and - @BUILD_CRT0_FALSE@ variables set in configure to determine - if crt0.o should be built and installed. - -2004-06-09 Toralf Lund <toralf@procaptura.com> - - * arm/crt0.S: Copied from newlib and it now also sets up stacks for - FIQ and IRQ mode, plus calls hardware_init_hook() and - software_init_hook() if present. - * arm/libcfunc.c, arm/swi.h, arm/syscalls.c: Copied - from newlib. - * arm/Makefile.in: Build crt0.o, rdpmon-crt0.o, rdimon-crt0.o, - librdpmon.a, librdimon.a - support file for "bare" setup, as well - as "RDP" and "RDI" monitors. - * arm/coff-rdpmon.specs, arm/elf-rdpmon.specs, - arm/coff-rdimon.specs, arm/elf-rdimon.specs: gcc specs files to go - with above mentioned support libs and startfiles. - -2004-06-03 Alexandre Oliva <aoliva@redhat.com> - - * mn10300/sim.ld: Start at address 4, to avoid ambiguity with NULL - pointers. - -2004-05-26 Jeff Johnston <jjohnstn@redhat.com> - - * libnosys/sbrk.c: Add include of <_syslist.h> and "config.h". - -2004-05-05 Richard Sandiford <rsandifo@redhat.com> - - * mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld, - * mips/dve.ld, mips/idt32.ld, mips/idt64.ld, mips/idt.ld - * mips/jmr3904app.ld, mips/lsi.ld, mips/nullmon.ld, mips/pmon.ld - (.eh_frame_hdr, .eh_frame, .gcc_except_table, .jcr): New sections. - -2004-04-02 Chris Demetriou <cgd@broadcom.com> - - * mips/regs.S (C0_COUNT): Fix comment that kept this from being - defined. - * mips/vr4300.S: Use C0_COUNT as appropriate instead of hardcoding $9. - * mips/vr5xxx.S: Likewise. - -2004-03-23 Eric Christopher <echristo@redhat.com> - - * frv/crt0.S: Fix comment. - * mips/configure.in: Add mipsisa64-*-* to target support. - * mips/configure: Regenerate. - -2004-03-03 Stephane Carrez <stcarrez@nerim.fr> - - * m68hc11/sci-inout.S: Supports -mlong-calls. - * m68hc11/sim-valid-m68hc11.ld (.tramp): New section for trampolines. - (.text): Mark the .installN and .finiN section with KEEP. - (.vectors): Likewise for .vectors. - (.gcc_except_table): New section. - * m68hc11/sim-valid-m68hc12.ld (.tramp): New section for trampolines. - (.text): Mark the .installN and .finiN section with KEEP. - (.vectors): Likewise for .vectors. - (.gcc_except_table): New section. - -2004-01-23 Gábor Lóki <loki@inf.u-szeged.hu> - - * m68k/leds.c: remove led_putnum(), zylons() forward - function declarations. - * m68k/leds.h: add zylons() forward function declaration. - -2004-01-06 Alexandre Oliva <aoliva@redhat.com> - - 2003-12-02 Richard Sandiford <rsandifo@redhat.com> - * frv/crt0.S (_start): Fix use of FDPIC conditionals. Move the set of - gr11 outside the FDPIC conditional. Avoid clobbering gr4 too early. - 2003-11-14 Richard Sandiford <rsandifo@redhat.com> - * frv/crt0.S: Fix fdpic sp calculation. - 2003-11-05 Alexandre Oliva <aoliva@redhat.com> - * frv/crt0.S: Use __stacksize, not __stack, to initialize sp on - FDPIC. Update comments on computing _GLOBAL_OFFSET_TABLE_. Don't - fixup ctors nor dtors on FDPIC. - 2003-09-19 Alexandre Oliva <aoliva@redhat.com> - * frv/crt0.S (_start): Set up gr15 only for FDPIC. - * frv/crt0.S (_start): Save _GLOBAL_OFFSET_TABLE_ in gr17, and set - gr15 before function calls. - 2003-09-19 DJ Delorie <dj@redhat.com>, Alexandre Oliva <aoliva@redhat.com> - * frv/crt0.S (_start): Set up gr15 with _GLOBAL_OFFSET_TABLE_'s - value. - -2003-10-27 Bernardo Innocenti <bernie@develer.com> - - * m68k/asm.h: Add macros for -fPIC, -msep-data and - -mid-shared-library support. - * m68k/crt0.S: Use macros for -fPIC, -msep-data and - -mid-shared-library support. - * m68k/sim-crt0.S: Likewise. - -2003-10-15 Bernardo Innocenti <bernie@develer.com> - - * m68k/sim-funcs.c (_XOPEN_SOURCE): Define to get the pid_t - typedef from <unistd.h>. - -2003-08-26 Jason Merrill <jason@redhat.com> - - * sparc/elfsim.ld: Fix __EH_FRAME_BEGIN__ definition. - * sparc/sparc86x.ld: Likewise. - -2003-08-20 Chris Demetriou <cgd@broadcom.com> - - * mips/crt0_cfe.S: New file. - * mips/cfe_mem.c: New file. - * mips/cfe_prestart.S: Remove. - * mips/cfe.ld: Adjust to use crt0_cfe.o as the startup file, and - and use _start as the entry point. Align BSS to 32-byte boundary. - * mips/cfe.c: Reimplement to fit on top of a crt0_cfe.o file. - * mips/cfe_api.h (__libcfe_stack_size, __libcfe_mem_limit) - (__libcfe_meminit, __libcfe_stack_top): New prototypes. - * mips/Makefile.in (CFEOBJS): Replace cfe_prestart.o with cfe_mem.o. - (cfe.o, cfe_api.o, cfe_mem.o, crt0_cfe.o): New targets. - * mips/configure.in: Build and install crt0_cfe.o when CFE support - is built. - * mips/configure: Regenerate. - -2003-08-12 Jeff Johnston <jjohnstn@redhat.com> - - * i386/cygmon-salib.c (unlink): New stub. - -2003-08-08 Mark Salter <msalter@redhat.com> - - * i386/cygmon.ld: Add 4 byte alignment to __CTOR_LIST__ - - Bernd Schmidt <bernds@redhat.com> - - * i386/cygmon.ld: Add entry for .rodata. - -2003-07-14 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> - - * m32r/configure.in: fixed bug to delete ../config-ml.in. - -2003-07-10 Alexandre Oliva <aoliva@redhat.com> - - 2001-10-30 Jeff Johnston <jjohnstn@redhat.com> - * mn10300/asb2305.ld: Added ASB2305 support. - * mn10300/configure: Ditto. - * mn10300/configure.in: Ditto. - 2001-09-12 Stan Cox <scox@redhat.com> - * mn10300/asb2303.ld: New file. Linker script for the ASB2303 - AM33/2.00 board. - * mn10300/configure.in: Add support for asb2303 board script. - -2003-07-08 Jeff Johnston <jjohnstn@redhat.com> - - * configure.in: Reapply Kazuhiro Inaoko's multilib patch from - 04-17-03. - * configure: Regenerated. - -2003-06-23 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> - - * m32r/crt0.S (_start): Allow _stack to be placed anywhere - in memory. - -2003-06-06 Stan Cox <scox@redhat.com> - Jeff Johnston <jjohnstn@redhat.com> - Anthony Green <green@redhat.com> - - * configure.in: Add iq2000 support. - * configure: Rebuilt. - * iq2000/Makefile.in, iq2000/access.c, iq2000/_exit.c, - iq2000/configure, iq2000/chmod.c, iq2000/chown.c, iq2000/close.c, - iq2000/configure.in, iq2000/creat.c, iq2000/crt0.S, iq2000/crt1.c, - iq2000/execv.c, iq2000/execve.c, iq2000/fork.c, iq2000/fstat.c, - iq2000/getpid.c, iq2000/gettime.c, iq2000/isatty.c, iq2000/kill.c, - iq2000/lseek.c, iq2000/open.c, iq2000/pipe.c, iq2000/read.c, - iq2000/sbrk.c, iq2000/sim.ld, iq2000/stat.c, iq2000/test.c, - iq2000/time.c, iq2000/times.c, iq2000/trap.c, iq2000/trap.h, - iq2000/unlink.c, iq2000/utime.c, iq2000/wait.c, iq2000/write.c: - New files. - -2003-05-27 Jeff Johnston <jjohnstn@redhat.com> - - * libnosys/Makefile.in: Add errno.o. - * libnosys/errno.c: New file to supply errno definition if - one not provided yet. - -2003-05-26 Eric Christopher <echristo@redhat.com> - - * mips/crt0.S: Remove stackbase variable set. - -2003-05-02 Eric Christopher <echristo@redhat.com> - - * mips/cma101.c (__sizemem): Make sure that end is not in .sdata. - -2003-04-29 Nick Clifton <nickc@redhat.com> - - * libnosys/sbrk.c: Remove unnecessary #include's. - Change return type of _sbrk() function to void * to match - definition in system header files. - Fix formatting. - -2003-04-23 Andrew Haley <aph@cambridge.redhat.com> - - * xstormy16/sim_rom.ld: New. - * xstormy16/Makefile.in (SIM_SCRIPTS): Add sim_rom.ld. - * xstormy16/crt0.s (_int_reset): Copy ROM data to RAM. - * xstormy16/eva_app.ld (_rdata, _data): New. - * xstormy16/sim_high.ld (_rdata, _data): New. - -2003-04-17 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com> - - * m32r/Makefile.in: Add multilib support. - * m32r/configure.in: Ditto. - * m32r/configure: Regenerated. - -2003-04-16 Nick Clifton <nickc@redhat.com> - - * xstormy16/sim_high.ld: Add .jcr section mapping. - * xstormy16/eva_stub.ld: Likewise. - * xstormy16/eva_app.ld: Likewise. - -2003-04-09 Chris Demetriou <cgd@broadcom.com> - - * mips/cfe.c (_flush_cache): New function. - -2003-02-18 Richard Sandiford <rsandifo@redhat.com> - - * mips/nullmon.c (_ftext, _end): Adjust declaration. - (get_mem_info): Rework. - -2003-02-18 Richard Sandiford <rsandifo@redhat.com> - - * mips/crt0.S (zerobss): Reload __memsize after call. - -2003-02-17 Chris Demetriou <cgd@broadcom.com> - - * mips/cfe.c (__cfe_handle, __cfe_entrypt): Fix types. - -2003-02-05 Chris Demetriou <cgd@broadcom.com> - - * mips/configure.in (mipsisa32el-*-*): Handle in the same way - as mipsisa32-*-*. - (mipsisa32r2-*-*, mipsisa32r2el-*-*): New, handled in the same - way as mipsisa32-*-*. - * mips/configure: Regenerate. - -2003-02-05 Chris Demetriou <cgd@broadcom.com> - - * mips/cfe.c (hardware_hazard_hook): Move... - * mips/cfe_prestart.S (hardware_hazard_hook): To here, - and translate into assembly. - -2003-01-08 Richard Sandiford <rsandifo@redhat.com - - * mips/crt0.S (_start): Allocate 64 bytes of stack instead of 32. - Pass an empty argv and envp to main(). - -2003-01-08 Richard Sandiford <rsandifo@redhat.com - - * mips/configure.in (mips64vr-elf, mips64vrel-elf): New config. - * mips/configure: Regenerate. - -2003-01-07 Chris Demetriou <cgd@broadcom.com> - - * crt0.S: Check for definition of __mips64 rather than - checking (__mips < 3). - * pmon.S: Likewise. - * cygmon.c (sysCall): Avoid multi-line string literals. - -2002-11-12 Jeff Johnston <jjohnstn@redhat.com> - - * mips/Makefile.in: Add cygmon support. - * mips/configure.in: Ditto. - * mips/configure: Regenerated. - * mips/crt0_cygmon.S: New file. - * mips/cygmon.c: Ditto. - * mips/pmon.S: Minor formatting and copyright changes. - * mips/crt0.S: Ditto. - -2002-11-08 Jeff Johnston <jjohnstn@redhat.com> - - * arm/Makefile.in: Add support for new pid specs. - * arm/coff-iq80310.specs: Change to allow future support. - * arm/elf-iq80310.specs: Ditto. - * arm/elf-redboot.specs: Ditto. - * arm/coff-redboot.ld: Add EH frame support. - * arm/redboot-crt0.S: Add optional code to clear bss without - memset. - * arm/coff-pid.specs: New file. - * arm/elf-pid.specs: New file. - -2002-11-08 Jeff Johnston <jjohnstn@redhat.com> - Catherine Moore <clm@redhat.com> - - * m32r/configure.in: Do not require gcc to be able to link an - executable. - * m32r/configure: Regenerate. - * m32r/Makefile.in: Directly reference gdbstub. - -2002-10-25 Bernd Schmidt <bernds@redhat.com> - - * i386/cygmon.ld: Add entry for .gcc_except_table. - -2000-10-25 Mark Salter <msalter@redhat.com> - - * i386/cygmon-crt0.S: Use __USER_LABEL_PREFIX__ for symbols. Always - use __start for start symbol. - * i386/cygmon-salib.c: Don't build __do_global_[cd]tors for AOUT. - Disable file I/O extensions to make Plum Hall happy. - * i386/cygmon.ld: Set __start as entry point. - * i386/Makefile.in: Support IS_AOUT. - * i386/configure.in: Support IS_AOUT. - * i386/configure: Regenerated. - * i386/cygmon-salib.c: - * i386/cygmon-gmon.c (_mcount): It's _etext. - -2002-10-25 Jeff Johnston <jjohnstn@redhat.com> - - * configure.in: Clarify some of the triplets so unsupported - configurations don't pass through. - * configure: Regenerated. - -2002-10-18 Stephane Carrez <stcarrez@nerim.fr> - - * m68hc11/syscalls.c (sbrk): Use ptrdiff_t for increment parameter. - -2002-10-07 Richard Sandiford <rsandifo@redhat.com> - - * mips/ddb.ld: KEEP .init and .fini. - * mips/ddb-kseg0.ld: Likewise. - -2002-10-04 Michael Snyder <msnyder@redhat.com> - - * m32r/m32r-lib.c (exceptionHandler): Fix computation of - exception vector address, as suggested by Mitsubishi. - (getExceptionVector): Ditto. - -2002-08-01 Chris Demetriou <cgd@broadcom.com> - - * mips/cfe.ld (STARTUP): New definition. - * mips/ddb-kseg0.ld (STARTUP): Likewise. - * mips/ddb.ld (STARTUP): Likewise. - * mips/dve.ld (STARTUP): Likewise. - * mips/idt.ld (STARTUP): Likewise. - * mips/jmr3904app-java.ld (STARTUP): Likewise. - * mips/jmr3904app.ld (STARTUP): Likewise. - * mips/jmr3904dram-java.ld (STARTUP): Likewise. - * mips/jmr3904dram.ld (STARTUP): Likewise. - * mips/lsi.ld (STARTUP): Likewise. - * mips/nullmon.ld (STARTUP): Likewise. - * mips/pmon.ld (STARTUP): Likewise. - -2002-07-23 Stephane Carrez <stcarrez@nerim.fr> - - * README: Mention 68HC11/68HC12 support. - * configure.in: Recognize m6811-elf and m6812-elf. - * configure: Regenerated. - * m68hc11/Makefile.in: New file. - * m68hc11/configure.in: New file. - * m68hc11/configure: New file. - * m68hc11/crt0.S: New file. - * m68hc11/sci-inout.S: New file for 68hc11/68hc12 sio. - * m68hc11/sim-valid-m68hc11.ld: New file. - * m68hc11/sim-valid-m68hc12.ld: New file. - * m68hc11/syscalls.c: New file. - -2002-07-22 Aldy Hernandez <aldyh@redhat.com> - - * rs6000/simulator.S (gettimeofday): New. - (getrusage): New. - -2002-07-18 Chris Demetriou <cgd@broadcom.com> - - * read.c (read): Don't assign past end of buffer, fix return value. - -2002-07-12 Chris Demetriou <cgd@broadcom.com> - - * mips/Makefile.in (GENOBJS2): New variable to name other - commonly used objects. - (DVEOBJS, JMR3904OBJS): Reference GENOBJS2. - - * mips/Makefile.in: Add support for Broadcom CFE firmware. - * mips/configure.in: (mipsisa32*-*-*, *): Likewise. - * mips/configure: Regenerate. - * mips/cfe.c: New file. - * mips/cfe.ld: New file. - * mips/cfe_api.c: New file. - * mips/cfe_api.h: New file. - * mips/cfe_api_int.h: New file. - * mips/cfe_error.h: New file. - * mips/cfe_prestart.S: New file. - -2002-07-12 Chris Demetriou <cgd@broadcom.com> - - * mips/array.ld (hardware_exit_hook, hardware_hazard_hook): New - symbols for optionally-provided functions. - * mips/ddb-kseg0.ld: Likewise. - * mips/ddb.ld: Likewise. - * mips/dve.ld: Likewise. - * mips/idt.ld: Likewise. - * mips/idt32.ld: Likewise. - * mips/idt64.ld: Likewise. - * mips/idtecoff.ld: Likewise. - * mips/jmr3904app-java.ld: Likewise. - * mips/jmr3904app.ld: Likewise. - * mips/jmr3904dram-java.ld: Likewise. - * mips/jmr3904dram.ld: Likewise. - * mips/lsi.ld: Likewise. - * mips/nullmon.ld: Likewise. - * mips/pmon.ld: Likewise. - * mips/crt0.S: Invoke hardware_exit_hook and hardware_hazard_hook - functions if they are provided. - (_exit): Handle __embedded_pic properly. - -2002-06-18 Dave Brolley <brolley@redhat.com> - - From Catherine Moore, Michael Meissner, Richard Sandiford: - * configure.in: Support frv*-*-*. - * frv/Makefile.in: New file. - * frv/configure: New file. - * frv/configure.in: New file. - * frv/crt0.S: New file. - * frv/fstat.c: New file. - * frv/getpid.c: New file. - * frv/isatty.c: New file. - * frv/kill.c: New file. - * frv/print.c: New file. - * frv/putnum.c: New file. - * frv/sbrk.c: New file. - * frv/sim-close.S: New file. - * frv/sim-exit.S: New file. - * frv/sim-inbyte.c: New file. - * frv/sim-lseek.S: New file. - * frv/sim-open.S: New file. - * frv/sim-read.S: New file. - * frv/sim-time.c: New file. - * frv/sim-unlink.S: New file. - * frv/sim-write.S: New file. - * frv/stat.c: New file. - -2002-05-11 Thomas Fitzsimmons <fitzsim@redhat.com> - - * libnosys/acconfig.h (HAVE_SECTION_ATTRIBUTES): New macro. - * libnosys/configure.in: Check gcc's support for section attributes. - * libnosys/warning.h: Have link_warning expand to nothing if gcc - does not support section attributes. - -2002-04-22 Jonathan Larmour <jlarmour@redhat.com> - - * arm/syscall.h: New file. To define extra syscall values for RedBoot. - - * arm/redboot-syscalls.c (_close): Fix setting of errno value. - (_lseek): Ditto. - (_open): Ditto. - (_write): Ditto. - (_read): Ditto. - (_rename): New function. - (_system): Ditto. - (_stat): Ditto. - (_unlink): Call a syscall for this now. - (isatty): Ditto. - (_fstat): Ditto. - (_gettimeofday): Ditto. - -2002-04-17 Joel Sherrill <joel@OARcorp.com> - - * debug.h: Change mem_err to volatile to match definition in - debug.c. - -2002-04-17 Joel Sherrill <joel@OARcorp.com> - - * sparc/cygmon-salib.c, sparc/erc32-stub.c: Don't use multi-line - strings. - -2002-04-16 Jeff Johnston <jjohnstn@redhat.com> - - * m68k/configure.in: Change to use LIB_AC_PROG_CC instead - of AC_PROG_CC to avoid building an executable in configuration. - * m68k/configure: Regenerated. - -2002-04-15 Hans-Peter Nilsson <hp@bitrange.com> - - * d30v/syscalls.c: #include <time.h>. Don't use multi-line - strings. - -2002-04-15 Hans-Peter Nilsson <hp@bitrange.com> - - * m32r/trapmon0.c (__trap0): Don't use multi-line strings. - -2002-02-05 Mark Salter <msalter@redhat.com> - - * arm/elf-iq80310.specs: Ditto. - * arm/elf-redboot.specs: Ditto. - * arm/elf-redboot.ld: Fix eh_frame sections. Add .jcr section. - * arm/redboot-crt0.S: Add support for __USES_INITFINI__. - -2002-02-01 Geoffrey Keating <geoffk@redhat.com> - - * xstormy16/Makefile.in (SIM_OBJS): Remove sbrk.o, add - sim_malloc_start.o. - * xstormy16/eva_app.ld: Add __malloc_start. - * xstormy16/sbrk.c: Remove. - * xstormy16/sim_malloc_start.s: New file. - * xstormy16/sim_high.ld: Make the stack start immediately at the - end of the program. - -2002-02-01 Michael Meissner <meissner@redhat.com> - - * mips/cma101.c (__sizemem_default): Allow user to specify the - memory size. - (__sizemem): Use it. - -2002-01-24 Mark Salter <msalter@redhat.com> - - * arm/redboot-crt0.S: Use __get_memtop to put stack in high memory. - - * arm/redboot-syscalls.c (_times): Unconditionally use SYS_times. - (__get_memtop): New funtion to return top of memory. - -2002-01-15 Mark Salter <msalter@redhat.com> - - * xstormy16/eva_stub.ld: Provide interrupt routine symbols which - forward interrupts to user application vectors. - - * xstormy16/crt0_stub.s: Remove default interrupt routines. - - * xstormy16/Makefile.in: Rename stub app to eva_stub.elf and - add it to install list. - -2002-01-07 Mark Salter <msalter@redhat.com> - - * configure.in: Add support for arm, strongarm, and xscale. - * configure: Regenerated. - * arm/coff-iq80310.specs: New file. - * arm/coff-redboot.ld: New file. - * arm/coff-redboot.specs: New file. - * arm/configure: New file. - * arm/configure.in: New file. - * arm/elf-iq80310.specs: New file. - * arm/elf-redboot.ld: New file. - * arm/elf-redboot.specs: New file. - * arm/Makefile.in: New file. - * arm/redboot-crt0.S: New file. - * arm/redboot-syscalls.c: New file. - -2001-12-22 Geoffrey Keating <geoffk@redhat.com> - Mark Salter <msalter@redhat.com> - Catherine Moore <clm@redhat.com> - Richard Henderson <rth@redhat.com> - - * configure.in: Add xstormy16. - * libnosys/configure.in: Add xstormy16. - * configure: Regenerated. - * libnosys/configure: Regenerated. - * xstormy16/Makefile.in: New file. - * xstormy16/close.c: New file. - * xstormy16/configure: New file. - * xstormy16/configure.in: New file. - * xstormy16/crt0.s: New file. - * xstormy16/crt0_stub.s: New file. - * xstormy16/crti.s: New file. - * xstormy16/crtn.s: New file. - * xstormy16/eva_app.c: New file. - * xstormy16/eva_app.ld: New file. - * xstormy16/eva_stub.ld: New file. - * xstormy16/fstat.c: New file. - * xstormy16/getpid.c: New file. - * xstormy16/kill.c: New file. - * xstormy16/lseek.c: New file. - * xstormy16/open.c: New file. - * xstormy16/sbrk.c: New file. - * xstormy16/sim_high.ld: New file. - * xstormy16/stat.c: New file. - * xstormy16/syscalls.S: New file. - * xstormy16/syscalls.m4: New file. - * xstormy16/unlink.c: New file. - * xstormy16/xstormy16_stub.c: New file. - 2001-10-31 Jeff Johnston <jjohnstn@redhat.com> * m32r/Makefile.in: Use gdb stub set by configure. @@ -1061,7 +33,7 @@ * configure.in: Treat ddb-kseg0.ld like ddb.ld. * configure: Regenerate. - + 2001-09-15 Eric Christopher <echristo@redhat.com> * mips/configure.in (LIB_AC_PROG_CC): Fix typo in mipsisa32 to diff --git a/libgloss/Makefile.in b/libgloss/Makefile.in index 62a8f5b..4e9c4c4 100644 --- a/libgloss/Makefile.in +++ b/libgloss/Makefile.in @@ -13,7 +13,6 @@ # they apply. # -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -85,8 +84,7 @@ FLAGS_TO_PASS = \ "tooldir=$(tooldir)" \ "INSTALL=$(INSTALL)" \ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ - "INSTALL_DATA=$(INSTALL_DATA)" \ - "DESTDIR=$(DESTDIR)" + "INSTALL_DATA=$(INSTALL_DATA)" all: stmp-bsp force @rootpre=`pwd`/; export rootpre; \ diff --git a/libgloss/README b/libgloss/README index 4c93f07..197980b 100644 --- a/libgloss/README +++ b/libgloss/README @@ -1,6 +1,5 @@ sparc - Fujitsu Sparclite board. Works on the ex930, ex931, ex933 hp74x - Hewlett Packard HP742 board. Also some support for the hp743. -m68hc11 - Motorola 68HC11 or 68HC12 support. m68k - Motorola MVME135 and IDP board. For CPU32 systems. pa - WinBond and Oki boards with a PA. mips - R3000 support. Array Tech LSI33k based RAID disk controller. diff --git a/libgloss/arm/Makefile.in b/libgloss/arm/Makefile.in deleted file mode 100644 index 436db13..0000000 --- a/libgloss/arm/Makefile.in +++ /dev/null @@ -1,167 +0,0 @@ -# -# -DESTDIR = -VPATH = @srcdir@ @srcdir@/.. -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -objtype = @objtype@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTISRCTOP = -MULTIBUILDTOP = -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -@BUILD_CRT0_TRUE@CRT0 = crt0.o -@BUILD_CRT0_TRUE@CRT0_INSTALL = install-crt0 -@BUILD_CRT0_FALSE@CRT0 = -@BUILD_CRT0_FALSE@CRT0_INSTALL = - -REDBOOT_CRT0 = redboot-crt0.o -REDBOOT_OBJS = redboot-syscalls.o -REDBOOT_SCRIPTS = redboot.ld redboot.specs -REDBOOT_INSTALL = install-redboot - -RDPMON_CRT0 = rdpmon-crt0.o -RDPMON_BSP = librdpmon.a -RDPMON_OBJS = syscalls.o libcfunc.o trap.o -RDPMON_SCRIPTS = rdpmon.specs -RDPMON_INSTALL = install-rdpmon - -RDIMON_CRT0 = rdimon-crt0.o -RDIMON_BSP = librdimon.a -RDIMON_OBJS = rdimon-syscalls.o rdimon-libcfunc.o rdimon-trap.o -RDIMON_SCRIPTS = rdimon.specs -RDIMON_INSTALL = install-rdimon - -CFLAGS = -g - -# Here is all of the eval board stuff -PID_SCRIPTS = pid.specs -PID_INSTALL = install-pid - -IQ80310_SCRIPTS = iq80310.specs -IQ80310_INSTALL = install-iq80310 - - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -# -# build a test program for each target board. Just trying to get -# it to link is a good test, so we ignore all the errors for now. -# -all: ${CRT0} ${REDBOOT_CRT0} ${REDBOOT_OBJS} ${RDPMON_CRT0} ${RDPMON_BSP} ${RDIMON_CRT0} ${RDIMON_BSP} - -# -# here's where we build the test programs for each target -# -.PHONY: test -test: - -# -crt0.o: crt0.S -redboot-crt0.o: redboot-crt0.S -redboot-syscalls.o: redboot-syscalls.c $(srcdir)/../syscall.h - -rdpmon-crt0.o: crt0.S - $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -DARM_RDP_MONITOR -o $@ -c $< - -rdimon-crt0.o: crt0.S - $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -DARM_RDI_MONITOR -o $@ -c $< - -rdimon-trap.o: trap.S - $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -DARM_RDI_MONITOR -o $@ -c $< - -rdimon-syscalls.o: syscalls.c - $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -DARM_RDI_MONITOR -o $@ -c $< - -rdimon-libcfunc.o: libcfunc.c - $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -DARM_RDI_MONITOR -o $@ -c $< - -$(RDPMON_BSP): $(RDPMON_OBJS) - ${AR} ${ARFLAGS} $@ $^ - ${RANLIB} $@ - -$(RDIMON_BSP): $(RDIMON_OBJS) - ${AR} ${ARFLAGS} $@ $^ - ${RANLIB} $@ - -clean mostlyclean: - rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(IQ80310_BSP) - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status *~ - -.PHONY: install info install-info clean-info -install: ${CRT0_INSTALL} ${REDBOOT_INSTALL} ${RDPMON_INSTALL} ${RDIMON_INSTALL} ${IQ80310_INSTALL} ${PID_INSTALL} - -install-crt0: - ${INSTALL_DATA} ${CRT0} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x - -install-redboot: - set -e; for x in ${REDBOOT_CRT0} ${REDBOOT_OBJS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${REDBOOT_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${objtype}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - -install-rdpmon: - set -e; for x in ${RDPMON_CRT0} ${RDPMON_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${RDPMON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${objtype}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - -install-rdimon: - set -e; for x in ${RDIMON_CRT0} ${RDIMON_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${RDIMON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${objtype}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - - -install-pid: - set -e; for x in ${PID_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${objtype}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - -install-iq80310: - set -e; for x in ${IQ80310_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${objtype}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - - -doc: -info: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/arm/coff-iq80310.specs b/libgloss/arm/coff-iq80310.specs deleted file mode 100644 index 2cd2d87..0000000 --- a/libgloss/arm/coff-iq80310.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: --T redboot.ld%s -Ttext 0xA0020000 %(old_link) - -*startfile: -%{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s - diff --git a/libgloss/arm/coff-pid.specs b/libgloss/arm/coff-pid.specs deleted file mode 100644 index 61bec3e..0000000 --- a/libgloss/arm/coff-pid.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: --T redboot.ld%s -Ttext 0x10000 %(old_link) - -*startfile: -redboot-crt0%O%s redboot-syscalls%O%s - diff --git a/libgloss/arm/coff-rdimon.specs b/libgloss/arm/coff-rdimon.specs deleted file mode 100644 index ace5506..0000000 --- a/libgloss/arm/coff-rdimon.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: -%(old_link) -lrdimon - -*startfile: -rdimon-crt0%O%s - diff --git a/libgloss/arm/coff-rdpmon.specs b/libgloss/arm/coff-rdpmon.specs deleted file mode 100644 index 6614612..0000000 --- a/libgloss/arm/coff-rdpmon.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: -%(old_link) -lrdpmon - -*startfile: -rdpmon-crt0%O%s - diff --git a/libgloss/arm/coff-redboot.ld b/libgloss/arm/coff-redboot.ld deleted file mode 100644 index 0c33c3b..0000000 --- a/libgloss/arm/coff-redboot.ld +++ /dev/null @@ -1,54 +0,0 @@ -OUTPUT_FORMAT("coff-arm-little", "coff-arm-big", "coff-arm-little") - SEARCH_DIR(/toolbin/xscale-coff/lib); -ENTRY(_start) -SECTIONS -{ - /* We start at 0x8000 because gdb assumes it (see FRAME_CHAIN). - This is an artifact of the ARM Demon monitor using the bottom 32k - as workspace (shared with the FP instruction emulator if - present): */ - .text 0x8000 : { - *(.init) - *(.text*) - *(.glue_7t) - *(.glue_7) - *(.rdata) - ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; - LONG (-1); *(.ctors); *(.ctor); LONG (0); - ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; - LONG (-1); *(.dtors); *(.dtor); LONG (0); - *(.fini) - etext = .; - _etext = .; - } - .data 0x40000 + (. & 0xfffc0fff) : { - __data_start__ = . ; - *(.data*) - *(.gcc_exc*) - ___EH_FRAME_BEGIN__ = . ; - *(.eh_fram*) - ___EH_FRAME_END__ = . ; - LONG(0); - __data_end__ = . ; - edata = .; - _edata = .; - } - .bss SIZEOF(.data) + ADDR(.data) : - { - __bss_start__ = . ; - *(.bss) - *(COMMON) - __bss_end__ = . ; - } - end = .; - _end = .; - __end__ = .; - .stab 0 (NOLOAD) : - { - [ .stab ] - } - .stabstr 0 (NOLOAD) : - { - [ .stabstr ] - } -} diff --git a/libgloss/arm/coff-redboot.specs b/libgloss/arm/coff-redboot.specs deleted file mode 100644 index 2197761..0000000 --- a/libgloss/arm/coff-redboot.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: --T redboot.ld%s -Ttext 0x20000 %(old_link) - -*startfile: -redboot-crt0%O%s redboot-syscalls%O%s - diff --git a/libgloss/arm/configure b/libgloss/arm/configure deleted file mode 100644 index 47d91ec..0000000 --- a/libgloss/arm/configure +++ /dev/null @@ -1,1239 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --disable-newlib-supplied-syscalls disable newlib from supplying syscalls" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=redboot-crt0.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. -if test "${enable_newlib_supplied_syscalls+set}" = set; then - enableval="$enable_newlib_supplied_syscalls" - case "${enableval}" in - yes) newlib_may_supply_syscalls=yes ;; - no) newlib_may_supply_syscalls=no ;; - *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;; - esac -else - newlib_may_supply_syscalls=yes -fi - -if test "x$newlib_may_supply_syscalls" = "xyes"; then - BUILD_CRT0_TRUE='#' - BUILD_CRT0_FALSE= -else - BUILD_CRT0_TRUE= - BUILD_CRT0_FALSE='#' -fi - - - - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:608: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:629: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:647: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:701: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:765: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:795: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:844: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:868: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:904: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -case "${target}" in - *-*-elf | *-*-eabi) - objtype=elf- - ;; - *-*-coff) - objtype=coff- - ;; -esac - - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@BUILD_CRT0_TRUE@%$BUILD_CRT0_TRUE%g -s%@BUILD_CRT0_FALSE@%$BUILD_CRT0_FALSE%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@objtype@%$objtype%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - - diff --git a/libgloss/arm/configure.in b/libgloss/arm/configure.in deleted file mode 100644 index 7159599..0000000 --- a/libgloss/arm/configure.in +++ /dev/null @@ -1,117 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(redboot-crt0.S) - -dnl Support --disable-newlib-supplied-syscalls -AC_ARG_ENABLE(newlib-supplied-syscalls, -[ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls], -[case "${enableval}" in - yes) newlib_may_supply_syscalls=yes ;; - no) newlib_may_supply_syscalls=no ;; - *) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;; - esac], [newlib_may_supply_syscalls=yes])dnl - -if test "x$newlib_may_supply_syscalls" = "xyes"; then - BUILD_CRT0_TRUE='#' - BUILD_CRT0_FALSE= -else - BUILD_CRT0_TRUE= - BUILD_CRT0_FALSE='#' -fi - -AC_SUBST(BUILD_CRT0_TRUE) -AC_SUBST(BUILD_CRT0_FALSE) - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -case "${target}" in - *-*-elf | *-*-eabi) - objtype=elf- - ;; - *-*-coff) - objtype=coff- - ;; -esac - -AC_SUBST(objtype) - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) - diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S deleted file mode 100644 index 823f409..0000000 --- a/libgloss/arm/crt0.S +++ /dev/null @@ -1,397 +0,0 @@ -#include "newlib.h" -#include "swi.h" - -/* ANSI concatenation macros. */ -#define CONCAT(a, b) CONCAT2(a, b) -#define CONCAT2(a, b) a ## b - -#ifdef __USER_LABEL_PREFIX__ -#define FUNCTION( name ) CONCAT (__USER_LABEL_PREFIX__, name) -#else -#error __USER_LABEL_PREFIX is not defined -#endif - -#ifdef HAVE_INITFINI_ARRAY -#define _init __libc_init_array -#define _fini __libc_fini_array -#endif - -/* .text is used instead of .section .text so it works with arm-aout too. */ - .text -#if defined(__thumb2__) - .syntax unified - .thumb -.macro FUNC_START name - .global \name - .thumb_func -\name: -.endm -#else - .code 32 -.macro FUNC_START name - .global \name -\name: -.endm -#endif - .align 0 - - FUNC_START _mainCRTStartup - FUNC_START _start - FUNC_START start -#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__) - /* Annotation for EABI unwinding tables. */ - .fnstart -#endif - -/* Start by setting up a stack */ -#ifdef ARM_RDP_MONITOR - /* Issue Demon SWI to read stack info */ - swi SWI_GetEnv /* Returns command line in r0 */ - mov sp,r1 /* and the highest memory address in r1 */ - ldr sl, .LC2 /* stack limit is at end of data */ - add sl, sl, #256 /* allow slop for stack overflow handling */ - /* and small frames */ -#else -#ifdef ARM_RDI_MONITOR - /* Issue Angel SWI to read stack info */ - mov r0, #AngelSWI_Reason_HeapInfo - adr r1, .LC0 /* point at ptr to 4 words to receive data */ -#if defined(__thumb2__) - bkpt AngelSWI -#else - /* We are always in ARM mode for startup */ - AngelSWIAsm AngelSWI_ARM -#endif - ldr r0, .LC0 /* point at values read */ - ldr sp, [r0, #8] - ldr sl, [r0, #12] - add sl, sl, #256 /* allow slop for stack overflow handling */ - /* and small frames */ -#else - /* Set up the stack pointer to a fixed value */ - /* Changes by toralf: - - Allow linker script to provide stack via __stack symbol - see - defintion of .Lstack - - Provide "hooks" that may be used by the application to add - custom init code - see .Lhwinit and .Lswinit - - Go through all execution modes and set up stack for each of them. - Loosely based on init.s from ARM/Motorola example code. - Note: Mode switch via CPSR is not allowed once in non-privileged - mode, so we take care not to enter "User" to set up its sp, - and also skip most operations if already in that mode. */ - - ldr r3, .Lstack - cmp r3, #0 - ldreq r3, .LC0 - /* Note: This 'mov' is essential when starting in User, and ensures we - always get *some* sp value for the initial mode, even if we - have somehow missed it below (in which case it gets the same - value as FIQ - not ideal, but better than nothing.) */ - mov sp, r3 - mrs r2, CPSR - tst r2, #0x0F /* Test mode bits - in User of all are 0 */ - beq .LC23 /* "eq" means r2 AND #0x0F is 0 */ - msr CPSR_c, #0xD1 /* FIRQ mode, interrupts disabled */ - mov sp, r3 - sub sl, sp, #0x1000 /* This mode also has its own sl (see below) */ - - mov r3, sl - msr CPSR_c, #0xD7 /* Abort mode, interrupts disabled */ - mov sp, r3 - sub r3, r3, #0x1000 - - msr CPSR_c, #0xDB /* Undefined mode, interrupts disabled */ - mov sp, r3 - sub r3, r3, #0x1000 - - msr CPSR_c, #0xD2 /* IRQ mode, interrupts disabled */ - mov sp, r3 - sub r3, r3, #0x2000 - - msr CPSR_c, #0xD3 /* Supervisory mode, interrupts disabled */ - mov sp, r3 - sub r3, r3, #0x8000 /* Min size 32k */ - bic r3, r3, #0x00FF /* Align with current 64k block */ - bic r3, r3, #0xFF00 - - str r3, [r3, #-4] /* Move value into user mode sp without */ - ldmdb r3, {sp}^ /* changing modes, via '^' form of ldm */ - - orr r2, r2, #0xC0 /* Back to original mode, presumably SVC, */ - msr CPSR_c, r2 /* with FIQ/IRQ disable bits forced to 1 */ -.LC23: - /* Setup a default stack-limit in-case the code has been - compiled with "-mapcs-stack-check". Hard-wiring this value - is not ideal, since there is currently no support for - checking that the heap and stack have not collided, or that - this default 64k is enough for the program being executed. - However, it ensures that this simple crt0 world will not - immediately cause an overflow event: */ - sub sl, r3, #64 << 10 /* Still assumes 256bytes below sl */ -#endif -#endif - /* Zero the memory in the .bss section. */ - mov a2, #0 /* Second arg: fill value */ - mov fp, a2 /* Null frame pointer */ - mov r7, a2 /* Null frame pointer for Thumb */ - - ldr a1, .LC1 /* First arg: start of memory block */ - ldr a3, .LC2 - sub a3, a3, a1 /* Third arg: length of block */ - - -#if defined(__thumb__) && !defined(__thumb2__) - /* Enter Thumb mode.... */ - add a4, pc, #1 /* Get the address of the Thumb block */ - bx a4 /* Go there and start Thumb decoding */ - - .code 16 - .global __change_mode - .thumb_func -__change_mode: -#endif - - bl FUNCTION (memset) -#if !defined (ARM_RDP_MONITOR) && !defined (ARM_RDI_MONITOR) -/* Changes by toralf: Taken from libgloss/m68k/crt0.S - * initialize target specific stuff. Only execute these - * functions it they exist. - */ - ldr r3, .Lhwinit - cmp r3, #0 - beq .LC24 - mov lr, pc - mov pc, r3 -.LC24: - ldr r3, .Lswinit - cmp r3, #0 - beq .LC25 - mov lr, pc - mov pc, r3 -.LC25: - mov r0, #0 /* no arguments */ - mov r1, #0 /* no argv either */ -#else - /* Need to set up standard file handles */ - bl FUNCTION (initialise_monitor_handles) - -#ifdef ARM_RDP_MONITOR - swi SWI_GetEnv /* sets r0 to point to the command line */ - mov r1, r0 -#else - mov r0, #AngelSWI_Reason_GetCmdLine - adr r1, .LC30 /* Space for command line */ - AngelSWIAsm AngelSWI - ldr r1, .LC30 -#endif - /* Parse string at r1 */ - mov r0, #0 /* count of arguments so far */ - /* Push a NULL argument onto the end of the list. */ -#ifdef __thumb__ - push {r0} -#else - stmfd sp!, {r0} -#endif -.LC10: -/* Skip leading blanks */ -#ifdef __thumb__ - ldrb r3, [r1] - add r1, #1 -#else - ldrb r3, [r1], #1 -#endif - cmp r3, #0 - beq .LC12 - cmp r3, #' ' - beq .LC10 - -/* See whether we are scanning a string */ - cmp r3, #'"' -#ifdef __thumb__ - beq .LC20 - cmp r3, #'\'' - bne .LC21 -.LC20: - mov r2, r3 - b .LC22 - -.LC21: - mov r2, #' ' /* terminator type */ - sub r1, r1, #1 /* adjust back to point at start char */ -.LC22: -#else - cmpne r3, #'\'' - moveq r2, r3 - movne r2, #' ' /* terminator type */ - subne r1, r1, #1 /* adjust back to point at start char */ -#endif - -/* Stack a pointer to the current argument */ -#ifdef __thumb__ - push {r1} -#else - stmfd sp!, {r1} -#endif - add r0, r0, #1 -.LC11: -#ifdef __thumb__ - ldrb r3, [r1] - add r1, #1 -#else - ldrb r3, [r1], #1 -#endif - cmp r3, #0 - beq .LC12 - cmp r2, r3 /* reached terminator? */ - bne .LC11 - mov r2, #0 - sub r3, r1, #1 - strb r2, [r3] /* terminate the arg string */ - b .LC10 - -.LC12: - mov r1, sp /* point at stacked arg pointers */ - /* We've now got the stacked args in order reverse the */ -#ifdef __thumb__ - mov r2, r0 - lsl r2, #2 - add r2, sp - mov r3, sp -.LC15: cmp r2, r3 - bls .LC14 - sub r2, #4 - ldr r4, [r2] - ldr r5, [r3] - str r5, [r2] - str r4, [r3] - add r3, #4 - b .LC15 -.LC14: - /* Ensure doubleword stack alignment. */ - mov r4, sp - mov r5, #7 - bic r4, r5 - mov sp, r4 -#else - add r2, sp, r0, LSL #2 /* End of args */ - mov r3, sp /* Start of args */ -.LC13: cmp r2, r3 - ldrhi r4,[r2, #-4] /* Reverse ends of list */ - ldrhi r5, [r3] - strhi r5, [r2, #-4]! - strhi r4, [r3], #4 - bhi .LC13 - /* Ensure doubleword stack alignment. */ - bic sp, sp, #7 -#endif -#endif - -#ifdef __USES_INITFINI__ - /* Some arm/elf targets use the .init and .fini sections - to create constructors and destructors, and for these - targets we need to call the _init function and arrange - for _fini to be called at program exit. */ - mov r4, r0 - mov r5, r1 - ldr r0, .Lfini - bl FUNCTION (atexit) - bl FUNCTION (_init) - mov r0, r4 - mov r1, r5 -#endif - bl FUNCTION (main) - - bl FUNCTION (exit) /* Should not return. */ - -#if defined(__thumb__) && !defined(__thumb2__) - /* Come out of Thumb mode. This code should be redundant. */ - - mov a4, pc - bx a4 - - .code 32 - .global change_back -change_back: - /* Halt the execution. This code should never be executed. */ - /* With no debug monitor, this probably aborts (eventually). - With a Demon debug monitor, this halts cleanly. - With an Angel debug monitor, this will report 'Unknown SWI'. */ - swi SWI_Exit -#endif - - /* For Thumb, constants must be after the code since only - positive offsets are supported for PC relative addresses. */ - - .align 0 -.LC0: -#ifdef ARM_RDI_MONITOR - .word HeapBase -#else -#ifndef ARM_RDP_MONITOR - /* Changes by toralf: Provide alternative "stack" variable whose value - may be defined externally; .Lstack will be used instead of .LC0 if - it points to a non-0 value. Also set up references to "hooks" that - may be used by the application to provide additional init code. */ - -#ifdef __pe__ - .word 0x800000 -#else - .word 0x80000 /* Top of RAM on the PIE board. */ -#endif -.Lstack: - .word __stack -.Lhwinit: - .word FUNCTION (hardware_init_hook) -.Lswinit: - .word FUNCTION (software_init_hook) - - /* Set up defaults for the above variables in the form of weak symbols - - so that application will link correctly, and get value 0 in - runtime (meaning "ignore setting") for the variables, when the user - does not provide the symbols. (The linker uses a weak symbol if, - and only if, a normal version of the same symbol isn't provided - e.g. by a linker script or another object file.) */ - - .set __stack, 0 - .set FUNCTION (hardware_init_hook), 0 - .set FUNCTION (software_init_hook), 0 - - .weak __stack - .weak FUNCTION (hardware_init_hook) - .weak FUNCTION (software_init_hook) -#endif - -#endif -#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__) - /* Protect against unhandled exceptions. */ - .cantunwind - .fnend -#endif -.LC1: - .word __bss_start__ -.LC2: - .word __bss_end__ -#ifdef __USES_INITFINI__ -.Lfini: - .word FUNCTION(_fini) -#endif -#ifdef ARM_RDI_MONITOR -.LC30: - .word CommandLine - .word 255 - -/* Workspace for Angel calls. */ - .data -/* Data returned by monitor SWI. */ -.global __stack_base__ -HeapBase: .word 0 -HeapLimit: .word 0 -__stack_base__: .word 0 -StackLimit: .word 0 -CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */ -#endif - -#ifdef __pe__ - .section .idata$3 - .long 0,0,0,0,0,0,0,0 -#endif diff --git a/libgloss/arm/elf-iq80310.specs b/libgloss/arm/elf-iq80310.specs deleted file mode 100644 index a016e88..0000000 --- a/libgloss/arm/elf-iq80310.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: --T redboot.ld%s -Ttext 0xA0020000 %(old_link) - -*startfile: -crti%O%s crtbegin%O%s %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s - diff --git a/libgloss/arm/elf-pid.specs b/libgloss/arm/elf-pid.specs deleted file mode 100644 index c8a9f14..0000000 --- a/libgloss/arm/elf-pid.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: --T redboot.ld%s -Ttext 0x10000 %(old_link) - -*startfile: -crti%O%s crtbegin%O%s %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s - diff --git a/libgloss/arm/elf-rdimon.specs b/libgloss/arm/elf-rdimon.specs deleted file mode 100644 index 153cf0c..0000000 --- a/libgloss/arm/elf-rdimon.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: -%(old_link) -lrdimon - -*startfile: -crti%O%s crtbegin%O%s %{!pg:rdimon-crt0%O%s} %{pg:rdimon-crt0%O%s} - diff --git a/libgloss/arm/elf-rdpmon.specs b/libgloss/arm/elf-rdpmon.specs deleted file mode 100644 index 903db1f..0000000 --- a/libgloss/arm/elf-rdpmon.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: -%(old_link) -lrdpmon - -*startfile: -crti%O%s crtbegin%O%s %{!pg:rdpmon-crt0%O%s} %{pg:rdpmon-crt0%O%s} - diff --git a/libgloss/arm/elf-redboot.ld b/libgloss/arm/elf-redboot.ld deleted file mode 100644 index 3d1f8d8..0000000 --- a/libgloss/arm/elf-redboot.ld +++ /dev/null @@ -1,220 +0,0 @@ -OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", - "elf32-littlearm") -OUTPUT_ARCH(arm) -ENTRY(_start) -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - . = 0x00020000; - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.text : - { - *(.rel.text) - *(.rel.text.*) - *(.rel.gnu.linkonce.t*) - } - .rela.text : - { - *(.rela.text) - *(.rela.text.*) - *(.rela.gnu.linkonce.t*) - } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.rodata : - { - *(.rel.rodata) - *(.rel.rodata.*) - *(.rel.gnu.linkonce.r*) - } - .rela.rodata : - { - *(.rela.rodata) - *(.rela.rodata.*) - *(.rela.gnu.linkonce.r*) - } - .rel.data : - { - *(.rel.data) - *(.rel.data.*) - *(.rel.gnu.linkonce.d*) - } - .rela.data : - { - *(.rela.data) - *(.rela.data.*) - *(.rela.gnu.linkonce.d*) - } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.sdata : - { - *(.rel.sdata) - *(.rel.sdata.*) - *(.rel.gnu.linkonce.s*) - } - .rela.sdata : - { - *(.rela.sdata) - *(.rela.sdata.*) - *(.rela.gnu.linkonce.s*) - } - .rel.sbss : { *(.rel.sbss) } - .rela.sbss : { *(.rela.sbss) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .plt : { *(.plt) } - .text : - { - *(.text) - *(.text.*) - *(.stub) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t*) - *(.glue_7t) *(.glue_7) - } =0 - .init : - { - KEEP (*(.init)) - } =0 - _etext = .; - PROVIDE (etext = .); - .fini : - { - KEEP (*(.fini)) - } =0 - .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) } - .rodata1 : { *(.rodata1) } - .eh_frame_hdr : { *(.eh_frame_hdr) } - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(256) + (. & (256 - 1)); - .data : - { - *(.data) - *(.data.*) - *(.gnu.linkonce.d*) - SORT(CONSTRUCTORS) - } - .data1 : { *(.data1) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } - .jcr : { KEEP (*(.jcr)) } - .got : { *(.got.plt) *(.got) } - .dynamic : { *(.dynamic) } - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : - { - *(.sdata) - *(.sdata.*) - *(.gnu.linkonce.s.*) - } - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - __bss_start__ = .; - .sbss : - { - *(.dynsbss) - *(.sbss) - *(.sbss.*) - *(.scommon) - } - .bss : - { - *(.dynbss) - *(.bss) - *(.bss.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); - } - . = ALIGN(32 / 8); - _end = .; - _bss_end__ = . ; __bss_end__ = . ; __end__ = . ; - PROVIDE (end = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - .stack 0x80000 : { _stack = .; *(.stack) } - /* These must appear regardless of . */ -} diff --git a/libgloss/arm/elf-redboot.specs b/libgloss/arm/elf-redboot.specs deleted file mode 100644 index 8a00c3b..0000000 --- a/libgloss/arm/elf-redboot.specs +++ /dev/null @@ -1,8 +0,0 @@ -%rename link old_link - -*link: --T redboot.ld%s -Ttext 0x20000 %(old_link) - -*startfile: -crti%O%s crtbegin%O%s %{!pg:redboot-crt0%O%s} %{pg:redboot-crt0%O%s} redboot-syscalls%O%s - diff --git a/libgloss/arm/libcfunc.c b/libgloss/arm/libcfunc.c deleted file mode 100644 index 4f13193..0000000 --- a/libgloss/arm/libcfunc.c +++ /dev/null @@ -1,88 +0,0 @@ -/* Support files for GNU libc. Files in the C namespace go here. - Files in the system namespace (ie those that start with an underscore) - go in syscalls.c. - - Note: These functions are in a seperate file so that OS providers can - overrride the system call stubs (defined in syscalls.c) without having - to provide libc funcitons as well. */ - -#include "swi.h" -#include <errno.h> -#include <unistd.h> - -#ifdef ARM_RDI_MONITOR -static inline int -do_AngelSWI (int reason, void * arg) -{ - int value; - asm volatile ("mov r0, %1; mov r1, %2; " AngelSWIInsn " %a3; mov %0, r0" - : "=r" (value) /* Outputs */ - : "r" (reason), "r" (arg), "i" (AngelSWI) /* Inputs */ - : "r0", "r1", "lr" - /* Clobbers r0 and r1, and lr if in supervisor mode */); - return value; -} -#endif /* ARM_RDI_MONITOR */ - -void -abort (void) -{ - extern void _exit (int n); -#ifdef ARM_RDI_MONITOR - do_AngelSWI (AngelSWI_Reason_ReportException, - (void *) ADP_Stopped_RunTimeError); -#else - _exit(17); -#endif -} - -unsigned __attribute__((weak)) -alarm (unsigned seconds) -{ - (void)seconds; - return 0; -} - -clock_t _clock(void); -clock_t __attribute__((weak)) -clock(void) -{ - return _clock(); -} - -int _isatty(int fildes); -int __attribute__((weak)) -isatty(int fildes) -{ - return _isatty(fildes); -} - -int __attribute__((weak)) -pause(void) -{ - errno = ENOSYS; - return -1; -} - -#include <sys/types.h> -#include <time.h> - -unsigned __attribute__((weak)) -sleep(unsigned seconds) -{ - clock_t t0 = _clock(); - clock_t dt = seconds * CLOCKS_PER_SEC; - - while (_clock() - t0 < dt); - return 0; -} - -int __attribute__((weak)) -usleep(useconds_t useconds) -{ - clock_t t0 = _clock(); - clock_t dt = useconds / (1000000/CLOCKS_PER_SEC); - - while (_clock() - t0 < dt); - return 0; -} diff --git a/libgloss/arm/redboot-crt0.S b/libgloss/arm/redboot-crt0.S deleted file mode 100644 index 2499ac0..0000000 --- a/libgloss/arm/redboot-crt0.S +++ /dev/null @@ -1,127 +0,0 @@ - - .file "crt0.S" - -#define XGLUE(a,b) a##b -#define GLUE(a,b) XGLUE(a,b) - -#ifdef __USER_LABEL_PREFIX__ -#define SYM_NAME( name ) GLUE (__USER_LABEL_PREFIX__, name) -#else -#error __USER_LABEL_PREFIX is not defined -#endif - - .text - /* Setup the assembly entry point. */ -#ifdef __thumb2__ -.macro FUNC_START name - .global \name - .thumb_func -\name: -.endm - .syntax unified - .thumb -#else -.macro FUNC_START name - .global \name -\name: -.endm - .code 32 -#endif - FUNC_START SYM_NAME(start) - FUNC_START SYM_NAME(_start) - mov fp, #0 /* Null frame pointer. */ - mov r7, #0 /* Null frame pointer for Thumb. */ - - /* Enable interrupts for gdb debugging. */ -#ifdef __thumb2__ - cpsie if -#else - mrs r0, cpsr - bic r0, r0, #0xC0 - msr cpsr, r0 -#endif - - mov a2, #0 /* Second arg: fill value. */ - ldr a1, .LC1 /* First arg: start of memory block. */ - ldr a3, .LC2 - sub a3, a3, a1 /* Third arg: length of block. */ - -#ifdef GCRT0 - /* Zero out the bss without using memset. - Using memset is bad because it may be instrumented for - profiling, but at this point, the profiling data structures - have not been set up. - FIXME: This loop could be a lot more efficient. */ - subs a3, a3, #0 - beq 2f -1: strb a2, [a1] - subs a3, a3, #1 - add a1, a1, #1 - bne 1b -2: - /* Nothing to left to clear. */ -#endif - -#if defined(__thumb__) && !defined(__thumb2__) /* Enter Thumb mode. */ - add a4, pc, #1 /* Get the address of the Thumb block. */ - bx a4 /* Go there and start Thumb decoding. */ - - .code 16 - .global __change_mode - .thumb_func -__change_mode: -#endif - -#ifndef GCRT0 - bl SYM_NAME(memset) -#endif - bl SYM_NAME(__get_memtop) - sub r0, r0, #32 - mov sp, r0 - -#ifdef __USES_INITFINI__ - /* Some arm/elf targets use the .init and .fini sections - to create constructors and destructors, and for these - targets we need to call the _init function and arrange - for _fini to be called at program exit. */ - ldr r0, .Lfini - bl SYM_NAME (atexit) - bl SYM_NAME (_init) -#endif - - mov a1, #0 - ldr a2, .LC3 - mov a3, a2 - bl SYM_NAME(main) - 1: bl SYM_NAME(exit) - b 1b - .align 2 -.LC1: - .word __bss_start__ -.LC2: - .word __bss_end__ -.LC3: - .word 0 -#ifdef __USES_INITFINI__ -.Lfini: - .word SYM_NAME(_fini) -#endif -#if 0 -#ifdef __thumb__ - .code 16 -#endif - .global SYM_NAME(__syscall) -#ifdef __thumb__ - .thumb_func -#else - .align 4 -#endif -SYM_NAME(__syscall): - mov r12, lr -#ifdef __thumb__ - swi 0x18 -#else - swi 0x180001 -#endif - mov pc, r12 -#endif diff --git a/libgloss/arm/redboot-syscalls.c b/libgloss/arm/redboot-syscalls.c deleted file mode 100644 index 3b5a02b..0000000 --- a/libgloss/arm/redboot-syscalls.c +++ /dev/null @@ -1,284 +0,0 @@ -/* - * redboot-syscalls.c -- provide system call support for RedBoot - * - * Copyright (c) 1997, 2001, 2002 Red Hat, Inc. - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - * - */ - -#include <stdlib.h> -#include <sys/stat.h> -#include <sys/times.h> -#include <errno.h> -#include "syscall.h" - -// Use "naked" attribute to suppress C prologue/epilogue -static int __attribute__ ((naked)) __syscall(int func_no, ...) -{ - asm ("mov r12, lr\n"); -#ifdef __thumb__ - asm ("swi 0x18\n"); -#else - asm ("swi 0x180001\n"); -#endif - asm ("mov pc, r12\n"); -} - -int -_close(int fd) -{ - int err; - err = __syscall(SYS_close, fd); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - - -void -_exit(int stat) -{ - while (1) - __syscall(SYS_exit, stat); -} - - -int -_stat (const char *filename, struct stat *st) -{ - int err; - err = __syscall(SYS_stat, filename, st); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - -int -_fstat (int file, struct stat *st) -{ - int err; - err = __syscall(SYS_fstat, file, st); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - -int -_getpid(void) -{ - return 1; -} - - -int -_gettimeofday (void * tp, void * tzp) -{ - int err; - err = __syscall(SYS_gettimeofday, tp, tzp); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - - -int -isatty(int fd) -{ - int err; - err = __syscall(SYS_isatty, fd); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - - -int -_kill(int pid, int sig) -{ - if(pid == 1) - _exit(sig); - return 0; -} - - -off_t -_lseek(int fd, off_t offset, int whence) -{ - int err; - err = __syscall(SYS_lseek, fd, offset, whence); - if (err<0) - { - errno = -err; - return (off_t)-1; - } - return err; -} - - -int -_open(const char *buf, int flags, int mode) -{ - int err ; - err = __syscall(SYS_open, buf, flags, mode); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - - -int -_write(int fd, const char *buf, int nbytes) -{ - int err; - - err = __syscall(SYS_write, fd, buf, nbytes); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - - -void -print(char *ptr) -{ - char *p = ptr; - - while (*p != '\0') - p++; - - _write (1, ptr, p-ptr); -} - -void -_raise (void) -{ - return; -} - - -int -_read(int fd, char *buf, int nbytes) -{ - int err; - err = __syscall(SYS_read, fd, buf, nbytes); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - - -extern char end[]; /* end is set in the linker command file */ - -char *heap_ptr; - -char * -_sbrk (int nbytes) -{ - char *base; - - if (!heap_ptr) - heap_ptr = (char *)&end; - base = heap_ptr; - heap_ptr += nbytes; - - return base; -} - - -clock_t -_times(struct tms * tp) -{ - clock_t utime; - int err; - err = __syscall(SYS_times, &utime); - if (err) - utime = 0; - - if (tp) { - tp->tms_utime = utime; - tp->tms_stime = 0; - tp->tms_cutime = 0; - tp->tms_cstime = 0; - } - - return utime; -} - -int -_rename (const char *oldpath, const char *newpath) -{ - int err ; - err = __syscall(SYS_rename, oldpath, newpath); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - -int -_unlink (const char *pathname) -{ - int err ; - err = __syscall(SYS_unlink, pathname); - if (err<0) - { - errno = -err; - return -1; - } - return err; -} - -int -_system (const char *command) -{ - int err ; - err = __syscall(SYS_system, command); - return err; -} - -#define SYS_meminfo 1001 - -void * -__get_memtop(void) -{ - unsigned long totmem = 0, topmem = 0; - int numbanks; - - __syscall(SYS_meminfo, (unsigned long)&totmem, (unsigned long)&topmem, 0); - return (void*)topmem; -} diff --git a/libgloss/arm/swi.h b/libgloss/arm/swi.h deleted file mode 100644 index f5c9103..0000000 --- a/libgloss/arm/swi.h +++ /dev/null @@ -1,68 +0,0 @@ -/* SWI numbers for RDP (Demon) monitor. */ -#define SWI_WriteC 0x0 -#define SWI_Write0 0x2 -#define SWI_ReadC 0x4 -#define SWI_CLI 0x5 -#define SWI_GetEnv 0x10 -#define SWI_Exit 0x11 -#define SWI_EnterOS 0x16 - -#define SWI_GetErrno 0x60 -#define SWI_Clock 0x61 -#define SWI_Time 0x63 -#define SWI_Remove 0x64 -#define SWI_Rename 0x65 -#define SWI_Open 0x66 - -#define SWI_Close 0x68 -#define SWI_Write 0x69 -#define SWI_Read 0x6a -#define SWI_Seek 0x6b -#define SWI_Flen 0x6c - -#define SWI_IsTTY 0x6e -#define SWI_TmpNam 0x6f -#define SWI_InstallHandler 0x70 -#define SWI_GenerateError 0x71 - - -/* Now the SWI numbers and reason codes for RDI (Angel) monitors. */ -#define AngelSWI_ARM 0x123456 -#ifdef __thumb__ -#define AngelSWI 0xAB -#else -#define AngelSWI AngelSWI_ARM -#endif -/* For Thumb-2 code use the BKPT instruction instead of SWI. */ -#ifdef __thumb2__ -#define AngelSWIInsn "bkpt" -#define AngelSWIAsm bkpt -#else -#define AngelSWIInsn "swi" -#define AngelSWIAsm swi -#endif - -/* The reason codes: */ -#define AngelSWI_Reason_Open 0x01 -#define AngelSWI_Reason_Close 0x02 -#define AngelSWI_Reason_WriteC 0x03 -#define AngelSWI_Reason_Write0 0x04 -#define AngelSWI_Reason_Write 0x05 -#define AngelSWI_Reason_Read 0x06 -#define AngelSWI_Reason_ReadC 0x07 -#define AngelSWI_Reason_IsTTY 0x09 -#define AngelSWI_Reason_Seek 0x0A -#define AngelSWI_Reason_FLen 0x0C -#define AngelSWI_Reason_TmpNam 0x0D -#define AngelSWI_Reason_Remove 0x0E -#define AngelSWI_Reason_Rename 0x0F -#define AngelSWI_Reason_Clock 0x10 -#define AngelSWI_Reason_Time 0x11 -#define AngelSWI_Reason_System 0x12 -#define AngelSWI_Reason_Errno 0x13 -#define AngelSWI_Reason_GetCmdLine 0x15 -#define AngelSWI_Reason_HeapInfo 0x16 -#define AngelSWI_Reason_EnterSVC 0x17 -#define AngelSWI_Reason_ReportException 0x18 -#define ADP_Stopped_ApplicationExit ((2 << 16) + 38) -#define ADP_Stopped_RunTimeError ((2 << 16) + 35) diff --git a/libgloss/arm/syscall.h b/libgloss/arm/syscall.h deleted file mode 100644 index 759801f..0000000 --- a/libgloss/arm/syscall.h +++ /dev/null @@ -1,54 +0,0 @@ -/* General use syscall.h file. - The more ports that use this file, the simpler sim/common/nltvals.def - remains. */ - -#ifndef LIBGLOSS_SYSCALL_H -#define LIBGLOSS_SYSCALL_H - -/* Note: This file may be included by assembler source. */ - -/* These should be as small as possible to allow a port to use a trap type - instruction, which the system call # as the trap (the d10v for instance - supports traps 0..31). An alternative would be to define one trap for doing - system calls, and put the system call number in a register that is not used - for the normal calling sequence (so that you don't have to shift down the - arguments to add the system call number). Obviously, if these system call - numbers are ever changed, all of the simulators and potentially user code - will need to be updated. */ - -/* There is no current need for the following: SYS_execv, SYS_creat, SYS_wait, - etc. etc. Don't add them. */ - -/* These are required by the ANSI C part of newlib (excluding system() of - course). */ -#define SYS_exit 1 -#define SYS_open 2 -#define SYS_close 3 -#define SYS_read 4 -#define SYS_write 5 -#define SYS_lseek 6 -#define SYS_unlink 7 -#define SYS_getpid 8 -#define SYS_kill 9 -#define SYS_fstat 10 -/*#define SYS_sbrk 11 - not currently a system call, but reserved. */ - -/* ARGV support. */ -#define SYS_argvlen 12 -#define SYS_argv 13 - -/* These are extras added for one reason or another. */ -#define SYS_chdir 14 -#define SYS_stat 15 -#define SYS_chmod 16 -#define SYS_utime 17 -#define SYS_time 18 -#define SYS_gettimeofday 19 -#define SYS_times 20 -#define SYS_link 21 -/* These are additional syscalls in RedBoot. */ -#define SYS_rename 3001 -#define SYS_isatty 3002 -#define SYS_system 3003 - -#endif diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c deleted file mode 100644 index a6d2f74..0000000 --- a/libgloss/arm/syscalls.c +++ /dev/null @@ -1,663 +0,0 @@ -/* Support files for GNU libc. Files in the system namespace go here. - Files in the C namespace (ie those that do not start with an - underscore) go in .c. */ - -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/fcntl.h> -#include <stdio.h> -#include <string.h> -#include <time.h> -#include <sys/time.h> -#include <sys/times.h> -#include <errno.h> -#include <reent.h> -#include <unistd.h> -#include "swi.h" - -/* Forward prototypes. */ -int _system _PARAMS ((const char *)); -int _rename _PARAMS ((const char *, const char *)); -int _isatty _PARAMS ((int)); -clock_t _times _PARAMS ((struct tms *)); -int _gettimeofday _PARAMS ((struct timeval *, struct timezone *)); -int _unlink _PARAMS ((const char *)); -int _link _PARAMS ((void)); -int _stat _PARAMS ((const char *, struct stat *)); -int _fstat _PARAMS ((int, struct stat *)); -caddr_t _sbrk _PARAMS ((int)); -int _getpid _PARAMS ((int)); -int _kill _PARAMS ((int, int)); -void _exit _PARAMS ((int)); -int _close _PARAMS ((int)); -clock_t _clock _PARAMS ((void)); -int _swiclose _PARAMS ((int)); -int _open _PARAMS ((const char *, int, ...)); -int _swiopen _PARAMS ((const char *, int)); -int _write _PARAMS ((int, char *, int)); -int _swiwrite _PARAMS ((int, char *, int)); -int _lseek _PARAMS ((int, int, int)); -int _swilseek _PARAMS ((int, int, int)); -int _read _PARAMS ((int, char *, int)); -int _swiread _PARAMS ((int, char *, int)); -void initialise_monitor_handles _PARAMS ((void)); - -static int wrap _PARAMS ((int)); -static int error _PARAMS ((int)); -static int get_errno _PARAMS ((void)); -static int remap_handle _PARAMS ((int)); -static int do_AngelSWI _PARAMS ((int, void *)); -static int findslot _PARAMS ((int)); - -/* Register name faking - works in collusion with the linker. */ -register char * stack_ptr asm ("sp"); - - -/* following is copied from libc/stdio/local.h to check std streams */ -extern void _EXFUN(__sinit,(struct _reent *)); -#define CHECK_INIT(ptr) \ - do \ - { \ - if ((ptr) && !(ptr)->__sdidinit) \ - __sinit (ptr); \ - } \ - while (0) - -/* Adjust our internal handles to stay away from std* handles. */ -#define FILE_HANDLE_OFFSET (0x20) - -static int monitor_stdin; -static int monitor_stdout; -static int monitor_stderr; - -/* Struct used to keep track of the file position, just so we - can implement fseek(fh,x,SEEK_CUR). */ -typedef struct -{ - int handle; - int pos; -} -poslog; - -#define MAX_OPEN_FILES 20 -static poslog openfiles [MAX_OPEN_FILES]; - -static int -findslot (int fh) -{ - int i; - for (i = 0; i < MAX_OPEN_FILES; i ++) - if (openfiles[i].handle == fh) - break; - return i; -} - -#ifdef ARM_RDI_MONITOR - -static inline int -do_AngelSWI (int reason, void * arg) -{ - int value; - asm volatile ("mov r0, %1; mov r1, %2; " AngelSWIInsn " %a3; mov %0, r0" - : "=r" (value) /* Outputs */ - : "r" (reason), "r" (arg), "i" (AngelSWI) /* Inputs */ - : "r0", "r1", "r2", "r3", "ip", "lr", "memory", "cc" - /* Clobbers r0 and r1, and lr if in supervisor mode */); - /* Accordingly to page 13-77 of ARM DUI 0040D other registers - can also be clobbered. Some memory positions may also be - changed by a system call, so they should not be kept in - registers. Note: we are assuming the manual is right and - Angel is respecting the APCS. */ - return value; -} -#endif /* ARM_RDI_MONITOR */ - -/* Function to convert std(in|out|err) handles to internal versions. */ -static int -remap_handle (int fh) -{ - CHECK_INIT(_REENT); - - if (fh == STDIN_FILENO) - return monitor_stdin; - if (fh == STDOUT_FILENO) - return monitor_stdout; - if (fh == STDERR_FILENO) - return monitor_stderr; - - return fh - FILE_HANDLE_OFFSET; -} - -void -initialise_monitor_handles (void) -{ - int i; - - /* Open the standard file descriptors by opening the special - * teletype device, ":tt", read-only to obtain a descritpor for - * standard input and write-only to obtain a descriptor for standard - * output. Finally, open ":tt" in append mode to obtain a descriptor - * for standard error. Since this is a write mode, most kernels will - * probably return the same value as for standard output, but the - * kernel can differentiate the two using the mode flag and return a - * different descriptor for standard error. - */ - -#ifdef ARM_RDI_MONITOR - int volatile block[3]; - - block[0] = (int) ":tt"; - block[2] = 3; /* length of filename */ - block[1] = 0; /* mode "r" */ - monitor_stdin = do_AngelSWI (AngelSWI_Reason_Open, (void *) block); - - block[0] = (int) ":tt"; - block[2] = 3; /* length of filename */ - block[1] = 4; /* mode "w" */ - monitor_stdout = do_AngelSWI (AngelSWI_Reason_Open, (void *) block); - - block[0] = (int) ":tt"; - block[2] = 3; /* length of filename */ - block[1] = 8; /* mode "a" */ - monitor_stderr = do_AngelSWI (AngelSWI_Reason_Open, (void *) block); -#else - int fh; - const char * name; - - name = ":tt"; - asm ("mov r0,%2; mov r1, #0; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(name) - : "r0","r1"); - monitor_stdin = fh; - - name = ":tt"; - asm ("mov r0,%2; mov r1, #4; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(name) - : "r0","r1"); - monitor_stdout = fh; - - name = ":tt"; - asm ("mov r0,%2; mov r1, #8; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(name) - : "r0","r1"); - monitor_stderr = fh; -#endif - - for (i = 0; i < MAX_OPEN_FILES; i ++) - openfiles[i].handle = -1; - - openfiles[0].handle = monitor_stdin; - openfiles[0].pos = 0; - openfiles[1].handle = monitor_stdout; - openfiles[1].pos = 0; - openfiles[2].handle = monitor_stderr; - openfiles[2].pos = 0; -} - -static int -get_errno (void) -{ -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_Errno, NULL); -#else - register r0 asm("r0"); - asm ("swi %a1" : "=r"(r0) : "i" (SWI_GetErrno)); - return r0; -#endif -} - -static int -error (int result) -{ - errno = get_errno (); - return result; -} - -static int -wrap (int result) -{ - if (result == -1) - return error (-1); - return result; -} - -/* Returns # chars not! written. */ -int -_swiread (int file, - char * ptr, - int len) -{ - int fh = remap_handle (file); -#ifdef ARM_RDI_MONITOR - int block[3]; - - block[0] = fh; - block[1] = (int) ptr; - block[2] = len; - - return do_AngelSWI (AngelSWI_Reason_Read, block); -#else - asm ("mov r0, %1; mov r1, %2;mov r2, %3; swi %a0" - : /* No outputs */ - : "i"(SWI_Read), "r"(fh), "r"(ptr), "r"(len) - : "r0","r1","r2"); -#endif -} - -int -_read (int file, - char * ptr, - int len) -{ - int slot = findslot (remap_handle (file)); - int x = _swiread (file, ptr, len); - - if (x < 0) - return error (-1); - - if (slot != MAX_OPEN_FILES) - openfiles [slot].pos += len - x; - - /* x == len is not an error, at least if we want feof() to work. */ - return len - x; -} - -int -_swilseek (int file, - int ptr, - int dir) -{ - int res; - int fh = remap_handle (file); - int slot = findslot (fh); -#ifdef ARM_RDI_MONITOR - int block[2]; -#endif - - if (dir == SEEK_CUR) - { - if (slot == MAX_OPEN_FILES) - return -1; - ptr = openfiles[slot].pos + ptr; - dir = SEEK_SET; - } - -#ifdef ARM_RDI_MONITOR - if (dir == SEEK_END) - { - block[0] = fh; - ptr += do_AngelSWI (AngelSWI_Reason_FLen, block); - } - - /* This code only does absolute seeks. */ - block[0] = remap_handle (file); - block[1] = ptr; - res = do_AngelSWI (AngelSWI_Reason_Seek, block); -#else - if (dir == SEEK_END) - { - asm ("mov r0, %2; swi %a1; mov %0, r0" - : "=r" (res) - : "i" (SWI_Flen), "r" (fh) - : "r0"); - ptr += res; - } - - /* This code only does absolute seeks. */ - asm ("mov r0, %2; mov r1, %3; swi %a1; mov %0, r0" - : "=r" (res) - : "i" (SWI_Seek), "r" (fh), "r" (ptr) - : "r0", "r1"); -#endif - - if (slot != MAX_OPEN_FILES && res == 0) - openfiles[slot].pos = ptr; - - /* This is expected to return the position in the file. */ - return res == 0 ? ptr : -1; -} - -int -_lseek (int file, - int ptr, - int dir) -{ - return wrap (_swilseek (file, ptr, dir)); -} - -/* Returns #chars not! written. */ -int -_swiwrite ( - int file, - char * ptr, - int len) -{ - int fh = remap_handle (file); -#ifdef ARM_RDI_MONITOR - int block[3]; - - block[0] = fh; - block[1] = (int) ptr; - block[2] = len; - - return do_AngelSWI (AngelSWI_Reason_Write, block); -#else - asm ("mov r0, %1; mov r1, %2;mov r2, %3; swi %a0" - : /* No outputs */ - : "i"(SWI_Write), "r"(fh), "r"(ptr), "r"(len) - : "r0","r1","r2"); -#endif -} - -int -_write (int file, - char * ptr, - int len) -{ - int slot = findslot (remap_handle (file)); - int x = _swiwrite (file, ptr,len); - - if (x == -1 || x == len) - return error (-1); - - if (slot != MAX_OPEN_FILES) - openfiles[slot].pos += len - x; - - return len - x; -} - -int -_swiopen (const char * path, - int flags) -{ - int aflags = 0, fh; -#ifdef ARM_RDI_MONITOR - int block[3]; -#endif - - int i = findslot (-1); - - if (i == MAX_OPEN_FILES) - return -1; - - /* The flags are Unix-style, so we need to convert them. */ -#ifdef O_BINARY - if (flags & O_BINARY) - aflags |= 1; -#endif - - if (flags & O_RDWR) - aflags |= 2; - - if (flags & O_CREAT) - aflags |= 4; - - if (flags & O_TRUNC) - aflags |= 4; - - if (flags & O_APPEND) - { - aflags &= ~4; /* Can't ask for w AND a; means just 'a'. */ - aflags |= 8; - } - -#ifdef ARM_RDI_MONITOR - block[0] = (int) path; - block[2] = strlen (path); - block[1] = aflags; - - fh = do_AngelSWI (AngelSWI_Reason_Open, block); - -#else - asm ("mov r0,%2; mov r1, %3; swi %a1; mov %0, r0" - : "=r"(fh) - : "i" (SWI_Open),"r"(path),"r"(aflags) - : "r0","r1"); -#endif - - if (fh >= 0) - { - openfiles[i].handle = fh; - openfiles[i].pos = 0; - } - - return fh >= 0 ? fh + FILE_HANDLE_OFFSET : error (fh); -} - -int -_open (const char * path, - int flags, - ...) -{ - return wrap (_swiopen (path, flags)); -} - -int -_swiclose (int file) -{ - int myhan = remap_handle (file); - int slot = findslot (myhan); - - if (slot != MAX_OPEN_FILES) - openfiles[slot].handle = -1; - -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_Close, & myhan); -#else - asm ("mov r0, %1; swi %a0" :: "i" (SWI_Close),"r"(myhan):"r0"); -#endif -} - -int -_close (int file) -{ - return wrap (_swiclose (file)); -} - -int -_kill (int pid, int sig) -{ - (void)pid; (void)sig; -#ifdef ARM_RDI_MONITOR - /* Note: Both arguments are thrown away. */ - return do_AngelSWI (AngelSWI_Reason_ReportException, - (void *) ADP_Stopped_ApplicationExit); -#else - asm ("swi %a0" :: "i" (SWI_Exit)); -#endif -} - -void -_exit (int status) -{ - /* There is only one SWI for both _exit and _kill. For _exit, call - the SWI with the second argument set to -1, an invalid value for - signum, so that the SWI handler can distinguish the two calls. - Note: The RDI implementation of _kill throws away both its - arguments. */ - _kill(status, -1); -} - -int __attribute__((weak)) -_getpid (int n) -{ - return 1; - n = n; -} - -caddr_t -_sbrk (int incr) -{ - extern char end asm ("end"); /* Defined by the linker. */ - static char * heap_end; - char * prev_heap_end; - - if (heap_end == NULL) - heap_end = & end; - - prev_heap_end = heap_end; - - if (heap_end + incr > stack_ptr) - { - /* Some of the libstdc++-v3 tests rely upon detecting - out of memory errors, so do not abort here. */ -#if 0 - extern void abort (void); - - _write (1, "_sbrk: Heap and stack collision\n", 32); - - abort (); -#else - errno = ENOMEM; - return (caddr_t) -1; -#endif - } - - heap_end += incr; - - return (caddr_t) prev_heap_end; -} - -int __attribute__((weak)) -_fstat (int file, struct stat * st) -{ - memset (st, 0, sizeof (* st)); - st->st_mode = S_IFCHR; - st->st_blksize = 1024; - return 0; - file = file; -} - -int __attribute__((weak)) -_stat (const char *fname, struct stat *st) -{ - int file; - - /* The best we can do is try to open the file readonly. If it exists, - then we can guess a few things about it. */ - if ((file = _open (fname, O_RDONLY)) < 0) - return -1; - - memset (st, 0, sizeof (* st)); - st->st_mode = S_IFREG | S_IREAD; - st->st_blksize = 1024; - _swiclose (file); /* Not interested in the error. */ - return 0; -} - -int __attribute__((weak)) -_link (void) -{ - errno = ENOSYS; - return -1; -} - -int -_unlink (const char *path) -{ -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_Remove, &path); -#else - (void)path; - asm ("swi %a0" :: "i" (SWI_Remove)); -#endif -} - -int -_gettimeofday (struct timeval * tp, struct timezone * tzp) -{ - - if (tp) - { - /* Ask the host for the seconds since the Unix epoch. */ -#ifdef ARM_RDI_MONITOR - tp->tv_sec = do_AngelSWI (AngelSWI_Reason_Time,NULL); -#else - { - int value; - asm ("swi %a1; mov %0, r0" : "=r" (value): "i" (SWI_Time) : "r0"); - tp->tv_sec = value; - } -#endif - tp->tv_usec = 0; - } - - /* Return fixed data for the timezone. */ - if (tzp) - { - tzp->tz_minuteswest = 0; - tzp->tz_dsttime = 0; - } - - return 0; -} - -/* Return a clock that ticks at 100Hz. */ -clock_t -_clock (void) -{ - clock_t timeval; - -#ifdef ARM_RDI_MONITOR - timeval = do_AngelSWI (AngelSWI_Reason_Clock,NULL); -#else - asm ("swi %a1; mov %0, r0" : "=r" (timeval): "i" (SWI_Clock) : "r0"); -#endif - return timeval; -} - -/* Return a clock that ticks at 100Hz. */ -clock_t -_times (struct tms * tp) -{ - clock_t timeval = _clock(); - - if (tp) - { - tp->tms_utime = timeval; /* user time */ - tp->tms_stime = 0; /* system time */ - tp->tms_cutime = 0; /* user time, children */ - tp->tms_cstime = 0; /* system time, children */ - } - - return timeval; -}; - - -int -_isatty (int fd) -{ -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_IsTTY, &fd); -#else - (void)fd; - asm ("swi %a0" :: "i" (SWI_IsTTY)); -#endif -} - -int -_system (const char *s) -{ -#ifdef ARM_RDI_MONITOR - return do_AngelSWI (AngelSWI_Reason_System, &s); -#else - (void)s; - asm ("swi %a0" :: "i" (SWI_CLI)); -#endif -} - -int -_rename (const char * oldpath, const char * newpath) -{ -#ifdef ARM_RDI_MONITOR - const char *block[2] = {oldpath, newpath}; - return do_AngelSWI (AngelSWI_Reason_Rename, block); -#else - (void)oldpath; (void)newpath; - asm ("swi %a0" :: "i" (SWI_Rename)); -#endif -} diff --git a/libgloss/arm/trap.S b/libgloss/arm/trap.S deleted file mode 100644 index 21b6937..0000000 --- a/libgloss/arm/trap.S +++ /dev/null @@ -1,95 +0,0 @@ - /* Run-time exception support */ -#if !defined(__thumb2__) -#include "swi.h" - -/* .text is used instead of .section .text so it works with arm-aout too. */ - .text - .align 0 - .global __rt_stkovf_split_big - .global __rt_stkovf_split_small - -/* The following functions are provided for software stack checking. - If hardware stack-checking is being used then the code can be - compiled without the PCS entry checks, and simply rely on VM - management to extend the stack for a thread. - - The stack extension event occurs when the PCS function entry code - would result in a stack-pointer beneath the stack-limit register - value. The system relies on the following map: - - +-----------------------------------+ <-- end of stack block - | ... | - | ... | - | active stack | - | ... | <-- sp (stack-pointer) somewhere in here - | ... | - +-----------------------------------+ <-- sl (stack-limit) - | stack-extension handler workspace | - +-----------------------------------+ <-- base of stack block - - The "stack-extension handler workspace" is an amount of memory in - which the stack overflow support code must execute. It must be - large enough to deal with the worst case path through the extension - code. At the moment the compiler expects this to be AT LEAST - 256bytes. It uses this fact to code functions with small local - data usage within the overflow space. - - In a true target environment We may need to increase the space - between sl and the true limit to allow for the stack extension - code, SWI handlers and for undefined instruction handlers of the - target environment. */ - -__rt_stkovf_split_small: - mov ip,sp @ Ensure we can calculate the stack required - @ and fall through to... -__rt_stkovf_split_big: - @ in: sp = current stack-pointer (beneath stack-limit) - @ sl = current stack-limit - @ ip = low stack point we require for the current function - @ lr = return address into the current function - @ fp = frame-pointer - @ original sp --> +----------------------------------+ - @ | pc (12 ahead of PCS entry store) | - @ current fp ---> +----------------------------------+ - @ | lr (on entry) pc (on exit) | - @ +----------------------------------+ - @ | sp ("original sp" on entry) | - @ +----------------------------------+ - @ | fp (on entry to function) | - @ +----------------------------------+ - @ | | - @ | ..argument and work registers.. | - @ | | - @ current sp ---> +----------------------------------+ - @ - @ The "current sl" is somewhere between "original sp" and "current sp" - @ but above "true sl". The "current sl" should be at least 256bytes - @ above the "true sl". The 256byte stack guard should be large enough - @ to deal with the worst case function entry stacking (160bytes) plus - @ the stack overflow handler stacking requirements, plus the stack - @ required for the memory allocation routines. - @ - @ Normal PCS entry (before stack overflow check) can stack 16 - @ standard registers (64bytes) and 8 floating point registers - @ (96bytes). This gives a minimum stack guard of 160bytes (excluding - @ the stack required for the code). (Actually only a maximum of - @ 14standard registers are ever stacked on entry to a function). - @ - @ NOTE: Structure returns are performed by the caller allocating a - @ dummy space on the stack and passing in a "phantom" arg1 into - @ the function. This means that we do not need to worry about - @ preserving the stack under "sp" even on function return. - @ - @ Code should never poke values beneath sp. The sp register - @ should always be "dropped" first to cover the data. This - @ protects the data against any events that may try and use - @ the stack. - - SUB ip, sp, ip @ extra stack required for function - @ Add stack extension code here. If desired a new stack chunk - @ can be allocated, and the register state updated suitably. - - @ We now know how much extra stack the function requires. - @ Terminate the program for the moment: - swi SWI_Exit -#endif diff --git a/libgloss/configure b/libgloss/configure index 1b2f623..17845c9 100755 --- a/libgloss/configure +++ b/libgloss/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -567,7 +578,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:571: checking for a BSD compatible install" >&5 +echo "configure:582: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -648,7 +659,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:652: checking host system type" >&5 +echo "configure:663: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -669,7 +680,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:673: checking target system type" >&5 +echo "configure:684: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -687,7 +698,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:691: checking build system type" >&5 +echo "configure:702: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -717,15 +728,12 @@ else fi case "${target}" in - i[3456]86-*-elf*|i[3456]86-*-coff*) + i386-*-elf*) configdirs="${configdirs} i386 testsuite"; ;; m32r-*-*) configdirs="${configdirs} m32r testsuite" ;; - m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) - configdirs="m68hc11 testsuite" - ;; m68*-*-*) configdirs="${configdirs} m68k testsuite" ;; @@ -753,9 +761,6 @@ case "${target}" in *arm-wince-pe) configdirs="wince" ;; - *arm-*-*) - configdirs="${configdirs} arm" - ;; sh*-*-pe) configdirs="wince" ;; @@ -774,47 +779,15 @@ case "${target}" in mn10300-*-*) configdirs="${configdirs} mn10300 testsuite" ;; - cris-*-* | crisv32-*-*) - configdirs="${configdirs} cris testsuite" - ;; - crx-*-*) - configdirs="${configdirs} crx" - ;; d30v-*-*) configdirs="${configdirs} d30v testsuite" ;; fr30-*-*) configdirs="${configdirs} fr30 testsuite" ;; - frv*-*-*) - configdirs="${configdirs} frv testsuite" - ;; mcore-*-*) configdirs="${configdirs} mcore testsuite" ;; - mt-*-*) - configdirs="${configdirs} mt testsuite";; - xstormy16-*-*) - configdirs="${configdirs} xstormy16 testsuite" - ;; - m32c-*-*) - configdirs="${configdirs} m32c testsuite" - ;; - strongarm-*-elf | strongarm-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - arm*-*-elf | arm*-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - ep9312-*-elf | ep9312-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - xscale-*-elf | xscale-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - iq2000-*-*) - configdirs="${configdirs} iq2000 testsuite";; - esac # temporarily strip out testsuite @@ -834,7 +807,7 @@ subdirs="$configdirs" # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:838: checking for $ac_word" >&5 +echo "configure:826: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -864,7 +837,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:868: checking for $ac_word" >&5 +echo "configure:856: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -913,7 +886,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:917: checking whether we are using GNU C" >&5 +echo "configure:905: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -922,7 +895,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -937,7 +910,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:941: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:929: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -969,7 +942,7 @@ AS=${AS-as} # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:973: checking for $ac_word" >&5 +echo "configure:961: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1003,7 +976,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1007: checking for $ac_word" >&5 +echo "configure:995: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/libgloss/configure.in b/libgloss/configure.in index 3eca088..9d9edd0 100644 --- a/libgloss/configure.in +++ b/libgloss/configure.in @@ -28,15 +28,12 @@ else fi case "${target}" in - i[[3456]]86-*-elf*|i[[3456]]86-*-coff*) + i386-*-elf*) configdirs="${configdirs} i386 testsuite"; ;; m32r-*-*) configdirs="${configdirs} m32r testsuite" ;; - m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) - configdirs="m68hc11 testsuite" - ;; m68*-*-*) configdirs="${configdirs} m68k testsuite" ;; @@ -64,9 +61,6 @@ case "${target}" in *arm-wince-pe) configdirs="wince" ;; - *arm-*-*) - configdirs="${configdirs} arm" - ;; sh*-*-pe) configdirs="wince" ;; @@ -85,47 +79,15 @@ case "${target}" in mn10300-*-*) configdirs="${configdirs} mn10300 testsuite" ;; - cris-*-* | crisv32-*-*) - configdirs="${configdirs} cris testsuite" - ;; - crx-*-*) - configdirs="${configdirs} crx" - ;; d30v-*-*) configdirs="${configdirs} d30v testsuite" ;; fr30-*-*) configdirs="${configdirs} fr30 testsuite" ;; - frv*-*-*) - configdirs="${configdirs} frv testsuite" - ;; mcore-*-*) configdirs="${configdirs} mcore testsuite" ;; - mt-*-*) - configdirs="${configdirs} mt testsuite";; - xstormy16-*-*) - configdirs="${configdirs} xstormy16 testsuite" - ;; - m32c-*-*) - configdirs="${configdirs} m32c testsuite" - ;; - strongarm-*-elf | strongarm-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - arm*-*-elf | arm*-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - ep9312-*-elf | ep9312-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - xscale-*-elf | xscale-*-coff) - configdirs="${configdirs} arm testsuite"; - ;; - iq2000-*-*) - configdirs="${configdirs} iq2000 testsuite";; - esac # temporarily strip out testsuite diff --git a/libgloss/cris/Makefile.in b/libgloss/cris/Makefile.in deleted file mode 100644 index ca3ec38..0000000 --- a/libgloss/cris/Makefile.in +++ /dev/null @@ -1,277 +0,0 @@ -# -# libgloss Makefile.in for CRIS. Copied and modified from mcore long ago. -# - -DESTDIR = -VPATH = @srcdir@ -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -CFLAGS = -g -SCRIPTS = - -OBJS = outbyte.o - -# Beware: GNU make construct used (shell call). Since GCC at the time -# of this writing requires GNU make >= 3.79.1, this should pose no -# problem. -SYSCALL_CFILES := $(shell sed -ne 's/^cat > \([^ ]*\).*/\1/p' < $(srcdir)/gensyscalls) - -# Here is all of the simulator stuff. -# Actually, now it's just the GNU/Linux stuff, as that's also the -# simulator ABI. The name of the library is different, though. -SIM_SCRIPTS = -SIM_LDFLAGS = -SIM_BSP = libsyssim.a -SIM_CRT0 = $(LIN_CRT0) -SIM_OBJS = $(LIN_OBJS) -SIM_TEST = sim-test -SIM_INSTALL = install-sim - -# Here is all of the GNU/Linux stuff. At present we don't build newlib -# and libgloss for cris*-linux-gnu*, but it's nice to keep that as an -# option. -LIN_PREFIX = -LIN_LDFLAGS = -LIN_BSP = libsyslinux.a -LIN_CRT0 = lcrt0.o -LIN_EXTRA = crti.o crtn.o crt1.o -LIN_OBJS = close.o execve.o exit.o fcntl.o fork.o fstat.o getpid.o \ - gettod.o isatty.o kill.o link.o lseek.o open.o read.o \ - rename.o sbrk.o stat.o times.o unlink.o wait.o write.o ${OBJS} -LIN_SCRIPTS = -LIN_TEST = -LIN_INSTALL = install-lin - -# In (over)due time, here will be all stuff necessary for a development -# board. -BSP_PREFIX = -BSP_LDFLAGS = -BSP_BSP = libbsp.a -BSP_CRT0 = crt0.o -BSP_OBJS = ${OBJS} setup.o -BSP_SCRIPTS = -BSP_TEST = -BSP_INSTALL = install-bsp - -ALL_INSTALL_FILES = \ - ${SIM_CRT0} ${SIM_EXTRA} ${SIM_BSP} \ - ${LIN_CRT0} ${LIN_EXTRA} ${LIN_BSP} \ - ${BSP_CRT0} ${BSP_EXTRA} ${BSP_BSP} - -ALL_INSTALL_FILES_NEWLIB_COPY = \ - $(sort ${ALL_INSTALL_FILES:%=$(objroot)/newlib/%}) $(objroot)/newlib/libnosys.a - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -# Need to augment the definition from host_makefile_frag above. -INCLUDES += -I$(srcdir) - -all: ${ALL_INSTALL_FILES} ${ALL_INSTALL_FILES_NEWLIB_COPY} libnosys.a - -# -# Here's where we build the board support packages for each target. -# -${SIM_BSP}: ${SIM_OBJS} - ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} - ${RANLIB} ${SIM_BSP} - -${BSP_BSP}: ${BSP_OBJS} - ${AR} ${ARFLAGS} ${BSP_BSP} ${BSP_OBJS} - ${RANLIB} ${BSP_BSP} - -${LIN_BSP}: ${LIN_OBJS} - ${AR} ${ARFLAGS} ${LIN_BSP} ${LIN_OBJS} - ${RANLIB} ${LIN_BSP} - -# We need a link to libnosys.a in this directory, since this is the -# directory used when test-compiling for configuration for other parts and -# when running the testsuite. By using a symbolic link, it does not -# matter whether libnosys.a is built yet when the rule is executed. -libnosys.a: - ln -s ../libnosys/libnosys.a - -# Toplevel build rules for various other libraries have gcc -B options -# applied so the newlib build directory is reached, but not the target -# libgloss directory (whose name is unknown to the toplevel configury -# anyway). Configury tests that check for a successful link therefore -# fail; they can't find crt0.o and non-libc.a+libm.a libraries. We copy -# over all files we would install to the neighboring newlib directory. -# Only the default crt0.o and libraries are needed, but we do them all for -# completeness. They're however installed from here, not from the newlib -# build directory. -$(objroot)/newlib/%: % - cp -p $^ $@ - -# This rule, being more specific, overrides the pattern rule above. -$(objroot)/newlib/libnosys.a: - ln -s ../libgloss/libnosys/libnosys.a $(objroot)/newlib - -# -# Build a test program for each target board. Just trying to get -# it to link is a good test, so we ignore all the errors for now. -# -# -# Here's where we build the test programs for each target. -# -.PHONY: test -test: ${SIM_TEST} ${BSP_TEST} - -sim-test: sim-test.x sim-test.dis - -sim-test.x: test.o ${SIM_CRT0} ${SIM_BSP} - ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \ - ${SIM_CRT0} test.o \ - -o sim-test.x ${LIBS_FOR_TARGET} -lc ${SIM_BSP} - -sim-test.dis: sim-test.x - ${OBJDUMP} -d sim-test.x > sim-test.dis - - -test.o: ${srcdir}/m68k/test.c - -# Debug usage. -.c.S: - ${CC} ${CFLAGS_FOR_TARGET} $(INCLUDES) $(CFLAGS) -c $< - -# Caveat: for the -melinux multilib in cris-axis-aout, crt0.o is the -# same as lcrt0.o, while elsewhere (other cris-axis-aout multilib and -# cris-axis-elf) it's crt0.c compiled. -crt0.o: lcrt0.o crt0.S - case "${MULTISUBDIR}" in \ - */elinux) \ - cp -p $< $@; st=$$?;; \ - *) \ - case "$?" in \ - *crt0.S) \ - $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -xassembler-with-cpp -c $(srcdir)/crt0.S;; \ - *) touch $@;; \ - esac; \ - st=$$?;; \ - esac; exit $$st - -crt1.o: lcrt0.o - cp -p $< $@ - -clean mostlyclean: - rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(BSP_BSP) $(LIN_BSP) libnosys.a - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status *~ - -.PHONY: install info install-info clean-info -install: ${SIM_INSTALL} ${BSP_INSTALL} ${LIN_INSTALL} - -# Note that bsp and elinux objects are exclusive: do not overlap -# installed files. -install-bsp: - case "${MULTISUBDIR}" in \ - */elinux) ;; \ - *) set -e; \ - for x in ${BSP_CRT0} ${BSP_BSP} ${BSP_SCRIPTS}; do \ - ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done;; \ - esac - -install-sim: - set -e; \ - for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do \ - ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done - -install-lin: - case "${MULTISUBDIR}" in \ - */elinux) \ - ${INSTALL_DATA} ${LIN_CRT0} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/crt0.o; \ - set -e; \ - for x in ${LIN_BSP} ${LIN_SCRIPTS}; do \ - ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done;; \ - *) \ - set -e; \ - for x in ${LIN_BSP} ${LIN_SCRIPTS} ${LIN_EXTRA}; do \ - ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; \ - done;; \ - esac - -doc: -info: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck - -$(SYSCALL_CFILES): syscalls.stamp - -syscalls.stamp: gensyscalls - $(SHELL) $(srcdir)/gensyscalls - touch $@ - -# Dependencies that could and should be auto-generated. -close.o: close.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -execve.o: execve.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -exit.o: exit.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -fork.o: fork.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -fstat.o: fstat.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -fcntl.o: fcntl.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -getpid.o: getpid.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -gettod.o: gettod.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -isatty.o: isatty.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -kill.o: kill.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -link.o: link.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -lseek.o: lseek.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -open.o: open.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -read.o: read.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -rename.o: rename.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -sbrk.o: sbrk.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -stat.o: stat.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -times.o: times.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -unlink.o: unlink.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -wait.o: wait.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -write.o: write.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -lcrt0.o: lcrt0.c linunistd.h $(objdir)/../libnosys/config.h $(srcdir)/../libnosys/warning.h -setup.o: setup.S -crti.o: crti.c -crtn.o: crtn.c diff --git a/libgloss/cris/configure b/libgloss/cris/configure deleted file mode 100755 index edda802..0000000 --- a/libgloss/cris/configure +++ /dev/null @@ -1,1203 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=Makefile.in - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:744: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:823: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:883: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/libgloss/cris/configure.in b/libgloss/cris/configure.in deleted file mode 100644 index 9ac0d45..0000000 --- a/libgloss/cris/configure.in +++ /dev/null @@ -1,90 +0,0 @@ -dnl This file is based on ../mcore/configure.in -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(Makefile.in) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) diff --git a/libgloss/cris/crt0.S b/libgloss/cris/crt0.S deleted file mode 100644 index a48efce..0000000 --- a/libgloss/cris/crt0.S +++ /dev/null @@ -1,83 +0,0 @@ -/* Generic simplistic start-up-stub for CRIS/CRISv32. - Copyright (C) 1993-2005 Axis Communications. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Neither the name of Axis Communications nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS - COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. */ - -#undef cris -#undef L -#ifdef __NO_UNDERSCORES__ -#define L(x) x -#else -#define L(x) _ ## x -#endif - -; Rudimentary v0..v32-compatible startup stub. - -#ifdef __ELF__ - .section .startup,"ax" -#endif - .global __start - nop -__start: - ba 0f - nop - - .rept 256 - 2 - .dword _.int - .endr - -_.int: -#ifdef __arch_common_v10_v32 - ; This is just to allow the multilib to compile without - ; hackery: the "common" subset doesn't recognize - ; interrupt-return insns. -#elif __CRIS_arch_version >= 32 - rete - rfe -#else - reti - nop -#endif - -0: - move.d __setup,$r9 - jsr $r9 - nop -#ifdef __ELF__ - jsr L(_init) - nop - move.d L(_fini),$r10 - jsr L(atexit) - nop -#endif - jsr L(main) - nop - jsr L(exit) - nop -0: - nop - ba 0b - nop diff --git a/libgloss/cris/crti.c b/libgloss/cris/crti.c deleted file mode 100644 index ceb71e5..0000000 --- a/libgloss/cris/crti.c +++ /dev/null @@ -1,77 +0,0 @@ -/* Executable and DSO init/fini start for cris*-axis-linux-gnu and simulators - Copyright (C) 2000, 2001, 2004, 2005 Axis Communications. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Neither the name of Axis Communications nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS - COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. */ - -#ifdef __ELF__ -__asm__ (".syntax no_register_prefix"); - -__asm__ (".section .init\n" -#ifdef __NO_UNDERSCORES__ - " .globl _init\n" - "_init:\n" -#else /* not __NO_UNDERSCORES__ */ - " .globl __init\n" - "__init:\n" -#endif /* not __NO_UNDERSCORES__ */ - "\tsubq 4,sp\n" - "\tmove srp,[sp]\n" -#ifdef __PIC__ - "\tsubq 4,sp\n" - "\tmove.d r0,[sp]\n" -#if __CRIS_arch_version >= 32 - "\tlapc _GLOBAL_OFFSET_TABLE_,$r0\n" -#else /* not __CRIS_arch_version >= 32 */ - "\tmove.d $pc,$r0\n" - "\tsub.d .:GOTOFF,$r0\n" -#endif /* not __CRIS_arch_version >= 32 */ -#endif /* __PIC__ */ - - "\t.section .fini\n" -#ifdef __NO_UNDERSCORES__ - " .globl _fini\n" - "_fini:\n" -#else /* not __NO_UNDERSCORES__ */ - " .globl __fini\n" - "__fini:\n" -#endif /* not __NO_UNDERSCORES__ */ - "\tsubq 4,sp\n" - "\tmove srp,[sp]\n" -#ifdef __PIC__ - "\tsubq 4,sp\n" - "\tmove.d r0,[sp]\n" -#if __CRIS_arch_version >= 32 - "\tlapc _GLOBAL_OFFSET_TABLE_,$r0\n" -#else /* not __CRIS_arch_version >= 32 */ - "\tmove.d $pc,$r0\n" - "\tsub.d .:GOTOFF,$r0\n" -#endif /* not __CRIS_arch_version >= 32 */ -#endif /* __PIC__ */ -); - -#else /* not __ELF__ */ -extern int Dummy; -#endif /* not __ELF__ */ diff --git a/libgloss/cris/crtn.c b/libgloss/cris/crtn.c deleted file mode 100644 index 012e5b1..0000000 --- a/libgloss/cris/crtn.c +++ /dev/null @@ -1,51 +0,0 @@ -/* Executable and DSO init/fini end for cris*-axis-linux-gnu and simulators - Copyright (C) 2000, 2001, 2004, 2005 Axis Communications. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Neither the name of Axis Communications nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS - COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. */ - -#ifdef __ELF__ - -__asm__ (".syntax no_register_prefix"); - -__asm__ (".section .init\n" -#ifdef __PIC__ - "\tmove.d [sp+],r0\n" -#endif - "\tmove.d [sp+],r9\n" - "\tjump r9\n" - "\tnop\n" - - "\t.section .fini\n" -#ifdef __PIC__ - "\tmove.d [sp+],r0\n" -#endif - "\tmove.d [sp+],r9\n" - "\tjump r9\n" - "\tnop\n"); - -#else -extern int Dummy; -#endif diff --git a/libgloss/cris/gensyscalls b/libgloss/cris/gensyscalls deleted file mode 100644 index 9df8b03..0000000 --- a/libgloss/cris/gensyscalls +++ /dev/null @@ -1,252 +0,0 @@ -#! /bin/sh -# Copyright (C) 2005 Axis Communications. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# 2. Neither the name of Axis Communications nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS -# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS -# COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# To avoid an abundance of copyright/license messages for boilerplate -# code, we instead generate them from this file. Generating the -# function code could also be done automatically, but at the cost of -# slightly more intricate build machinery and/or scattered syscall -# information. Beware that the cat-lines must match the sed regexp -# "^cat > \([^ ]*\).*". - -lu='/* -*- buffer-read-only: t -*- - THIS FILE IS AUTOMATICALLY GENERATED - FROM "'$0'". */ -#include "linunistd.h" -#define R(x) return (x); } -' -lui="$lu int" -r=") { R (_Sys_" - -cat > close.c <<EOF -$lui _close (int fd${r}close (fd)) -EOF -cat > execve.c <<EOF -$lui _execve (char *path, char **argv, char **env${r}execve (path, argv, env)) -EOF -cat > exit.c <<EOF -$lu void _exit (int val) { _Sys_exit (val); /* Appease GCC: */ while (1) ; } -EOF -cat > fcntl.c <<EOF -$lui _fcntl (int fd, int cmd, long arg${r}fcntl (fd, cmd, arg)) -EOF -cat > fork.c <<EOF -$lui _fork (void${r}fork ()) -EOF -cat > fstat.c <<EOF -$lu#include <string.h> -#include <sys/stat.h> -int -_fstat (int fd, struct stat *buf) -{ - struct new_stat ks; - int retval = _Sys_fstat (fd, &ks); - - /* Blank before filling it in. */ - memset (buf, 0, sizeof (*buf)); - - /* We have to translate from the linux struct new_stat. - It seems we don't have to translate the contents, though. */ - buf->st_dev = ks.st_dev; - buf->st_ino = ks.st_ino; - buf->st_mode = ks.st_mode; - buf->st_nlink = ks.st_nlink; - buf->st_uid = ks.st_uid; - buf->st_gid = ks.st_gid; - buf->st_rdev = ks.st_rdev; - buf->st_size = ks.st_size; - buf->st_blksize = ks.st_blksize; - buf->st_blocks = ks.st_blocks; - buf->st_atime = ks.st_atime; - buf->st_mtime = ks.st_mtime; - buf->st_ctime = ks.st_ctime; - R (retval) -EOF -cat > getpid.c <<EOF -$lui _getpid (void${r}getpid ()) -EOF -cat > gettod.c <<EOF -$lu#include <sys/time.h> -#include <sys/times.h> -int -_gettimeofday (struct timeval *tp, struct timezone *tzp -${r}gettimeofday (tp, tzp)) -EOF -cat > isatty.c <<EOF -$lu -typedef unsigned int tcflag_t; -typedef unsigned char cc_t; -#define NCCS 19 - -struct termios { - tcflag_t c_iflag; /* input mode flags */ - tcflag_t c_oflag; /* output mode flags */ - tcflag_t c_cflag; /* control mode flags */ - tcflag_t c_lflag; /* local mode flags */ - cc_t c_line; /* line discipline */ - cc_t c_cc[NCCS]; /* control characters */ -}; - -/* From asm-etrax100/ioctls.h: beware of updates. */ -#define TCGETS 0x5401 - -/* Note that this name does not have a prepended underscore. */ -int -isatty (int fd) -{ - struct termios dummy; - int save_errno = errno; - int ret = _Sys_ioctl (fd, TCGETS, (unsigned long) &dummy); - errno = save_errno; - R (ret == 0) -EOF -cat > kill.c <<EOF -$lui _kill (int pid, int sig${r}kill (pid, sig)) -EOF -cat > link.c <<EOF -$lui _link (const char *old, const char *new${r}link (old, new)) -EOF -cat > lseek.c <<EOF -$lui _lseek (int fd, int offset, int whence${r}lseek (fd, offset, whence)) -EOF -cat > open.c <<EOF -$lui _open (const char *fnam, int flags, int mode${r}open (fnam, flags, mode)) -EOF -cat > read.c <<EOF -$lui _read (int fd, char *buf, int nbytes${r}read (fd, buf, nbytes)) -EOF -cat > rename.c <<EOF -$lui _rename (const char *old, const char *new${r}rename (old, new)) -EOF -cat > sbrk.c <<EOF -$lu -/* From asm-etrax100/mman.h: beware of updates. */ -#define PROT_READ 0x1 /* page can be read */ -#define PROT_WRITE 0x2 /* page can be written */ -#define MAP_ANONYMOUS 0x20 /* don't use a file */ -char * -_sbrk (int d) -{ - static long last_alloc = 0; - - /* FIXME: Things are a whole lot different than elinux. */ -#ifdef __elinux__ - - /* We can't promise linear memory from a predetermined location. - We're NO_MM. We're paria. We have to rely on tweaks and unclean - behavior. We abuse the fact that the malloc function in newlib - accepts nonlinear chunks in return to its sbrk calls (with a minor - patch). */ - - /* We use an "old" type mmap, which takes a pointer to a vector of 6 - longs where the parameters are stored. */ - long buffer[6]; - - /* We can't return memory. Well we could, but we would have to keep a - list of previous allocations. FIXME: Seems reasonable to do that - later. */ - if (d < 0) - return (char *) last_alloc; - - buffer[3] = MAP_ANONYMOUS; /* Not associated with a file. */ - buffer[4] = -1; /* No file. */ - buffer[0] = 0; /* Address 0: let mmap pick one. */ - buffer[1] = d; /* Length. */ - buffer[2] = (PROT_READ | PROT_WRITE); /* Protection flags. */ - buffer[5] = 0; /* Offset into file. */ - - last_alloc = _Sys_mmap (buffer); - - return (char *) last_alloc; - -#else /* not __elinux__ */ - - long prev_brk; - - if (last_alloc == 0) - { - last_alloc = _Sys_brk (0); - - if (last_alloc < 0) - return (char *) -1; - } - - prev_brk = last_alloc; - - if (_Sys_brk (last_alloc + d) < last_alloc + d) - return (char *) -1; - - last_alloc += d; - - return (char *) prev_brk; -#endif -} -EOF -cat > stat.c <<EOF -$lu#include <string.h> -#include <sys/stat.h> -int -_stat (const char *path, struct stat *buf) -{ - struct new_stat ks; - int retval = _Sys_stat (path, &ks); - - /* Blank before filling it in. */ - memset (buf, 0, sizeof (*buf)); - - /* We have to translate from the linux struct new_stat. - It seems we don't have to translate the contents, though. */ - buf->st_dev = ks.st_dev; - buf->st_ino = ks.st_ino; - buf->st_mode = ks.st_mode; - buf->st_nlink = ks.st_nlink; - buf->st_uid = ks.st_uid; - buf->st_gid = ks.st_gid; - buf->st_rdev = ks.st_rdev; - buf->st_size = ks.st_size; - buf->st_blksize = ks.st_blksize; - buf->st_blocks = ks.st_blocks; - buf->st_atime = ks.st_atime; - buf->st_mtime = ks.st_mtime; - buf->st_ctime = ks.st_ctime; - R (retval) -EOF -cat > times.c <<EOF -$lu#include <sys/times.h> -clock_t -_times (struct tms * tp${r}times (tp)) -EOF -cat > unlink.c <<EOF -$lui _unlink (const char *f${r}unlink (f)) -EOF -cat > wait.c <<EOF -$lui _wait (int *status${r}wait4 (_getpid(), status, 0, 0)) -EOF -cat > write.c <<EOF -$lui _write (int fd, char *buf, int nbytes${r}write (fd, buf, nbytes)) -EOF -exit 0 diff --git a/libgloss/cris/lcrt0.c b/libgloss/cris/lcrt0.c deleted file mode 100644 index ee50746..0000000 --- a/libgloss/cris/lcrt0.c +++ /dev/null @@ -1,128 +0,0 @@ -/* Support for cris*-axis-linux-gnu and src/sim/cris simulator. - Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Axis Communications. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Neither the name of Axis Communications nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS - COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. */ - -#include "linunistd.h" - -extern void exit (int) __attribute ((__noreturn__)); - -__asm__ (".syntax no_register_prefix"); - -#ifdef __ELF__ -/* This simulator magic for an earlier simulator was supposed to be - found two bytes before _start. Let's keep it for sake of - compatibility. Trying to emit them with an ordinary const char[] - and attribute section makes gcc barf; it doesn't like having the - same section attribute for both code and data. - The code is supposed to cause a crash if someone jumps to 0. */ -__asm__ - ( - " .section .startup,\"ax\",@progbits\n" - " .byte 55,55\n" - " move.d 0xbadacce5,r9\n" - " clear.d [r9]\n" - " setf\n" - " setf\n" - " .previous"); -#endif - -__asm__ - ( -#ifdef __AOUT__ - " .text\n\t" -#elif defined (__ELF__) - " .section .startup,\"ax\",@progbits\n" -#endif - " .global __start\n" - "__start:\n" - /* SP must be set up by the simulator or the system. */ - - /* Find ARGC, ARGV and ENV. */ - /* ARGC. */ - " move.d [sp],r10\n" - - /* ARGV. */ - " move.d sp,r11\n" - " addq 4,r11\n" - - /* ENVP. */ - " move.d sp,r12\n" - " addi r10.d,r12\n" - " addq 8,r12\n" - - /* Terminate R9 and R6; we don't have a "console_print_etrax" or system - call function. */ - " clear.d r9\n" - " clear.d r6\n" - " move.d __start1,r13\n" - " jump r13\n" - " setf\n" -#ifndef __AOUT__ - /* We rely on a.out not being in .data here. Quite fragile, but - covered by e.g. running the GCC test-suite for cris-unknown-aout. */ - " .previous" -#endif - ); - -extern void _Libctors (void); -extern void _Libdtors (void); - -extern void __init__start (void) __attribute ((weak)); -extern void __aout__ctors (void) __attribute ((weak)); - -static void start1 () __asm__ ("__start1") __attribute ((__used__)); -static void -start1 (int argc, char **argv, char **env) -{ -#ifdef __ELF__ - /* For ELF systems, we call _init and register _fini with atexit. */ - { - extern void _init (void); - extern void _fini (void); - _init (); - if (atexit (_fini) != 0) - exit (-1); - } -#else - /* Constructors which may get here through the ELF .init section, when - linking ELF and producing a.out. */ - if (__init__start) - __init__start (); - - if (__aout__ctors) - __aout__ctors (); - - /* Call constructors in shared libraries. */ - _Libctors (); - - if (atexit (_Libdtors) != 0) - exit (-1); -#endif - - /* Call the user program. */ - exit (main (argc, argv, env)); -} diff --git a/libgloss/cris/linunistd.h b/libgloss/cris/linunistd.h deleted file mode 100644 index 039679d..0000000 --- a/libgloss/cris/linunistd.h +++ /dev/null @@ -1,421 +0,0 @@ -/* Support for syscalls for cris*-axis-linux-gnu and simulators - Copyright (C) 1998-2005 Axis Communications. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Neither the name of Axis Communications nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS - COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. */ - -/* Derived from asm-etrax100/unistd.h with minor modifications to fit as - LOSS for newlib. */ - -#ifndef _ASM_ELINUX_UNISTD_H_ -#define _ASM_ELINUX_UNISTD_H_ - -/* Our callers might want to use link_warning, so provide it from here. */ -#include "../libnosys/config.h" -#include "libnosys/warning.h" - -#include <errno.h> - -/* - * This file contains the system call numbers, and stub macros for libc. - */ - -#define __NR_setup 0 /* used only by init, to get system going */ -#define __NR_exit 1 -#define __NR_fork 2 -#define __NR_read 3 -#define __NR_write 4 -#define __NR_open 5 -#define __NR_close 6 -#define __NR_waitpid 7 -#define __NR_creat 8 -#define __NR_link 9 -#define __NR_unlink 10 -#define __NR_execve 11 -#define __NR_chdir 12 -#define __NR_time 13 -#define __NR_mknod 14 -#define __NR_chmod 15 -#define __NR_chown 16 -#define __NR_break 17 -#define __NR_oldstat 18 -#define __NR_lseek 19 -#define __NR_getpid 20 -#define __NR_mount 21 -#define __NR_umount 22 -#define __NR_setuid 23 -#define __NR_getuid 24 -#define __NR_stime 25 -#define __NR_ptrace 26 -#define __NR_alarm 27 -#define __NR_oldfstat 28 -#define __NR_pause 29 -#define __NR_utime 30 -#define __NR_stty 31 -#define __NR_gtty 32 -#define __NR_access 33 -#define __NR_nice 34 -#define __NR_ftime 35 -#define __NR_sync 36 -#define __NR_kill 37 -#define __NR_rename 38 -#define __NR_mkdir 39 -#define __NR_rmdir 40 -#define __NR_dup 41 -#define __NR_pipe 42 -#define __NR_times 43 -#define __NR_prof 44 -#define __NR_brk 45 -#define __NR_setgid 46 -#define __NR_getgid 47 -#define __NR_signal 48 -#define __NR_geteuid 49 -#define __NR_getegid 50 -#define __NR_acct 51 -#define __NR_phys 52 -#define __NR_lock 53 -#define __NR_ioctl 54 -#define __NR_fcntl 55 -#define __NR_mpx 56 -#define __NR_setpgid 57 -#define __NR_ulimit 58 -#define __NR_oldolduname 59 -#define __NR_umask 60 -#define __NR_chroot 61 -#define __NR_ustat 62 -#define __NR_dup2 63 -#define __NR_getppid 64 -#define __NR_getpgrp 65 -#define __NR_setsid 66 -#define __NR_sigaction 67 -#define __NR_sgetmask 68 -#define __NR_ssetmask 69 -#define __NR_setreuid 70 -#define __NR_setregid 71 -#define __NR_sigsuspend 72 -#define __NR_sigpending 73 -#define __NR_sethostname 74 -#define __NR_setrlimit 75 -#define __NR_getrlimit 76 -#define __NR_getrusage 77 -#define __NR_gettimeofday 78 -#define __NR_settimeofday 79 -#define __NR_getgroups 80 -#define __NR_setgroups 81 -#define __NR_select 82 -#define __NR_symlink 83 -#define __NR_oldlstat 84 -#define __NR_readlink 85 -#define __NR_uselib 86 -#define __NR_swapon 87 -#define __NR_reboot 88 -#define __NR_readdir 89 -#define __NR_mmap 90 -#define __NR_munmap 91 -#define __NR_truncate 92 -#define __NR_ftruncate 93 -#define __NR_fchmod 94 -#define __NR_fchown 95 -#define __NR_getpriority 96 -#define __NR_setpriority 97 -#define __NR_profil 98 -#define __NR_statfs 99 -#define __NR_fstatfs 100 -#define __NR_ioperm 101 -#define __NR_socketcall 102 -#define __NR_syslog 103 -#define __NR_setitimer 104 -#define __NR_getitimer 105 -#define __NR_stat 106 -#define __NR_lstat 107 -#define __NR_fstat 108 -#define __NR_olduname 109 -#define __NR_iopl 110 -#define __NR_vhangup 111 -#define __NR_idle 112 -#define __NR_vm86 113 -#define __NR_wait4 114 -#define __NR_swapoff 115 -#define __NR_sysinfo 116 -#define __NR_ipc 117 -#define __NR_fsync 118 -#define __NR_sigreturn 119 -#define __NR_clone 120 -#define __NR_setdomainname 121 -#define __NR_uname 122 -#define __NR_modify_ldt 123 -#define __NR_adjtimex 124 -#define __NR_mprotect 125 -#define __NR_sigprocmask 126 -#define __NR_create_module 127 -#define __NR_init_module 128 -#define __NR_delete_module 129 -#define __NR_get_kernel_syms 130 -#define __NR_quotactl 131 -#define __NR_getpgid 132 -#define __NR_fchdir 133 -#define __NR_bdflush 134 -#define __NR_sysfs 135 -#define __NR_personality 136 -#define __NR_afs_syscall 137 /* Syscall for Andrew File System */ -#define __NR_setfsuid 138 -#define __NR_setfsgid 139 -#define __NR__llseek 140 -#define __NR_getdents 141 -#define __NR__newselect 142 -#define __NR_flock 143 -#define __NR_msync 144 -#define __NR_readv 145 -#define __NR_writev 146 -#define __NR_getsid 147 -#define __NR_fdatasync 148 -#define __NR__sysctl 149 -#define __NR_mlock 150 -#define __NR_munlock 151 -#define __NR_mlockall 152 -#define __NR_munlockall 153 -#define __NR_sched_setparam 154 -#define __NR_sched_getparam 155 -#define __NR_sched_setscheduler 156 -#define __NR_sched_getscheduler 157 -#define __NR_sched_yield 158 -#define __NR_sched_get_priority_max 159 -#define __NR_sched_get_priority_min 160 -#define __NR_sched_rr_get_interval 161 -#define __NR_nanosleep 162 -#define __NR_mremap 163 - -#define __NR_mmap2 192 - -#define PASTE(x,y) x##y -#define XSTR(x) # x -#define STR(x) XSTR (x) - -#ifdef __elinux__ -# define CRIS_SYSCALL "jir .$System.call" -# define CALLNO_REG r1 -# define ARG5_REG r0 -# define MOVE_ARG5 "move.d" -# define COLON_ARG5_CLOBBER : "r0" -#else -# define CRIS_SYSCALL "break 13" -# define CALLNO_REG r9 -# define ARG5_REG srp -# define MOVE_ARG5 "move" -# define COLON_ARG5_CLOBBER -#endif - -/* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ -#define _syscall0(type,name) \ -type PASTE(_Sys_,name) (void) \ -{ \ - register long __a __asm__ ("r10"); \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_)); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define _syscall1(type,name,type1,arg1) \ -type PASTE(_Sys_,name) (type1 arg1) \ -{ \ - register long __a __asm__ ("r10") = (long) arg1; \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_), "0" (__a)); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define _syscall2(type,name,type1,arg1,type2,arg2) \ -type PASTE(_Sys_,name) (type1 arg1,type2 arg2) \ -{ \ - register long __a __asm__ ("r10") = (long) arg1; \ - register long __b __asm__ ("r11") = (long) arg2; \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_), "0" (__a), "r" (__b)); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \ -type PASTE(_Sys_,name) (type1 arg1,type2 arg2,type3 arg3) \ -{ \ - register long __a __asm__ ("r10") = (long) arg1; \ - register long __b __asm__ ("r11") = (long) arg2; \ - register long __c __asm__ ("r12") = (long) arg3; \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_), "0" (__a), "r" (__b), "r" (__c)); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define _syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \ -type PASTE(_Sys_,name) (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \ -{ \ - register long __a __asm__ ("r10") = (long) arg1; \ - register long __b __asm__ ("r11") = (long) arg2; \ - register long __c __asm__ ("r12") = (long) arg3; \ - register long __d __asm__ ("r13") = (long) arg4; \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_), "0" (__a), "r" (__b), \ - "r" (__c), "r" (__d)); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \ - type5,arg5) \ -type PASTE(_Sys_,name) (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \ -{ \ - register long __a __asm__ ("r10") = (long) arg1; \ - register long __b __asm__ ("r11") = (long) arg2; \ - register long __c __asm__ ("r12") = (long) arg3; \ - register long __d __asm__ ("r13") = (long) arg4; \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (MOVE_ARG5 " %6,$" STR (ARG5_REG) "\n\t" \ - CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_), "0" (__a), "r" (__b), \ - "r" (__c), "r" (__d), "g" (arg5) \ - COLON_ARG5_CLOBBER); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \ - type5,arg5,type6,arg6) \ -type PASTE(_Sys_,name) (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, type6 arg6) \ -{ \ - register long __a __asm__ ("r10") = (long) arg1; \ - register long __b __asm__ ("r11") = (long) arg2; \ - register long __c __asm__ ("r12") = (long) arg3; \ - register long __d __asm__ ("r13") = (long) arg4; \ - register long __n_ __asm__ (STR (CALLNO_REG)) = (__NR_##name); \ - __asm__ __volatile__ (MOVE_ARG5 " %6,$" STR (ARG5_REG) "\n\t" \ - "move %7,$mof\n\t" \ - CRIS_SYSCALL \ - : "=r" (__a) \ - : "r" (__n_), "0" (__a), "r" (__b), \ - "r" (__c), "r" (__d), "g" (arg5), "g" (arg6) \ - COLON_ARG5_CLOBBER); \ - if (__a >= 0) \ - return (type) __a; \ - errno = -__a; \ - return -1; \ -} - -#define __NR__exit __NR_exit -static inline _syscall0(int,idle) -static inline _syscall0(int,fork) -static inline _syscall2(int,clone,unsigned long,flags,char *,esp) -static inline _syscall0(int,pause) -static inline _syscall0(int,setup) -static inline _syscall0(int,sync) -static inline _syscall3(int,write,int,fd,const char *,buf,unsigned,count) -static inline _syscall1(int,dup,int,fd) -static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) -static inline _syscall3(int,open,const char *,file,int,flag,int,mode) -static inline _syscall1(int,close,int,fd) -static inline _syscall1(int,_exit,int,exitcode) -static inline _syscall1(int,exit,int,exitcode) -static inline _syscall3(int,waitpid,int,pid,int *,wait_stat,int,options) -static inline _syscall3(int,read,int,fd,char *,buf,unsigned,count) -static inline _syscall2(int,socketcall,int,call,unsigned long *,args) -static inline _syscall3(int,ioctl,unsigned int,fd,unsigned int,cmd,unsigned long,arg) -static inline _syscall3(int,fcntl,unsigned int,fd,unsigned int,cmd,unsigned long,arg) -static inline _syscall5(int,mount,const char *,a,const char *,b,const char *,c,unsigned long,rwflag,const void *,data) -static inline _syscall2(int,rename,const char *,a,const char*,b) - -#ifndef __elinux__ -/* Make sure these are only used where they are supported. */ -static inline _syscall6(int,mmap2,unsigned long, addr, unsigned long, len, - unsigned long, prot, unsigned long, flags, - unsigned long, fd, unsigned long, pgoff) -static inline _syscall1(long,brk,long,addr) -#endif - -/* This structure is ripped from asm-etrax100/stat.h: beware of updates. */ -struct new_stat { - unsigned short st_dev; - unsigned short __pad1; - unsigned long st_ino; - unsigned short st_mode; - unsigned short st_nlink; - unsigned short st_uid; - unsigned short st_gid; - unsigned short st_rdev; - unsigned short __pad2; - unsigned long st_size; - unsigned long st_blksize; - unsigned long st_blocks; - unsigned long st_atime; - unsigned long __unused1; - unsigned long st_mtime; - unsigned long __unused2; - unsigned long st_ctime; - unsigned long __unused3; - unsigned long __unused4; - unsigned long __unused5; -}; - -static inline _syscall2(int,stat,const char *,path,struct new_stat *,statbuf) -static inline _syscall2(int,fstat,int,fd,struct new_stat *,statbuf) -static inline _syscall0(int,getpid) -static inline _syscall2(int,kill,int,pid,int,sig) -static inline _syscall3(int,lseek,int,fd,int,offset,int,whence) -struct tms; -static inline _syscall1(long,times,struct tms *,tbuf) -static inline _syscall1(long,mmap,long *, buf) -struct timeval; -struct timezone; -static inline _syscall2(int,gettimeofday,struct timeval *,tp, - struct timezone *, tzp) -static inline _syscall2(int,link,const char *,old,const char *,new) -static inline _syscall1(int,unlink,const char *, f) -struct rusage; -static inline _syscall4(int,wait4,int,pid,int *,sa,int,op,struct rusage *,ru) -#endif /* _ASM_ELINUX_UNISTD_H_ */ diff --git a/libgloss/cris/outbyte.c b/libgloss/cris/outbyte.c deleted file mode 100644 index 1cb686b..0000000 --- a/libgloss/cris/outbyte.c +++ /dev/null @@ -1,9 +0,0 @@ -/* Low-level kind-of-support for CRIS. Mostly used as a placeholder - function. Too small and obvious to warrant a copyright notice. */ - -#include <stdio.h> -void -outbyte (int ch) -{ - write (1, &ch, 1); -} diff --git a/libgloss/cris/setup.S b/libgloss/cris/setup.S deleted file mode 100644 index ef0be71..0000000 --- a/libgloss/cris/setup.S +++ /dev/null @@ -1,44 +0,0 @@ -/* Support for standalone CRIS/CRISv32 code. - Copyright (C) 2005 Axis Communications. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - 2. Neither the name of Axis Communications nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY AXIS COMMUNICATIONS AND ITS CONTRIBUTORS - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AXIS - COMMUNICATIONS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. */ - - .text - .global __setup -__setup: - /* Make sure to save SRP. */ -#ifdef __arch_common_v10_v32 - /* Can't do anything if we don't know for which arch. This file is - then only a placeholder. Oh, and we can't use the "ret" insn in - "common" code. */ -#else - /* Code missing: - - Initialize RAM circuits. - - Initialize serial output and input. - - Set stack-pointer. */ - ret - nop -#endif diff --git a/libgloss/crx/Makefile.in b/libgloss/crx/Makefile.in deleted file mode 100644 index a4abe3f..0000000 --- a/libgloss/crx/Makefile.in +++ /dev/null @@ -1,156 +0,0 @@ -# -# - -DESTDIR = - -VPATH = @srcdir@ @srcdir@/.. -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -# Here is all of the handlers stuff -H_SCRIPTS = -H_BSP = libh.a -H_OBJS = intable.o dvz_hndl.o flg_hndl.o iad_hndl.o svc_hndl.o und_hndl.o -H_TEST = hndl-test -H_INSTALL = install-hndl - -# Here is all of the simulator stuff -SIM_SCRIPTS = sim.ld -SIM_BSP = libsim.a -SIM_OBJS = _exit.o close.o _getenv.o lseek.o open.o read.o \ - _rename.o sbrk.o time.o unlink.o write.o \ - stat.o putnum.o kill.o getpid.o isatty.o fstat.o -SIM_TEST = sim-test -SIM_INSTALL = install-sim - -# Here is all of the CRT stuff -CRT = crti.o crtn.o crt0.o -CRT_INSTALL = install-crt - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -# -# build a test program for each target board. Just trying to get -# it to link is a good test, so we ignore all the errors for now. -# -all: ${CRT} ${SIM_BSP} ${H_BSP} - -# -# here's where we build the board support packages for each target -# -${H_BSP}: ${H_OBJS} - ${AR} ${ARFLAGS} ${H_BSP} ${H_OBJS} - ${RANLIB} ${H_BSP} - -${SIM_BSP}: ${SIM_OBJS} - ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} - ${RANLIB} ${SIM_BSP} - -# -# here's where we build the test programs for each target -# -.PHONY: test -test: ${SIM_TEST} ${H_TEST} - -hndl-test: hndl-test.x hndl-test.dis - -hndl-test.x: test.o ${H_BSP} - ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \ - test.o \ - -o hndl-test.x ${LIBS_FOR_TARGET} -lc ${H_BSP} -Wl,-T${SIM_SCRIPTS} - -hndl-test.dis: hndl-test.x - ${OBJDUMP} -d hndl-test.x > hndl-test.dis - - -sim-test: sim-test.x sim-test.dis - -sim-test.x: test.o ${SIM_BSP} - ${CC} ${LDFLAGS_FOR_TARGET} -L${objdir} \ - test.o \ - -o sim-test.x ${LIBS_FOR_TARGET} -lc ${SIM_BSP} -Wl,-T${SIM_SCRIPTS} - -sim-test.dis: sim-test.x - ${OBJDUMP} -d sim-test.x > sim-test.dis - -# -# -# -.c.S: - ${CC} ${CFLAGS_FOR_TARGET} -c $< - -clean mostlyclean: - rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(H_BSP) - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status *~ - -.PHONY: install info install-info clean-info -install: ${CRT_INSTALL} ${SIM_INSTALL} ${H_INSTALL} - -install-crt: - set -e; for x in ${CRT} ; do\ - ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done - -install-sim: - for x in ${SIM_BSP} ; do\ - ${INSTALL_PROGRAM} $${x} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done - for x in ${SIM_SCRIPTS}; do\ - ${INSTALL_DATA} ${srcdir}/$${x} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done - -install-hndl: - for x in ${H_BSP}; do\ - ${INSTALL_PROGRAM} $${x} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done - -doc: -info: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/crx/_exit.c b/libgloss/crx/_exit.c deleted file mode 100644 index 9a3cfa6..0000000 --- a/libgloss/crx/_exit.c +++ /dev/null @@ -1,23 +0,0 @@ -/* _exit.c -- Implementation of the low-level _exit() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <stdlib.h> -#include <sys/syscall.h> - -/* Returns control to the debugger. */ -void _exit (int stat) -{ - HOST_SERVICE (SVC_EOP); -} diff --git a/libgloss/crx/_getenv.c b/libgloss/crx/_getenv.c deleted file mode 100644 index c43555d..0000000 --- a/libgloss/crx/_getenv.c +++ /dev/null @@ -1,36 +0,0 @@ -/* _getenv.c -- Implementation of the low-level _getenv() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> -#include <stdlib.h> - -register char *R2 __asm__("r2"); -register char *R3 __asm__("r3"); - -char * _getenv (const char *name) -{ - char *x; - char *y; - - x = R2; - - y = (char *) calloc (256, 1); - R3 = y; - - R2 = x; - - HOST_SERVICE (SVC_GETENV); -} - diff --git a/libgloss/crx/_rename.c b/libgloss/crx/_rename.c deleted file mode 100644 index b3d7bd0..0000000 --- a/libgloss/crx/_rename.c +++ /dev/null @@ -1,21 +0,0 @@ -/* _rename.c -- Implementation of the low-level rename() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -int _rename (char *from, char *to) -{ - HOST_SERVICE (SVC_RENAME); -} diff --git a/libgloss/crx/close.c b/libgloss/crx/close.c deleted file mode 100644 index 72ce4bd..0000000 --- a/libgloss/crx/close.c +++ /dev/null @@ -1,21 +0,0 @@ -/* close.c -- Implementation of the low-level close() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -int close (int fd) -{ - HOST_SERVICE (SVC_CLOSE); -} diff --git a/libgloss/crx/configure b/libgloss/crx/configure deleted file mode 100755 index 26420ea..0000000 --- a/libgloss/crx/configure +++ /dev/null @@ -1,1228 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=intable.c - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:573: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:594: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:612: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([^/][^/]*\),..,g' -e 's,^/$,,'` - ac_aux_dir= -for ac_dir in ${mdir}../../.. $srcdir/${mdir}../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${mdir}../../.. $srcdir/${mdir}../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -else - ac_aux_dir= -for ac_dir in ${srcdir}/../.. $srcdir/${srcdir}/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/../.. $srcdir/${srcdir}/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -fi - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:710: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:804: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:853: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:877: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:913: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF - -EOF -cat >> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/libgloss/crx/configure.in b/libgloss/crx/configure.in deleted file mode 100644 index 63a902e..0000000 --- a/libgloss/crx/configure.in +++ /dev/null @@ -1,75 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(intable.c) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'` - AC_CONFIG_AUX_DIR(${mdir}../../..) -else - AC_CONFIG_AUX_DIR(${srcdir}/../..) -fi - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile) diff --git a/libgloss/crx/crt0.S b/libgloss/crx/crt0.S deleted file mode 100644 index c498497..0000000 --- a/libgloss/crx/crt0.S +++ /dev/null @@ -1,93 +0,0 @@ - ############################################################################## - # crt0.S -- CRX default start-up routine # - # # - # Copyright (c) 2004 National Semiconductor Corporation # - # # - # The authors hereby grant permission to use, copy, modify, distribute, # - # and license this software and its documentation for any purpose, provided # - # that existing copyright notices are retained in all copies and that this # - # notice is included verbatim in any distributions. No written agreement, # - # license, or royalty fee is required for any of the authorized uses. # - # Modifications to this software may be copyrighted by their authors # - # and need not follow the licensing terms described here, provided that # - # the new terms are clearly indicated on the first page of each file where # - # they apply. # - # # - # This is the start routine of your CRX program. # - # It is linked with your application automatically. You can use # - # this routine as a template and modify it to your needs, yet this # - # file must be supplied for the compiler. # - # It is assumed that the following symbols are defined in your linker # - # script: __STACK_START, __ISTACK_START, __DATA_START, __DATA_END, # - # __DATA_IMAGE_START, __BSS_START, __BSS_END. # - ############################################################################## - - .text - .align 4 - .globl _main - .globl _start - .globl _atexit - .globl _exit - .globl __dispatch_table - -_start: - - #----------------------------------------------------------------------------# - # Initialize the stack pointers. The constants __STACK_START and # - # __ISTACK_START should be defined in the linker script. # - - movd $__STACK_START, sp - movd $__ISTACK_START, r0 - mtpr r0, isp - - #----------------------------------------------------------------------------# - # Initialize the default sections according to the linker script. # - - movd $__DATA_END, r4 - subd $__DATA_START, r4 - movd $__DATA_START, r2 - movd $__DATA_IMAGE_START, r3 - bal ra, _memcpy - movd $__BSS_END, r4 - subd $__BSS_START, r4 - movd $__BSS_START, r2 - movd $0, r3 - bal ra, _memset - - #----------------------------------------------------------------------------# - # Initialize the intbase (pointer to the dispatch table). # - - movd $__dispatch_table, r0 - mtpr r0, intbase - - #----------------------------------------------------------------------------# - # Handle global and static constructurs execution and setup # - # destructors to be called from exit. # - bal ra, _init - movd $_fini, r2 - bal ra, _atexit - - #----------------------------------------------------------------------------# - # Here you may add initializations that are specific to your # - # environment. For example: # - # 1. Configure wait states and other BIU parameters in order to get # - # the best performance out of your target (see the specification # - # document). # - # 2. Enable maskable interrupts that should be enabled when your # - # program starts to execute. # - - - #----------------------------------------------------------------------------# - # Jump to the main function in your application. # - - bal ra, _main - - #----------------------------------------------------------------------------# - # Upon returning from the main function (if it isn't an infinite loop), # - # jump to the exit function. The exit function is located in the # - # library 'libc.a'. # - - movd r0, r2 # _main return value is passed as a - # parameter to exit. - br _exit # returns control to the debugger. - diff --git a/libgloss/crx/crti.S b/libgloss/crx/crti.S deleted file mode 100644 index 7bca798..0000000 --- a/libgloss/crx/crti.S +++ /dev/null @@ -1,47 +0,0 @@ -/* Specialized code needed to support construction and destruction of - file-scope objects in C++ and Java code, and to support exception handling. - Copyright (C) 1999 Free Software Foundation, Inc. - Contributed by Charles-Antoine Gauthier (charles.gauthier@iit.nrc.ca). - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -/* As a special exception, if you link this library with files - compiled with GCC to produce an executable, this does not cause - the resulting executable to be covered by the GNU General Public License. - This exception does not however invalidate any other reasons why - the executable file might be covered by the GNU General Public License. */ - -/* - * This file just supplies function prologues for the .init and .fini - * sections. It is linked in before crtbegin.o. - */ - - .file "crti.o" - .ident "GNU C crti.o" - - .section .init - .globl _init - .type _init,@function -_init: - push ra - .section .fini - .globl _fini - .type _fini,@function -_fini: - push ra - diff --git a/libgloss/crx/crtn.S b/libgloss/crx/crtn.S deleted file mode 100644 index 8375f43..0000000 --- a/libgloss/crx/crtn.S +++ /dev/null @@ -1,41 +0,0 @@ -/* Specialized code needed to support construction and destruction of - file-scope objects in C++ and Java code, and to support exception handling. - Copyright (C) 1999 Free Software Foundation, Inc. - Contributed by Charles-Antoine Gauthier (charles.gauthier@iit.nrc.ca). - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -/* As a special exception, if you link this library with files - compiled with GCC to produce an executable, this does not cause - the resulting executable to be covered by the GNU General Public License. - This exception does not however invalidate any other reasons why - the executable file might be covered by the GNU General Public License. */ - -/* - * This file supplies function epilogues for the .init and .fini sections. - * It is linked in after all other files. - */ - - .file "crtn.o" - .ident "GNU C crtn.o" - - .section .init - popret ra - - .section .fini - popret ra diff --git a/libgloss/crx/dvz_hndl.c b/libgloss/crx/dvz_hndl.c deleted file mode 100644 index a9bde40..0000000 --- a/libgloss/crx/dvz_hndl.c +++ /dev/null @@ -1,23 +0,0 @@ -/* dvz_hndl.c -- Implementation of the DVZ trap handler - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -void dvz_handler (void) __attribute__ ((interrupt ())); - -void dvz_handler (void) -{ - HOST_SERVICE (SVC_DVZ); -} diff --git a/libgloss/crx/flg_hndl.c b/libgloss/crx/flg_hndl.c deleted file mode 100644 index 0bb9c86..0000000 --- a/libgloss/crx/flg_hndl.c +++ /dev/null @@ -1,23 +0,0 @@ -/* flg_hndl.c -- Implementation of the FLG trap handler - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -void flg_handler (void) __attribute__ ((interrupt ())); - -void flg_handler (void) -{ - HOST_SERVICE (SVC_FLG); -} diff --git a/libgloss/crx/fstat.c b/libgloss/crx/fstat.c deleted file mode 100644 index 380fc2a..0000000 --- a/libgloss/crx/fstat.c +++ /dev/null @@ -1,30 +0,0 @@ -/* fstat.c -- get status of a file. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <_ansi.h> -#include <sys/stat.h> - -/* - * fstat -- Since we have no file system, we just return an error. - */ -int -_DEFUN (fstat, (fd, buf), - int fd _AND - struct stat *buf) -{ - buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ - buf->st_blksize = 0; - - return (0); -} diff --git a/libgloss/crx/getpid.c b/libgloss/crx/getpid.c deleted file mode 100644 index 3c1a7b8..0000000 --- a/libgloss/crx/getpid.c +++ /dev/null @@ -1,26 +0,0 @@ -/* getpid.c -- get the current process id. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <_ansi.h> -#define __MYPID 1 - -/* - * getpid -- only one process, so just return 1. - */ -int -_DEFUN (getpid, (), - ) -{ - return __MYPID; -} diff --git a/libgloss/crx/iad_hndl.c b/libgloss/crx/iad_hndl.c deleted file mode 100644 index 875dbe6..0000000 --- a/libgloss/crx/iad_hndl.c +++ /dev/null @@ -1,23 +0,0 @@ -/* iad_hndl.c -- Implementation of the IAD trap handler - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -void iad_handler (void) __attribute__ ((interrupt ())); - -void iad_handler (void) -{ - HOST_SERVICE (SVC_IAD); -} diff --git a/libgloss/crx/intable.c b/libgloss/crx/intable.c deleted file mode 100644 index 02ca66b..0000000 --- a/libgloss/crx/intable.c +++ /dev/null @@ -1,37 +0,0 @@ -/* intable.c -- CompactRISC default dispatch table definition - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <stdio.h> -#include <sys/libh.h> - -void (* const _dispatch_table[32])(void)= -{ - NULL, - NULL, - NULL, - NULL, - NULL, - svc_handler, - dvz_handler, - flg_handler, - NULL, - NULL, - und_handler, - NULL, - iad_handler, - NULL, - NULL, - NULL -}; diff --git a/libgloss/crx/isatty.c b/libgloss/crx/isatty.c deleted file mode 100644 index 927d754..0000000 --- a/libgloss/crx/isatty.c +++ /dev/null @@ -1,27 +0,0 @@ -/* isatty.c -- chek the terminal device. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <_ansi.h> - -/* - * isatty -- returns 1 if connected to a terminal device, - * returns 0 if not. Since we're hooked up to a - * serial port, we'll say yes _AND return a 1. - */ -int -_DEFUN (isatty, (fd), - int fd) -{ - return (1); -} diff --git a/libgloss/crx/kill.c b/libgloss/crx/kill.c deleted file mode 100644 index 3ed228f..0000000 --- a/libgloss/crx/kill.c +++ /dev/null @@ -1,29 +0,0 @@ -/* kill.c -- remove a process. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <_ansi.h> -#define __MYPID 1 - -/* - * kill -- go out via exit... - */ -int -_DEFUN (kill, (pid, sig), - int pid _AND - int sig) -{ - if(pid == __MYPID) - _exit(sig); - return 0; -} diff --git a/libgloss/crx/lseek.c b/libgloss/crx/lseek.c deleted file mode 100644 index 6c4354c..0000000 --- a/libgloss/crx/lseek.c +++ /dev/null @@ -1,21 +0,0 @@ -/* lseek.c -- Implementation of the low-level lseek() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -long lseek (int fd, long offset, int whence) -{ - HOST_SERVICE (SVC_LSEEK); -} diff --git a/libgloss/crx/open.c b/libgloss/crx/open.c deleted file mode 100644 index abe7bbf..0000000 --- a/libgloss/crx/open.c +++ /dev/null @@ -1,41 +0,0 @@ -/* open.c -- Implementation of the low-level open() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> -#include <stdarg.h> - -int open_aux (char *, int, int); - -/* The prototype in <fcntl.h> for open() uses ..., meaning function - * parameters reside on stack, but the debugger expects the parameters - * to reside in registers, thus we call an auxiliary function with - * bounded number of parameters. - */ -int open (char *path, int flags, ...) -{ - int mode; - va_list ap; - - va_start(ap, flags); - mode = va_arg(ap, int); - open_aux (path, flags, mode); - va_end(ap); -} - -int open_aux (char *path, int flags, int mode) -{ - HOST_SERVICE (SVC_OPEN); -} - diff --git a/libgloss/crx/putnum.c b/libgloss/crx/putnum.c deleted file mode 100644 index 3317bbf..0000000 --- a/libgloss/crx/putnum.c +++ /dev/null @@ -1,41 +0,0 @@ -/* putnum.c -- put a hex number on the output device. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <_ansi.h> - -/* - * putnum -- print a 32 bit number in hex - */ -void -_DEFUN (putnum, (num), - unsigned int num) -{ - char buf[9]; - int cnt; - char *ptr; - int digit; - - ptr = buf; - for (cnt = 7 ; cnt >= 0 ; cnt--) { - digit = (num >> (cnt * 4)) & 0xf; - - if (digit <= 9) - *ptr++ = (char) ('0' + digit); - else - *ptr++ = (char) ('a' - 10 + digit); - } - - *ptr = (char) 0; - print (buf); -} diff --git a/libgloss/crx/read.c b/libgloss/crx/read.c deleted file mode 100644 index f0cb43a..0000000 --- a/libgloss/crx/read.c +++ /dev/null @@ -1,21 +0,0 @@ -/* read.c -- Implementation of the low-level read() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -int read (int fd, char *buffer, int nbytes) -{ - HOST_SERVICE (SVC_READ); -} diff --git a/libgloss/crx/sbrk.c b/libgloss/crx/sbrk.c deleted file mode 100644 index 70d5d4f..0000000 --- a/libgloss/crx/sbrk.c +++ /dev/null @@ -1,56 +0,0 @@ -/* sbrk.c -- Implementation of the low-level sbrk() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <errno.h> -#include <stddef.h> /* where ptrdiff_t is defined */ -#include <stdlib.h> - -/* Extend heap space by size bytes. - Return start of new space allocated, or -1 for errors - Error cases: - 1. Allocation is not within heap range */ - -void * sbrk (ptrdiff_t size) -{ - /* - * The following two memory locations should be defined in the linker script file - */ - extern const char _HEAP_START; /* start of heap */ - extern const char _HEAP_MAX; /* end of heap (maximum value of heap_ptr) */ - - static const char * heap_ptr; /* pointer to head of heap */ - const char * old_heap_ptr; - static unsigned char init_sbrk = 0; - - /* heap_ptr is initialized to HEAP_START */ - if (init_sbrk == 0) - { - heap_ptr = &_HEAP_START; - init_sbrk = 1; - } - - old_heap_ptr = heap_ptr; - - if ((heap_ptr + size) > &_HEAP_MAX) - { - /* top of heap is bigger than _HEAP_MAX */ - errno = ENOMEM; - return (void *) -1; - } - - /* success: update heap_ptr and return previous value */ - heap_ptr += size; - return (void *)old_heap_ptr; -} diff --git a/libgloss/crx/sim.ld b/libgloss/crx/sim.ld deleted file mode 100644 index a75c03d..0000000 --- a/libgloss/crx/sim.ld +++ /dev/null @@ -1,126 +0,0 @@ -/* Example Linker Script for linking NS CRX elf32 files. */ -OUTPUT_FORMAT("elf32-crx") -OUTPUT_ARCH(crx) - -/* - The libh.a library includes various CR default handlers. - The libsim.a library includes low-level functions, which - are used as an interface to communicate with the simulator. -*/ -GROUP(-lc -lsim -lh -lgcc) - -/* - The next line forces the entry point (_start in this script) - to be entered in the output file as an undefined symbol. - It is needed in case the entry point is not called explicitly - (which is the usual case) AND is in an archive. -*/ -EXTERN(_start) -ENTRY(_start) - -/* Define memory regions */ -MEMORY -{ - rom : ORIGIN = 0x2, LENGTH = 3M - ram : ORIGIN = 4M, LENGTH = 10M -} - -SECTIONS -{ - .init : - { - __INIT_START = .; - KEEP (*(.init)) - __INIT_END = .; - } > rom - - .fini : - { - __FINI_START = .; - KEEP (*(.fini)) - __FINI_END = .; - } > rom - - .jcr : - { - KEEP (*(.jcr)) - } > rom - - .text : - { - __TEXT_START = .; - *(.text) *(.text.*) *(.gnu.linkonce.t.*) - __TEXT_END = .; - } > rom - - .rdata : - { - __RDATA_START = .; - *(.rdata_4) *(.rdata_2) *(.rdata_1) *(.rdata.*) *(.gnu.linkonce.r.*) - __RDATA_END = .; - } > rom - - .ctor ALIGN(4) : - { - __CTOR_START = .; - KEEP (*crtbegin*.o(.ctors)) - KEEP (*(EXCLUDE_FILE (*crtend*.o) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - __CTOR_END = .; - } > rom - - .dtor ALIGN(4) : - { - __DTOR_START = .; - KEEP (*crtbegin*.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend*.o) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - __DTOR_END = .; - } > rom - - .data : - { - __DATA_START = .; - *(.data_4) *(.data_2) *(.data_1) *(.data) *(.data.*) *(.gnu.linkonce.d.*) - __DATA_END = .; - } > ram AT > rom - - .bss (NOLOAD) : - { - __BSS_START = .; - *(.bss_4) *(.bss_2) *(.bss_1) *(.bss) *(COMMON) *(.bss.*) *(.gnu.linkonce.b.*) - __BSS_END = .; - } > ram - -/* - You may change the sizes of the following sections to fit the actual - size your program requires. - The heap and stack are aligned to the bus width, as a speed optimization - for accessing data located there. -*/ - .heap : - { - . = ALIGN(4); - __HEAP_START = .; - . += 0x2000; - __HEAP_MAX = .; - } > ram - - .stack : - { - . = ALIGN(4); - . += 0x6000; - __STACK_START = .; - } > ram - - .istack : - { - . = ALIGN(4); - . += 0x100; - __ISTACK_START = .; - } > ram -} - -__DATA_IMAGE_START = LOADADDR(.data); diff --git a/libgloss/crx/stat.c b/libgloss/crx/stat.c deleted file mode 100644 index 6ffef82..0000000 --- a/libgloss/crx/stat.c +++ /dev/null @@ -1,30 +0,0 @@ -/* stat.c -- Get the status of a file. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <_ansi.h> -#include <sys/stat.h> -#include <errno.h> - -/* - * stat -- Since we have no file system, we just return an error. - */ -int -_DEFUN (stat, (path, buf), - const char *path _AND - struct stat *buf) -{ - errno = EIO; - return (-1); -} - diff --git a/libgloss/crx/svc_hndl.c b/libgloss/crx/svc_hndl.c deleted file mode 100644 index ab93a4d..0000000 --- a/libgloss/crx/svc_hndl.c +++ /dev/null @@ -1,23 +0,0 @@ -/* svc_hndl.c -- Implementation of the SVC trap handler - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -void svc_handler (void) __attribute__ ((interrupt ())); - -void svc_handler (void) -{ - HOST_SERVICE (SVC_SVC); -} diff --git a/libgloss/crx/time.c b/libgloss/crx/time.c deleted file mode 100644 index 4d7cfa1..0000000 --- a/libgloss/crx/time.c +++ /dev/null @@ -1,55 +0,0 @@ -/* time.c -- Implementation of the low-level time() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <unistd.h> -#include <time.h> -#include <errno.h> -#include <sys/time.h> -#include <sys/times.h> -#include <sys/syscall.h> - -time_t _Time (time_t *timer) -{ - HOST_SERVICE (SVC_TIME); -} - -time_t time (time_t *tod) -{ - time_t t = _Time (NULL); - - if (tod) - *tod = t; - - return (t); -} - -/* _times -- no clock, so return an error. */ -clock_t times (struct tms *buf) -{ - errno = EINVAL; - return (-1); -} - -/* _gettimeofday -- implement in terms of time. */ -int gettimeofday (struct timeval *tv, struct timezone *tz) -{ - if (tz) - tz->tz_minuteswest = tz->tz_dsttime = 0; - - tv->tv_usec = 0; - tv->tv_sec = time (0); - return 0; -} - diff --git a/libgloss/crx/und_hndl.c b/libgloss/crx/und_hndl.c deleted file mode 100644 index 4c5cca3..0000000 --- a/libgloss/crx/und_hndl.c +++ /dev/null @@ -1,23 +0,0 @@ -/* und_hndl.c -- Implementation of the UND trap handler - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -void und_handler (void) __attribute__ ((interrupt ())); - -void und_handler (void) -{ - HOST_SERVICE (SVC_UND); -} diff --git a/libgloss/crx/unlink.c b/libgloss/crx/unlink.c deleted file mode 100644 index 3a93471..0000000 --- a/libgloss/crx/unlink.c +++ /dev/null @@ -1,21 +0,0 @@ -/* unlink.c -- Implementation of the low-level unlink() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -int unlink (char *path) -{ - HOST_SERVICE (SVC_UNLINK); -} diff --git a/libgloss/crx/write.c b/libgloss/crx/write.c deleted file mode 100644 index a9a7ff4..0000000 --- a/libgloss/crx/write.c +++ /dev/null @@ -1,21 +0,0 @@ -/* write.c -- Implementation of the low-level write() routine - * - * Copyright (c) 2004 National Semiconductor Corporation - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/syscall.h> - -int write (int fd, char *buffer, int nbytes) -{ - HOST_SERVICE (SVC_WRITE); -} diff --git a/libgloss/d30v/Makefile.in b/libgloss/d30v/Makefile.in index 83148b5..b652016 100644 --- a/libgloss/d30v/Makefile.in +++ b/libgloss/d30v/Makefile.in @@ -15,7 +15,6 @@ # This currently works with the D30V simulator. # -DESTDIR = VPATH = @srcdir@ @srcdir@/.. srcdir = @srcdir@ objdir = . @@ -115,7 +114,7 @@ distclean maintainer-clean realclean: clean install: ${SIM_INSTALL} install-sim: - set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done doc: info: diff --git a/libgloss/d30v/syscalls.c b/libgloss/d30v/syscalls.c index b55bb62..58c738c 100644 --- a/libgloss/d30v/syscalls.c +++ b/libgloss/d30v/syscalls.c @@ -17,19 +17,18 @@ */ #include <stdlib.h> -#include <time.h> #include "syscall.h" extern int *__errno(), errno; __asm__ ( -" .globl __syscall \n\ - .type __syscall,@function \n\ -__syscall: \n\ - trap 31 || nop \n\ - cmpge f0,r2,0 -> jmp/tx link \n\ - bra __set_errno \n\ - .size __syscall,.-__syscall \n\ +" .globl __syscall + .type __syscall,@function +__syscall: + trap 31 || nop + cmpge f0,r2,0 -> jmp/tx link + bra __set_errno + .size __syscall,.-__syscall "); int diff --git a/libgloss/debug.h b/libgloss/debug.h index 9a78076..9535341 100644 --- a/libgloss/debug.h +++ b/libgloss/debug.h @@ -77,7 +77,7 @@ extern char *gdb_set(char *); /* Q - set value */ * indicate to caller of mem2hex or hex2mem that there has been an error. * 0 means ok, 1 means error */ -extern volatile int mem_err; +extern int mem_err; /* * indicate whether the debug vectors have been initialized diff --git a/libgloss/doc/Makefile.in b/libgloss/doc/Makefile.in index 336f70a..0432e02 100644 --- a/libgloss/doc/Makefile.in +++ b/libgloss/doc/Makefile.in @@ -11,7 +11,6 @@ # they apply. # -DESTDIR = srcdir = @srcdir@ VPATH = @srcdir@ @@ -132,7 +131,7 @@ install: install-info: info for i in *.info* ; do \ - $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \ + $(INSTALL_DATA) $$i $(infodir)/$$i ; \ done clean-info: diff --git a/libgloss/fr30/Makefile.in b/libgloss/fr30/Makefile.in index e0318a0..d318093 100644 --- a/libgloss/fr30/Makefile.in +++ b/libgloss/fr30/Makefile.in @@ -1,7 +1,6 @@ # # -DESTDIR = VPATH = @srcdir@ @srcdir@/.. srcdir = @srcdir@ objdir = . @@ -126,11 +125,11 @@ distclean maintainer-clean realclean: clean install: ${SIM_INSTALL} install-mon: - set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-sim: - set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib/$$x; done + set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib/$$x; done doc: info: diff --git a/libgloss/frv/Makefile.in b/libgloss/frv/Makefile.in deleted file mode 100644 index 64f3345..0000000 --- a/libgloss/frv/Makefile.in +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright (c) 2002 Red Hat, Inc -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. - -# Makefile for libgloss/frv. This is the board support -# code for the various frv targets. - -DESTDIR = -VPATH = @srcdir@ @srcdir@/.. -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ -AR_FLAGS = rc - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -CRT0 = crt0.o -SIM_BSP = libsim.a -SIM_OBJS = fstat.o \ - getpid.o \ - isatty.o \ - kill.o \ - putnum.o \ - sbrk.o \ - sim-close.o \ - sim-exit.o \ - sim-inbyte.o \ - sim-lseek.o \ - sim-open.o \ - sim-read.o \ - sim-time.o \ - sim-unlink.o \ - sim-write.o \ - stat.o - -#### Host specific Makefile fragment comes in here. -@host_makefile_frag@ - -all: $(CRT0) $(SIM_BSP) - -$(SIM_BSP): $(SIM_OBJS) - $(AR) $(ARFLAGS) $@ $? - $(RANLIB) $@ - -fstat.o: $(srcdir)/fstat.c -getpid.o: $(srcdir)/getpid.c -isatty.o: $(srcdir)/isatty.c -kill.o: $(srcdir)/kill.c -putnum.o: $(srcdir)/putnum.c -sbrk.o: $(srcdir)/sbrk.c -sim-close.o: $(srcdir)/sim-close.S -sim-exit.o: $(srcdir)/sim-exit.S -sim-inbyte.o: $(srcdir)/sim-inbyte.c -sim-lseek.o: $(srcdir)/sim-lseek.S -sim-open.o: $(srcdir)/sim-open.S -sim-read.o: $(srcdir)/sim-read.S -sim-time.o: $(srcdir)/sim-time.c -sim-unlink.o: $(srcdir)/sim-unlink.S -sim-write.o: $(srcdir)/sim-write.S -stat.o: $(srcdir)/stat.c - -install: $($(CPU)_INSTALL) - $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) - $(INSTALL_DATA) $(SIM_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP) - -clean mostlyclean: - rm -f *.o *.a - -distclean maintainer-clean realclean: clean - rm -f Makefile config.cache config.log config.status - -.PHONY: info dvi doc install-info clean-info -info doc dvi: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/frv/configure b/libgloss/frv/configure deleted file mode 100755 index 5d272c9..0000000 --- a/libgloss/frv/configure +++ /dev/null @@ -1,1204 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=crt0.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:744: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:823: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:884: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/libgloss/frv/configure.in b/libgloss/frv/configure.in deleted file mode 100644 index 877f6a0..0000000 --- a/libgloss/frv/configure.in +++ /dev/null @@ -1,90 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(crt0.S) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) diff --git a/libgloss/frv/crt0.S b/libgloss/frv/crt0.S deleted file mode 100644 index af14b91..0000000 --- a/libgloss/frv/crt0.S +++ /dev/null @@ -1,270 +0,0 @@ -/* crt0.S -- startup file for frv. - * - * Copyright (c) 2002, 2003 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - - /* statically store .Lcall's address so we can see if we are running - at the location we were linked for or a different location. */ - .data - .type EXT(__start_cmp),@object - .size EXT(__start_cmp),4 - .p2align 2 -EXT(__start_cmp): - .picptr .Lcall - - .globl __start - .weak _start - .text - .type __start,@function -__start: -_start: - call .Lcall /* set up _gp in a pic-friendly manor */ -.Lcall: movsg lr, gr4 - P(sethi) #gprelhi(.Lcall), gr5 - setlo #gprello(.Lcall), gr5 - P(sub) gr4, gr5, gr16 - -#if ! __FRV_FDPIC__ - sethi #gprelhi(EXT(_stack)), sp /* load up stack pointer */ - P(setlo) #gprello(EXT(_stack)), sp - setlos #0, fp /* zero fp to allow unwinders to stop */ - P(add) sp, gr16, sp - -#define FDPIC(...) -#else -#define FDPIC(...) __VA_ARGS__ - - /* The assembler will rightfully claim that - #hi/lo(__stacksize) are unsafe for PIC, but since __stacksize - is absolute, and we don't want it to be relocated, we should - be fine. */ - - sethi #gprelhi(EXT(__end)), gr6 - P(sethi) #hi(EXT(__stacksize+7)), gr5 - setlo #gprello(EXT(__end)), gr6 - P(setlo) #lo(EXT(__stacksize+7)), gr5 - add gr6, gr16, gr6 - add gr6, gr5, gr5 - andi gr5, -8, sp - - /* Using GPREL to compute _GLOBAL_OFFSET_TABLE_'s will force - the entire program to relocate as a unit, which is fine for - frv-elf. */ - - P(sethi) #gprelhi(EXT(_GLOBAL_OFFSET_TABLE_)), gr15 - setlo #gprello(EXT(_GLOBAL_OFFSET_TABLE_)), gr15 - /* We compute the value in a call-saved register (that happens - to be the PIC register in the EABI, and copy it to gr15 before - every call. */ - add gr15, gr16, gr17 -#endif - - sethi #gprelhi(EXT(__start_cmp)), gr5 - setlo #gprello(EXT(__start_cmp)), gr5 - ld @(gr5,gr16), gr6 - subcc gr4, gr6, gr8, icc0 - beq icc0, 0, .Lfixed - - P(st) gr4, @(gr5, gr16) /* update so if we restart no need to fixup */ - setlos 4, gr11 - -#if ! __FRV_FDPIC__ - - /* fixup the .ctors list */ - sethi #gprelhi(EXT(__CTOR_LIST__)), gr9 - P(sethi) #gprelhi(EXT(__CTOR_END__)), gr10 - setlo #gprello(EXT(__CTOR_LIST__)), gr9 - P(setlo) #gprello(EXT(__CTOR_END__)), gr10 - add gr9, gr16, gr9 - P(add) gr10, gr16, gr10 - addi gr9, 4, gr9 - P(subi) gr10, 4, gr10 - call EXT(__frv_fixptrs) - - /* fixup the .dtors list */ - P(sethi) #gprelhi(EXT(__DTOR_LIST__)), gr9 - sethi #gprelhi(EXT(__DTOR_END__)), gr10 - P(setlo) #gprello(EXT(__DTOR_LIST__)), gr9 - setlo #gprello(EXT(__DTOR_END__)), gr10 - P(add) gr9, gr16, gr9 - add gr10, gr16, gr10 - P(addi) gr9, 4, gr9 - subi gr10, 4, gr10 - call EXT(__frv_fixptrs) -#endif /* ! __FRV_FDPIC__ */ - - /* fixup the user .rofixup list */ - P(sethi) #gprelhi(EXT(__ROFIXUP_LIST__)), gr9 - sethi #gprelhi(EXT(__ROFIXUP_END__)), gr10 - P(setlo) #gprello(EXT(__ROFIXUP_LIST__)), gr9 - setlo #gprello(EXT(__ROFIXUP_END__)), gr10 - P(add) gr9, gr16, gr9 - add gr10, gr16, gr10 - FDPIC(mov gr17, gr15) - call EXT(__frv_fix_usrptrs) - -.Lfixed: - -/* HSR flags */ -#define HSR_ICE 0x80000000 /* Instruction cache enable */ -#define HSR_DCE 0x40000000 /* Data cache enable */ -#define HSR_CBM 0x08000000 /* Cache copy back mode */ -#define HSR_EIMM 0x04000000 /* Enable Instruction MMU */ -#define HSR_EDMM 0x02000000 /* Enable Data MMU */ -#define HSR_EMEM 0x00800000 /* Enable MMU miss exception mask */ -#define HSR_RME 0x00400000 /* Ram mode enable */ -#define HSR_SA 0x00001000 /* Start address */ -#define HSR_FRN 0x00000800 /* Number of FPRs */ -#define HSR_GRN 0x00000400 /* Number of GPRs */ -#define HSR_FRHE 0x00000200 /* FR Higher Enable */ -#define HSR_FRLE 0x00000100 /* FR Lower Enable */ -#define HSR_GRHE 0x00000080 /* GR Higher Enable */ -#define HSR_GRLE 0x00000040 /* GR Lower Enable */ - -#ifndef HSR_CLEAR -#define HSR_CLEAR 0 -#endif - -#ifndef HSR_SET -#ifndef FRV_NO_CACHE -#define HSR_SET (HSR_ICE|HSR_DCE|HSR_FRHE|HSR_FRLE|HSR_GRHE|HSR_GRLE) -#else -#define HSR_SET (HSR_FRHE|HSR_FRLE|HSR_GRHE|HSR_GRLE) -#endif -#endif - -/* PSR flags */ -#define PSR_ICE 0x00010000 /* In circuit emulation mode */ -#define PSR_NEM 0x00004000 /* Non-exception mode */ -#define PSR_CM 0x00002000 /* Conditional mode */ -#define PSR_BE 0x00001000 /* Big endian mode */ -#define PSR_EF 0x00000100 /* Enable floating point */ -#define PSR_EM 0x00000080 /* Enable media instructions */ -#define PSR_S 0x00000004 /* Enable supervisor mode */ -#define PSR_PS 0x00000002 /* Previous supervisor mode */ -#define PSR_ET 0x00000001 /* Enable interrupts */ - -#ifndef PSR_CLEAR -#if __FRV_FPR__ -#define PSR_CLEAR 0 -#else -#define PSR_CLEAR (PSR_EF|PSR_EM) -#endif -#endif - -#ifndef PSR_SET -#if __FRV_FPR__ -#define PSR_SET (PSR_NEM|PSR_CM|PSR_EF|PSR_EM) -#else -#define PSR_SET (PSR_NEM|PSR_CM) -#endif -#endif - - /* Enable floating point */ - movsg hsr0, gr4 - P(sethi) #hi(HSR_SET), gr5 - setlo #lo(HSR_SET), gr5 - P(sethi) #hi(~HSR_CLEAR), gr6 - setlo #lo(~HSR_CLEAR), gr6 - or gr4, gr5, gr4 - and gr4, gr6, gr4 - movgs gr4, hsr0 - - movsg psr, gr4 - P(sethi) #hi(PSR_SET), gr5 - setlo #lo(PSR_SET), gr5 - P(sethi) #hi(~PSR_CLEAR), gr6 - setlo #lo(~PSR_CLEAR), gr6 - or gr4, gr5, gr4 - and gr4, gr6, gr4 - movgs gr4, psr - - /* zero the bss area */ - P(sethi) #gprelhi(__bss_start), gr8 - sethi #gprelhi(__end), gr4 - P(setlo) #gprello(__bss_start), gr8 - setlo #gprello(__end), gr4 - P(add) gr8, gr16, gr8 - add gr4, gr16, gr4 - P(setlos) #0, gr9 - sub gr4, gr8, gr10 - FDPIC(mov gr17, gr15) - call EXT(memset) - - P(setlos) #0, gr8 /* zero argc, argv, envp */ - setlos #0, gr9 - P(setlos) #0, gr10 - - FDPIC(mov gr17, gr15) - call EXT(main) - FDPIC(mov gr17, gr15) - call EXT(exit) -.Lend: - .size __start,(.Lend-__start) - -#if ! __FRV_FDPIC__ - /* Routine to adjust pointers - gr8 = difference to adjust by - gr9 = starting address - gr10 = ending address + 4 - gr11 = amount to add to the pointer each iteration. */ - .globl EXT(__frv_fixptrs) - .type EXT(__frv_fixptrs),@function -EXT(__frv_fixptrs): - P(sub) gr9, gr11, gr9 - sub gr10, gr11, gr10 -.Lloop2: - cmp gr10, gr9, icc0 - bls icc0, 0, .Lret2 - - ldu @(gr9,gr11), gr5 - add gr8, gr5, gr5 - P(st) gr5, @(gr9,gr0) - bra .Lloop2 - -.Lret2: ret -.Lend2: - .size EXT(__frv_fixptrs),.Lend2-EXT(__frv_fixptrs) -#endif /* ! __FRV_FDPIC__ */ - - /* Routine to adjust statically initialized pointers - Note since these are pointers to pointers, they - need to be adjusted themsevles. - - gr8 = difference to adjust by - gr9 = starting address - gr10 = ending address + 4 - gr11 = amount to add to the pointer each iteration. */ - .globl EXT(__frv_fix_usrptrs) - .type EXT(__frv_fix_usrptrs),@function -EXT(__frv_fix_usrptrs): - P(sub) gr9, gr11, gr9 - sub gr10, gr11, gr10 -.Lloop3: - cmp gr10, gr9, icc0 - bls icc0, 0, .Lret3 - - ldu @(gr9,gr11), gr5 - ld @(gr5, gr8), gr6 - cmp gr6, gr0, icc0 /* skip pointers initialized to 0 */ - beq icc0, 0, .Lloop3 - - add gr8, gr6, gr6 - P(st) gr6, @(gr5,gr8) - bra .Lloop3 - -.Lret3: ret -.Lend3: - .size EXT(__frv_fix_usrptrs),.Lend2-EXT(__frv_fix_usrptrs) diff --git a/libgloss/frv/fstat.c b/libgloss/frv/fstat.c deleted file mode 100644 index 756f7b2..0000000 --- a/libgloss/frv/fstat.c +++ /dev/null @@ -1,30 +0,0 @@ -/* fstat.c -- get status of a file. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <sys/stat.h> -#include "glue.h" - -/* - * fstat -- Since we have no file system, we just return an error. - */ -int -_DEFUN (_fstat, (fd, buf), - int fd _AND - struct stat *buf) -{ - buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ - buf->st_blksize = 0; - - return (0); -} diff --git a/libgloss/frv/getpid.c b/libgloss/frv/getpid.c deleted file mode 100644 index e6d5682..0000000 --- a/libgloss/frv/getpid.c +++ /dev/null @@ -1,25 +0,0 @@ -/* getpid.c -- get the current process id. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * getpid -- only one process, so just return 1. - */ -int -_DEFUN (_getpid, (), - ) -{ - return __MYPID; -} diff --git a/libgloss/frv/isatty.c b/libgloss/frv/isatty.c deleted file mode 100644 index 7494531..0000000 --- a/libgloss/frv/isatty.c +++ /dev/null @@ -1,27 +0,0 @@ -/* isatty.c -- chek the terminal device. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * isatty -- returns 1 if connected to a terminal device, - * returns 0 if not. Since we're hooked up to a - * serial port, we'll say yes _AND return a 1. - */ -int -_DEFUN (isatty, (fd), - int fd) -{ - return (1); -} diff --git a/libgloss/frv/kill.c b/libgloss/frv/kill.c deleted file mode 100644 index 7c365fd..0000000 --- a/libgloss/frv/kill.c +++ /dev/null @@ -1,30 +0,0 @@ -/* kill.c -- remove a process. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -extern void _exit (int) __attribute__((__noreturn__)); - -/* - * kill -- go out via exit... - */ -int -_DEFUN (_kill, (pid, sig), - int pid _AND - int sig) -{ - if(pid == __MYPID) - _exit(sig); - return 0; -} diff --git a/libgloss/frv/print.c b/libgloss/frv/print.c deleted file mode 100644 index 8c8be84..0000000 --- a/libgloss/frv/print.c +++ /dev/null @@ -1,27 +0,0 @@ -/* print.c -- print a string on the output device. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * print -- do a raw print of a string - */ -void -_DEFUN (_print, (ptr), -char *ptr) -{ - while (*ptr) { - outbyte (*ptr++); - } -} diff --git a/libgloss/frv/putnum.c b/libgloss/frv/putnum.c deleted file mode 100644 index c7fa121..0000000 --- a/libgloss/frv/putnum.c +++ /dev/null @@ -1,41 +0,0 @@ -/* putnum.c -- put a hex number on the output device. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * putnum -- print a 32 bit number in hex - */ -void -_DEFUN (_putnum, (num), - unsigned int num) -{ - char buf[9]; - int cnt; - char *ptr; - int digit; - - ptr = buf; - for (cnt = 7 ; cnt >= 0 ; cnt--) { - digit = (num >> (cnt * 4)) & 0xf; - - if (digit <= 9) - *ptr++ = (char) ('0' + digit); - else - *ptr++ = (char) ('a' - 10 + digit); - } - - *ptr = (char) 0; - print (buf); -} diff --git a/libgloss/frv/sbrk.c b/libgloss/frv/sbrk.c deleted file mode 100644 index 469257d..0000000 --- a/libgloss/frv/sbrk.c +++ /dev/null @@ -1,54 +0,0 @@ -/* sbrk.c -- allocate memory dynamically. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <errno.h> -#include "glue.h" - -/* just in case, most boards have at least some memory */ -#ifndef RAMSIZE -# define RAMSIZE (caddr_t)0x100000 -#endif - -char *__heap_ptr = (char *)&_end; - -/* - * sbrk -- changes heap size size. Get nbytes more - * RAM. We just increment a pointer in what's - * left of memory on the board. - */ -char * -_sbrk (nbytes) - int nbytes; -{ - char *base; - char *sp; - - base = __heap_ptr; - __heap_ptr += nbytes; - - return base; -/* FIXME: We really want to make sure we don't run out of RAM, but this - * isn't very portable. - */ -#if 0 - if ((RAMSIZE - heap_ptr - nbytes) >= 0) { - base = heap_ptr; - heap_ptr += nbytes; - return (base); - } else { - errno = ENOMEM; - return ((char *)-1); - } -#endif -} diff --git a/libgloss/frv/sim-close.S b/libgloss/frv/sim-close.S deleted file mode 100644 index 96caf0a..0000000 --- a/libgloss/frv/sim-close.S +++ /dev/null @@ -1,40 +0,0 @@ -/* - * sim-close.S -- close interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- File descriptor to close. - * - * Output: - * gr8 -- 0 or -1. - * errno -- Set if an error - */ - - .globl EXT(_close) - .type EXT(_close),@function - .weak EXT(close) - .text -EXT(_close): -EXT(close): - setlos #SYS_close,gr7 - tira gr0,#0 - ret -.Lend: - .size EXT(_close),.Lend-EXT(_close) diff --git a/libgloss/frv/sim-exit.S b/libgloss/frv/sim-exit.S deleted file mode 100644 index 7b6d4a0..0000000 --- a/libgloss/frv/sim-exit.S +++ /dev/null @@ -1,36 +0,0 @@ -/* - * sim-exit.S -- _exit interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- exit value - * - * Output: - * none - */ - - .globl EXT(_exit) - .type EXT(_exit),@function - .text -EXT(_exit): - setlos #SYS_exit,gr7 - tira gr0,#0 -.Lend: - .size EXT(_exit),.Lend-EXT(_exit) diff --git a/libgloss/frv/sim-inbyte.c b/libgloss/frv/sim-inbyte.c deleted file mode 100644 index 9d39751..0000000 --- a/libgloss/frv/sim-inbyte.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * sim-inbyte.c -- read a character from standard input. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -int -inbyte () -{ - char c; - - if (read (0, &c, 1) <= 0) - return -1; - - return c; -} diff --git a/libgloss/frv/sim-lseek.S b/libgloss/frv/sim-lseek.S deleted file mode 100644 index f545e90..0000000 --- a/libgloss/frv/sim-lseek.S +++ /dev/null @@ -1,42 +0,0 @@ -/* - * sim-lseek.S -- write interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- File descriptor - * gr9 -- Offset - * gr10 -- Base from which offset should be taken - * - * Output: - * gr8 -- Zero on success, -1 on failure. - * errno -- Set if an error - */ - - .globl EXT(_lseek) - .type EXT(_lseek),@function - .weak EXT(lseek) - .text -EXT(_lseek): -EXT(lseek): - setlos #SYS_lseek,gr7 - tira gr0,#0 - ret -.Lend: - .size EXT(_lseek),.Lend-EXT(_lseek) diff --git a/libgloss/frv/sim-open.S b/libgloss/frv/sim-open.S deleted file mode 100644 index 9a8fd00..0000000 --- a/libgloss/frv/sim-open.S +++ /dev/null @@ -1,42 +0,0 @@ -/* - * sim-open.S -- open interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- File name to open. - * gr9 -- open mode. - * gr10 -- optionally, the permission bits to set the file to. - * - * Output: - * gr8 -- file descriptor or -1. - * errno -- Set if an error - */ - - .globl EXT(_open) - .type EXT(_open),@function - .weak EXT(open) - .text -EXT(_open): -EXT(open): - setlos #SYS_open,gr7 - tira gr0,#0 - ret -.Lend: - .size EXT(_open),.Lend-EXT(_open) diff --git a/libgloss/frv/sim-read.S b/libgloss/frv/sim-read.S deleted file mode 100644 index e058ce8..0000000 --- a/libgloss/frv/sim-read.S +++ /dev/null @@ -1,42 +0,0 @@ -/* - * sim-read.S -- read interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- File descriptor. - * gr9 -- Buffer to be read into. - * gr10 -- Length of the buffer. - * - * Output: - * gr8 -- Length read or -1. - * errno -- Set if an error - */ - - .globl EXT(_read) - .type EXT(_read),@function - .weak EXT(read) - .text -EXT(_read): -EXT(read): - setlos #SYS_read,gr7 - tira gr0,#0 - ret -.Lend: - .size EXT(_read),.Lend-EXT(_read) diff --git a/libgloss/frv/sim-time.c b/libgloss/frv/sim-time.c deleted file mode 100644 index b28ceca..0000000 --- a/libgloss/frv/sim-time.c +++ /dev/null @@ -1,78 +0,0 @@ -/* sim-time.c -- stubs so clock can be linked in. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <errno.h> -#include <sys/time.h> -#include <sys/times.h> -#include "glue.h" - -/* - * time -- simulator interface to return current time in seconds. - */ -__asm__ ("\ - .text\n\ - .globl _sim_time\n\ - .type _sim_time,@function\n\ -_sim_time:\n\ - setlos #18, gr7\n\ - tira gr0, #0\n\ - ret\n\ -.Lsim:\n\ - .size _sim_time,.Lsim-_sim_time"); - -extern time_t _sim_time (void) __asm__("_sim_time"); - - -/* - * time -- return current time in seconds. - */ -time_t -_DEFUN (time, time (t), - time_t *t) -{ - time_t ret = _sim_time (); - - if (t) - *t = ret; - - return ret; -} - -/* - * _times -- no clock, so return an error. - */ -int -_DEFUN (_times, _times (buf), - struct tms *buf) -{ - errno = EINVAL; - return (-1); -} - -/* - * _gettimeofday -- implement in terms of time, which means we can't return the - * microseconds. - */ -int -_DEFUN (_gettimeofday, _gettimeofday (tv, tz), - struct timeval *tv _AND - struct timezone *tz) -{ - if (tz) - tz->tz_minuteswest = tz->tz_dsttime = 0; - - tv->tv_usec = 0; - tv->tv_sec = _sim_time (); - return 0; -} diff --git a/libgloss/frv/sim-unlink.S b/libgloss/frv/sim-unlink.S deleted file mode 100644 index bb44f35..0000000 --- a/libgloss/frv/sim-unlink.S +++ /dev/null @@ -1,40 +0,0 @@ -/* - * sim-unlink.S -- write interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- Filename - * - * Output: - * gr8 -- Zero on success, -1 on failure. - * errno -- Set if an error - */ - - .globl EXT(_unlink) - .type EXT(_unlink),@function - .weak EXT(unlink) - .text -EXT(_unlink): -EXT(unlink): - setlos #SYS_unlink,gr7 - tira gr0,#0 - ret -.Lend: - .size EXT(_unlink),.Lend-EXT(_unlink) diff --git a/libgloss/frv/sim-write.S b/libgloss/frv/sim-write.S deleted file mode 100644 index 580f9bd..0000000 --- a/libgloss/frv/sim-write.S +++ /dev/null @@ -1,42 +0,0 @@ -/* - * sim-write.S -- write interface for frv simulator - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <frv-asm.h> - -#include "syscall.h" - -/* - * Input: - * gr8 -- File descriptor. - * gr9 -- String to be printed. - * gr10 -- Length of the string. - * - * Output: - * gr8 -- Length written or -1. - * errno -- Set if an error - */ - - .globl EXT(_write) - .type EXT(_write),@function - .weak EXT(write) - .text -EXT(_write): -EXT(write): - setlos #SYS_write,gr7 - tira gr0,#0 - ret -.Lend: - .size EXT(_write),.Lend-EXT(_write) diff --git a/libgloss/frv/stat.c b/libgloss/frv/stat.c deleted file mode 100644 index 094ab48..0000000 --- a/libgloss/frv/stat.c +++ /dev/null @@ -1,30 +0,0 @@ -/* stat.c -- Get the status of a file. - * - * Copyright (c) 2002 Red Hat, Inc - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <sys/stat.h> -#include <errno.h> -#include "glue.h" - -/* - * stat -- Since we have no file system, we just return an error. - */ -int -_DEFUN (_stat, (path, buf), - const char *path _AND - struct stat *buf) -{ - errno = EIO; - return (-1); -} - diff --git a/libgloss/hp74x/Makefile.in b/libgloss/hp74x/Makefile.in index 307da0b..5a90c9b 100644 --- a/libgloss/hp74x/Makefile.in +++ b/libgloss/hp74x/Makefile.in @@ -22,7 +22,6 @@ # for the HP-PRO hppa embedded boards. <rob@cygnus.com> # -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -101,9 +100,9 @@ hpstub: $(OBJS) $(OBJS) -lc -m >stub.map install: - $(INSTALL_PROGRAM) $(STUBLIB) $(DESTDIR)$(tooldir)/lib/$(MULTISUBDIR)$(STUBLIB) - $(INSTALL_PROGRAM) $(SHARED_DIR)/$(STUBCRT0) $(DESTDIR)$(tooldir)/lib/$(MULTISUBDIR)$(STUBCRT0) - $(INSTALL_PROGRAM) $(srcdir)/$(LDSCRIPT) $(DESTDIR)$(tooldir)/lib/$(LDSCRIPT) + $(INSTALL_PROGRAM) $(STUBLIB) $(tooldir)/lib/$(MULTISUBDIR)$(STUBLIB) + $(INSTALL_PROGRAM) $(SHARED_DIR)/$(STUBCRT0) $(tooldir)/lib/$(MULTISUBDIR)$(STUBCRT0) + $(INSTALL_PROGRAM) $(srcdir)/$(LDSCRIPT) $(tooldir)/lib/$(LDSCRIPT) .c.o: $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< diff --git a/libgloss/hp74x/configure b/libgloss/hp74x/configure index 9103894..efa6b88 100755 --- a/libgloss/hp74x/configure +++ b/libgloss/hp74x/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -578,7 +589,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:582: checking for a BSD compatible install" >&5 +echo "configure:593: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -634,7 +645,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:638: checking for $ac_word" >&5 +echo "configure:649: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -664,7 +675,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:668: checking for $ac_word" >&5 +echo "configure:679: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -715,7 +726,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:719: checking for $ac_word" >&5 +echo "configure:730: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -747,7 +758,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -758,12 +769,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 762 "configure" +#line 773 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -789,12 +800,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:798: checking whether we are using GNU C" >&5 +echo "configure:809: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -803,7 +814,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -822,7 +833,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:826: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:837: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -862,7 +873,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:866: checking for $ac_word" >&5 +echo "configure:877: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/libgloss/i386/Makefile.in b/libgloss/i386/Makefile.in index 536f37f..d68657a 100644 --- a/libgloss/i386/Makefile.in +++ b/libgloss/i386/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (c) 1997, 2000 Cygnus Support +# Copyright (c) 1997 Cygnus Support # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided @@ -10,7 +10,6 @@ # the new terms are clearly indicated on the first page of each file where # they apply. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -88,10 +87,10 @@ libcygmon.a: $(CYGMON_OBJS) ${RANLIB} $@ cygmon-salib.o: ${srcdir}/cygmon-salib.c - $(CC) -c $(CFLAGS) @NEED_UNDERSCORE@ @IS_COFF@ @IS_AOUT@ $(<) -o $@ + $(CC) -c $(CFLAGS) @NEED_UNDERSCORE@ @IS_COFF@ $(<) -o $@ cygmon-crt0.o: ${srcdir}/cygmon-crt0.S - $(CC) -c $(CFLAGS) @NEED_UNDERSCORE@ @IS_COFF@ @IS_AOUT@ $(<) -o $@ + $(CC) -c $(CFLAGS) @NEED_UNDERSCORE@ @IS_COFF@ $(<) -o $@ doc: @@ -103,12 +102,12 @@ distclean maintainer-clean realclean: clean .PHONY: install info install-info clean-info install: - $(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) + $(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) @for bsp in ${BSP}; do\ - $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ + $(INSTALL_PROGRAM) $${bsp} $(tooldir)/lib${MULTISUBDIR}; \ done @for script in ${SCRIPTS}; do\ - $(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ + $(INSTALL_DATA) ${srcdir}/$${script}.ld $(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ done info: diff --git a/libgloss/i386/configure b/libgloss/i386/configure index 534c8b4..d0e35b2 100755 --- a/libgloss/i386/configure +++ b/libgloss/i386/configure @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 +# Generated automatically using autoconf version 2.12.1 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -333,7 +333,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" + echo "configure generated by autoconf version 2.12.1" exit 0 ;; -with-* | --with-*) @@ -503,11 +503,9 @@ ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross -ac_exeext= -ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then @@ -583,7 +581,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 +echo "configure:585: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -604,7 +602,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 +echo "configure:606: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -622,7 +620,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 +echo "configure:624: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -676,12 +674,12 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 +echo "configure:678: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in @@ -724,8 +722,6 @@ echo "$ac_t""$INSTALL" 1>&6 # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' @@ -736,29 +732,24 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # autoconf should provide a way to do this. - case "$target" in *coff) IS_COFF="-DCOFF" ;; - *aout) - IS_AOUT="-DAOUT" - ;; esac # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:753: checking for $ac_word" >&5 +echo "configure:746: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" @@ -779,17 +770,16 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:783: checking for $ac_word" >&5 +echo "configure:775: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do + for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then @@ -828,7 +818,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:832: checking whether we are using GNU C" >&5 +echo "configure:823: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -837,7 +827,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -852,7 +842,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:856: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -887,20 +877,18 @@ LD=${LD-ld} - # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:895: checking for $ac_word" >&5 +echo "configure:885: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" @@ -948,7 +936,7 @@ EOF # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in + case `(ac_space=' '; set) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). @@ -1027,7 +1015,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" + echo "$CONFIG_STATUS generated by autoconf version 2.12.1" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -1051,7 +1039,6 @@ s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g @@ -1086,14 +1073,12 @@ s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@CC@%$CC%g s%@AS@%$AS%g s%@AR@%$AR%g s%@LD@%$LD%g s%@IS_COFF@%$IS_COFF%g -s%@IS_AOUT@%$IS_AOUT%g s%@NEED_UNDERSCORE@%$NEED_UNDERSCORE%g s%@RANLIB@%$RANLIB%g s%@host_makefile_frag_path@%$host_makefile_frag_path%g diff --git a/libgloss/i386/configure.in b/libgloss/i386/configure.in index 722241c..fe9224c 100644 --- a/libgloss/i386/configure.in +++ b/libgloss/i386/configure.in @@ -77,9 +77,6 @@ case "$target" in *coff) IS_COFF="-DCOFF" ;; - *aout) - IS_AOUT="-DAOUT" - ;; esac LIB_AC_PROG_CC @@ -90,7 +87,6 @@ AC_SUBST(AR) LD=${LD-ld} AC_SUBST(LD) AC_SUBST(IS_COFF) -AC_SUBST(IS_AOUT) AC_SUBST(NEED_UNDERSCORE) AC_PROG_RANLIB diff --git a/libgloss/i386/cygmon-crt0.S b/libgloss/i386/cygmon-crt0.S index 1c4535e..9be0209 100644 --- a/libgloss/i386/cygmon-crt0.S +++ b/libgloss/i386/cygmon-crt0.S @@ -1,7 +1,7 @@ /* * crt0 startup code for user programs running under Cygmon * - * Copyright (c) 1998, 2000 Cygnus Support + * Copyright (c) 1998 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided @@ -14,9 +14,11 @@ * they apply. */ -#define _S2(P,X) P ## X -#define _S1(P,X) _S2(P,X) -#define SYM(X) _S1(__USER_LABEL_PREFIX__,X) +#ifndef NEED_UNDERSCORE +#define SYM(X) X +#else +#define SYM(X) _ ## X +#endif .data .align 8 @@ -29,51 +31,52 @@ SYM(argc): .text .align 4 - .globl __start -__start: + .globl SYM(_start) +SYM(_start): /* see if the stack is already setup. if not, then default * to using the value of %sp as set by the ROM monitor */ - movl $__stack, %eax - testl %eax, %eax - jz 1f - movl %eax, %esp + lea __stack,%eax + cmpl $0,%eax + jz 1f + mov %eax, %esp 1: mov $0, %ebp - movl $__bss_start, %edi - movl $__bss_end, %ecx - subl %edi, %ecx - xorl %eax, %eax - rep; stosb + lea __bss_start, %eax +2: + movb $0,(%eax) + inc %eax + cmp $__bss_end,%eax + jl 2b + +2: + pushl $SYM(__sigtramp) + pushl $0 + call SYM(__install_signal_handler) + add $4, %esp - pushl $SYM(__sigtramp) - pushl $0 - call SYM(__install_signal_handler) - popl %eax + pushl $SYM(__do_global_dtors) + call SYM(atexit) + add $4, %esp - pushl $SYM(__do_global_dtors) - call SYM(atexit) - popl %eax + call SYM(__do_global_ctors) - call SYM(__do_global_ctors) + pushl $SYM(argc) + call SYM(__get_program_arguments) + add $4, %esp - pushl $SYM(argc) - call SYM(__get_program_arguments) - popl %ecx - - movl SYM(argc), %ecx - pushl %eax - pushl %ecx - call SYM(main) - popl %ecx - popl %edx + pushl %eax + lea SYM(argc), %ebx + pushl (%ebx) + call SYM(main) + add $8, %esp /* call exit from the C library so atexit gets called, and the * C++ destructors get run. This calls our exit routine below * when it's done. */ - pushl %eax + pushl %eax call SYM(exit) 3: - jmp 3b + jmp 3b diff --git a/libgloss/i386/cygmon-gmon.c b/libgloss/i386/cygmon-gmon.c index 480b2ec..30b1147 100644 --- a/libgloss/i386/cygmon-gmon.c +++ b/libgloss/i386/cygmon-gmon.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1991, 2000 The Regents of the University of California. + * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -221,10 +221,10 @@ _mcount() if (! already_setup) { - extern _etext(); + extern etext(); extern _ftext(); already_setup = 1; - monstartup(_ftext, _etext); + monstartup(_ftext, etext); atexit(_mcleanup); } /* diff --git a/libgloss/i386/cygmon-salib.c b/libgloss/i386/cygmon-salib.c index 466045d..e0d5e72 100644 --- a/libgloss/i386/cygmon-salib.c +++ b/libgloss/i386/cygmon-salib.c @@ -1,7 +1,7 @@ /* * Standard x86 syscalls for user programs running under Cygmon * - * Copyright (c) 1998, 2000 Cygnus Support + * Copyright (c) 1998 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided @@ -22,15 +22,8 @@ extern int errno; _syscall3(int,write,int,i,char *,c,int,len); -#if 0 + _syscall3(int,read,int,i,char *,c,int,len); -#else -int -read (int des, char *dest, int len) -{ - return -1; -} -#endif _syscall2(int,kill,int,pid,int,signal); @@ -50,11 +43,7 @@ _syscall1(int, close, int, fd); int open (const char *filename, int mode, ...) { -#if 0 return __open (filename, mode, 0644); -#else - return -1; -#endif } /* Ultra-super cheezy. */ @@ -64,12 +53,6 @@ isatty (int i) return i<3; } -int unlink (const char *p) -{ - return -1; -} - - char * sbrk (int amt) { @@ -125,7 +108,7 @@ clock () return t.tv_sec * 1000 + (t.tv_usec / 1000); } -#if ! defined(COFF) && ! defined(AOUT) +#ifndef COFF typedef void (*ctp)(); void __do_global_ctors () diff --git a/libgloss/i386/cygmon.ld b/libgloss/i386/cygmon.ld index ae0d908..03bbb60 100644 --- a/libgloss/i386/cygmon.ld +++ b/libgloss/i386/cygmon.ld @@ -1,5 +1,5 @@ STARTUP(cygmon-crt0.o) -ENTRY(__start) +ENTRY(_start) GROUP(-lcygmon -lc -lcygmon -lgcc) SEARCH_DIR(.) __DYNAMIC = 0; @@ -34,7 +34,6 @@ SECTIONS *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); *(.fini) - . = ALIGN(4); __CTOR_LIST__ = .; CONSTRUCTORS LONG(-1) @@ -46,28 +45,16 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - PROVIDE(_etext = .); - PROVIDE(__etext = .); + etext = .; + _etext = .; } . = .; .rdata : { *(.rdata) } - .rodata : { - *(.rodata) - *(.rodata.*) - } - .eh_frame : - { - PROVIDE (__EH_FRAME_BEGIN__ = .); - *(.eh_frame) - PROVIDE (__EH_FRAME_END__ = .); - } - _fdata = ALIGN(16); + _fdata = ALIGN(16); .data : { *(.data) - *(.gcc_except_table) - *(.gcc_exc) } . = ALIGN(8); _gp = . + 0x8000; @@ -82,20 +69,20 @@ SECTIONS *(.sdata) } . = ALIGN(4); - PROVIDE(_edata = .); - PROVIDE(__edata = .); + edata = .; + _edata = .; fbss = .; _fbss = .; .sbss : { - PROVIDE(__bss_start = .); *(.sbss) *(.scommon) } .bss : { + __bss_start = . ; *(.bss) *(COMMON) - PROVIDE(__bss_end = .); + __bss_end = . ; } - PROVIDE(_end = .); - PROVIDE(__end = .); + end = .; + _end = .; } diff --git a/libgloss/i960/Makefile.in b/libgloss/i960/Makefile.in index 0ca1597..5b483dc 100644 --- a/libgloss/i960/Makefile.in +++ b/libgloss/i960/Makefile.in @@ -1,7 +1,6 @@ # # -DESTDIR = VPATH = @srcdir@ @srcdir@/.. srcdir = @srcdir@ objdir = . @@ -125,11 +124,11 @@ distclean maintainer-clean realclean: clean install: ${MON_INSTALL} install-mon: - set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-sim: - set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib/$$x; done + set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib/$$x; done doc: info: diff --git a/libgloss/iq2000/Makefile.in b/libgloss/iq2000/Makefile.in deleted file mode 100644 index 21cc286..0000000 --- a/libgloss/iq2000/Makefile.in +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright (c) 2000, Cygnus Solutions, A Red Hat Company -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. - -DESTDIR = -VPATH = @srcdir@ -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ -program_transform_name = @program_transform_name@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -SHELL = /bin/sh - -CC = @CC@ - -#AS = @AS@ -AS = `if [ -f ${objroot}/../gas/as.new ] ; \ - then echo ${objroot}/../gas/as.new ; \ - else echo as ; fi` - -AR = @AR@ - -#LD = @LD@ -LD = `if [ -f ${objroot}/../ld/ld.new ] ; \ - then echo ${objroot}/../ld/ld.new ; \ - else echo ld ; fi` - -RANLIB = @RANLIB@ - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -CRT0 = crt0.o - -# Generic object files common to all targets. -GENOBJS = _exit.o access.o chmod.o close.o crt1.o \ - fstat.o getpid.o gettime.o isatty.o \ - kill.o lseek.o open.o read.o \ - sbrk.o stat.o time.o trap.o unlink.o utime.o write.o - -# Object files specific to particular targets. -EVALOBJS = ${GENOBJS} - -CFLAGS = -g - -GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \ - then echo -L${objroot}/../gcc ; fi` - -SCRIPTS = sim -BSP = libeval.a - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -# -# build a test program for each target board. Just trying to get -# it to link is a good test, so we ignore all the errors for now. -# - -all: ${CRT0} test.o ${BSP} - -# -# here's where we build the board support packages for each target -# - -libeval.a: $(EVALOBJS) - ${AR} ${ARFLAGS} $@ $(EVALOBJS) - ${RANLIB} $@ - - -# compile a fully linked binary. The -Wl,-T*.ld is for the linker -# script. By using -Wl, the linker script is put on the proper place -# in the comand line for ld, and all the symbols will get fully -# resolved. - -test: $(CRT0) test.o - ${CC} $(CFLAGS_FOR_TARGET) -L${srcdir} -L${objdir} \ - test.o -o $@ $(NEWLIB_LDFLAGS) - @echo Done... - -doc: - -clean mostlyclean: - rm -f a.out core *.i *~ *.o *-test *.srec *.dis *.map *.x - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status a.out - -.PHONY: install info install-info clean-info -install: - $(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) - @for bsp in ${BSP}; do\ - $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ - done - @for script in ${SCRIPTS}; do\ - $(INSTALL_DATA) $(srcdir)/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ - done - -info: -install-info: -clean-info: - -test.o: ${srcdir}/test.c - -# these are for the BSPs -${CRT0}: ${srcdir}/crt0.S - -# target specific makefile fragment comes in here. -@target_makefile_frag@ - -Makefile: Makefile.in config.status @host_makefile_frag_path@ @target_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/iq2000/_exit.c b/libgloss/iq2000/_exit.c deleted file mode 100644 index 318984b..0000000 --- a/libgloss/iq2000/_exit.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -static void _do_dtors() -{ - /* The loop variable is static so that if a destructor calls exit, - and we return here, we simply continue with the next destructor. */ - typedef void (*pfunc) (); - extern pfunc __dtors[]; - extern pfunc __dtors_end[]; - static pfunc *p = __dtors; - - while (p < __dtors_end) - (*p++) (); -} - - -void _exit (n) -{ - extern unsigned char __eh_frame_begin[]; - extern void __deregister_frame_info (void *); - - /* Destructors should be done earlier because they need to be done before the - files are closed, but here is better than nowhere (and this balances the - constructors done in crt1.c. */ - _do_dtors(); - - /* Deregister any eh frames. */ - __deregister_frame_info (__eh_frame_begin); - - TRAP0 (SYS_exit, n, 0, 0); -} diff --git a/libgloss/iq2000/access.c b/libgloss/iq2000/access.c deleted file mode 100644 index 8e08b3a..0000000 --- a/libgloss/iq2000/access.c +++ /dev/null @@ -1,33 +0,0 @@ -/* This is file ACCESS.C */ -/* - * Copyright (C) 1993 DJ Delorie - * All rights reserved. - * - * Redistribution and use in source and binary forms is permitted - * provided that the above copyright notice and following paragraph are - * duplicated in all such forms. - * - * This file is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - -#include <fcntl.h> -#include <sys/stat.h> -#include <unistd.h> - -int access(const char *fn, int flags) -{ - struct stat s; - if (stat(fn, &s)) - return -1; - if (s.st_mode & S_IFDIR) - return 0; - if (flags & W_OK) - { - if (s.st_mode & S_IWRITE) - return 0; - return -1; - } - return 0; -} - diff --git a/libgloss/iq2000/chmod.c b/libgloss/iq2000/chmod.c deleted file mode 100644 index 8200506..0000000 --- a/libgloss/iq2000/chmod.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -chmod (const char *path, mode_t mode) -{ - return TRAP0 (SYS_chmod, path, mode, 0); -} diff --git a/libgloss/iq2000/chown.c b/libgloss/iq2000/chown.c deleted file mode 100644 index 6630d3b..0000000 --- a/libgloss/iq2000/chown.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - - -int -chown (const char *path, short owner, short group) -{ - return TRAP0 (SYS_chown, path, owner, group); -} diff --git a/libgloss/iq2000/close.c b/libgloss/iq2000/close.c deleted file mode 100644 index 8474b38..0000000 --- a/libgloss/iq2000/close.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_close (int file) -{ - return TRAP0 (SYS_close, file, 0, 0); -} diff --git a/libgloss/iq2000/configure b/libgloss/iq2000/configure deleted file mode 100755 index b9cfbab..0000000 --- a/libgloss/iq2000/configure +++ /dev/null @@ -1,1232 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -sitefile= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --site-file=FILE use FILE as the site file - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -site-file | --site-file | --site-fil | --site-fi | --site-f) - ac_prev=sitefile ;; - -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) - sitefile="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=crt0.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$sitefile"; then - if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi - fi -else - CONFIG_SITE="$sitefile" -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:598: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:619: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:637: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:691: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are building a library that must be included in all links, so we -# can't link an executable until this lib is built. -# autoconf should provide a way to do this. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:755: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:785: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:834: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:894: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -if test "${with_multisubdir}" = "m32"; then - LD_TYPE="m32" -else - LD_TYPE="m16" -fi - - -host_makefile_frag_path=$host_makefile_frag - - -target_makefile_frag_path=$target_makefile_frag - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@LD_TYPE@%$LD_TYPE%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g -s%@target_makefile_frag_path@%$target_makefile_frag_path%g -/@target_makefile_frag@/r $target_makefile_frag -s%@target_makefile_frag@%%g -s%@part_specific_obj@%$part_specific_obj%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - - - diff --git a/libgloss/iq2000/configure.in b/libgloss/iq2000/configure.in deleted file mode 100644 index 4baabcb..0000000 --- a/libgloss/iq2000/configure.in +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright (c) 2000, Cygnus Solutions, A Red Hat Company -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. -# -# Process this file with autoconf to produce a configure script. -# -AC_PREREQ(2.5)dnl -AC_INIT(crt0.S) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are building a library that must be included in all links, so we -# can't link an executable until this lib is built. -# autoconf should provide a way to do this. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -if test "${with_multisubdir}" = "m32"; then - LD_TYPE="m32" -else - LD_TYPE="m16" -fi -AC_SUBST(LD_TYPE) - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) -target_makefile_frag_path=$target_makefile_frag -AC_SUBST(target_makefile_frag_path) -AC_SUBST_FILE(target_makefile_frag) -AC_SUBST(part_specific_obj) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) - - diff --git a/libgloss/iq2000/creat.c b/libgloss/iq2000/creat.c deleted file mode 100644 index 1003a2a..0000000 --- a/libgloss/iq2000/creat.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -creat (const char *path, - int mode) -{ - return TRAP0 (SYS_creat, path, mode, 0); -} diff --git a/libgloss/iq2000/crt0.S b/libgloss/iq2000/crt0.S deleted file mode 100644 index 12d2a5b..0000000 --- a/libgloss/iq2000/crt0.S +++ /dev/null @@ -1,56 +0,0 @@ -##============================================================================== -## -## crt0.S -## -## IQ2000 startup code -## -##============================================================================== -## -## Copyright (c) 2000, Cygnus Solutions, A Red Hat Company -## -## The authors hereby grant permission to use, copy, modify, distribute, -## and license this software and its documentation for any purpose, provided -## that existing copyright notices are retained in all copies and that this -## notice is included verbatim in any distributions. No written agreement, -## license, or royalty fee is required for any of the authorized uses. -## Modifications to this software may be copyrighted by their authors -## and need not follow the licensing terms described here, provided that -## the new terms are clearly indicated on the first page of each file where -## they apply. -## - -##------------------------------------------------------------------------------ - - .file "crt0.S" - -##------------------------------------------------------------------------------ -## Startup code - .section .text - .global _start -_start: - lui %29,%hi(__stack) - ori %29,%29,%lo(__stack) - - lui %24,%hi(_edata) # get start of bss - ori %24,%24,%lo(_edata) - - lui %25,%hi(_end) # get end of bss - ori %25,%25,%lo(_end) - - beq %24,%25,.L0 # check if end and start are the same - # do nothing if no bss - -.L1: - sb %0,0(%24) # clear a byte and bump pointer - addi %24,%24,1 - bne %24,%25,.L1 - nop - -.L0: - jal _main # call _main to run ctors/dtors - nop - xor %4,%4,%4 - jal main # call main program - xor %5,%5,%5 - jal exit # all done, no need to return or - or %4,%0,%2 # exit with main's return value diff --git a/libgloss/iq2000/crt1.c b/libgloss/iq2000/crt1.c deleted file mode 100644 index fb333a8..0000000 --- a/libgloss/iq2000/crt1.c +++ /dev/null @@ -1,31 +0,0 @@ - - -/* This object reserves enough space for an EH frame initialization -object. */ - -struct object { - void *reserve[7]; -}; - - -void _main () -{ - static int initialized; - static struct object object; - if (! initialized) - { - typedef void (*pfunc) (); - extern pfunc __ctors[]; - extern pfunc __ctors_end[]; - extern unsigned char __eh_frame_begin[]; - extern void __register_frame_info (void *, struct object *); - - pfunc *p; - - initialized = 1; - for (p = __ctors_end; p > __ctors; ) - (*--p) (); - - __register_frame_info (__eh_frame_begin, &object); - } -} diff --git a/libgloss/iq2000/execv.c b/libgloss/iq2000/execv.c deleted file mode 100644 index 16f3ca5..0000000 --- a/libgloss/iq2000/execv.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -execv (const char *path, char *const argv[]) -{ - return TRAP0 (SYS_execv, path, argv, 0); -} diff --git a/libgloss/iq2000/execve.c b/libgloss/iq2000/execve.c deleted file mode 100644 index bd6c7a2..0000000 --- a/libgloss/iq2000/execve.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_execve (const char *path, char *const argv[], char *const envp[]) -{ - return TRAP0 (SYS_execve, path, argv, envp); -} diff --git a/libgloss/iq2000/fork.c b/libgloss/iq2000/fork.c deleted file mode 100644 index 53df5a9..0000000 --- a/libgloss/iq2000/fork.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_fork () -{ - return TRAP0 (SYS_fork, 0, 0, 0); -} diff --git a/libgloss/iq2000/fstat.c b/libgloss/iq2000/fstat.c deleted file mode 100644 index c3b2fa0..0000000 --- a/libgloss/iq2000/fstat.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_fstat (int file, - struct stat *st) -{ - st->st_mode = S_IFCHR; - st->st_blksize = 4096; - return 0; -} diff --git a/libgloss/iq2000/getpid.c b/libgloss/iq2000/getpid.c deleted file mode 100644 index 20ab186..0000000 --- a/libgloss/iq2000/getpid.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -_getpid (n) -{ - return 1; -} diff --git a/libgloss/iq2000/gettime.c b/libgloss/iq2000/gettime.c deleted file mode 100644 index 1a04267..0000000 --- a/libgloss/iq2000/gettime.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" -#include "sys/time.h" - - -int -_gettimeofday (struct timeval *tp, void *tzp) -{ - return TRAP0 (SYS_gettimeofday, tp, tzp, 0); -} diff --git a/libgloss/iq2000/isatty.c b/libgloss/iq2000/isatty.c deleted file mode 100644 index 0930a53..0000000 --- a/libgloss/iq2000/isatty.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -isatty (fd) - int fd; -{ - return 1; -} diff --git a/libgloss/iq2000/kill.c b/libgloss/iq2000/kill.c deleted file mode 100644 index 40afa6a..0000000 --- a/libgloss/iq2000/kill.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -_kill (n, m) -{ - return TRAP0 (SYS_exit, 0xdead, 0, 0); -} - diff --git a/libgloss/iq2000/lseek.c b/libgloss/iq2000/lseek.c deleted file mode 100644 index 339baea..0000000 --- a/libgloss/iq2000/lseek.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/unistd.h> -#include "trap.h" - - -off_t -_lseek (int file, - off_t ptr, - int dir) -{ - return TRAP0 (SYS_lseek, file, ptr, dir); -} diff --git a/libgloss/iq2000/open.c b/libgloss/iq2000/open.c deleted file mode 100644 index 770defe..0000000 --- a/libgloss/iq2000/open.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_open (const char *path, - int flags) -{ - return TRAP0 (SYS_open, path, flags, 0); -} diff --git a/libgloss/iq2000/pipe.c b/libgloss/iq2000/pipe.c deleted file mode 100644 index dfade5c..0000000 --- a/libgloss/iq2000/pipe.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -pipe (int fd) -{ - return TRAP0 (SYS_pipe, fd, 0, 0); -} diff --git a/libgloss/iq2000/read.c b/libgloss/iq2000/read.c deleted file mode 100644 index 31d24cc..0000000 --- a/libgloss/iq2000/read.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -_read (int file, - char *ptr, - size_t len) -{ - return TRAP0 (SYS_read, file, ptr, len); -} diff --git a/libgloss/iq2000/sbrk.c b/libgloss/iq2000/sbrk.c deleted file mode 100644 index 6dfd93b..0000000 --- a/libgloss/iq2000/sbrk.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <_ansi.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -caddr_t -_sbrk (size_t incr) -{ - extern char __stack; /* Defined by the linker */ - extern char _end; /* Defined by the linker */ - static char *heap_end; - char *prev_heap_end; - char *sp = (char *)&sp; - - if (heap_end == 0) - { - heap_end = &_end; - } - prev_heap_end = heap_end; - heap_end += incr; - if (heap_end > sp) - { - _write (1, "Heap and stack collision\n", 25); - errno = ENOMEM; - return (caddr_t)-1; - } - return (caddr_t) prev_heap_end; -} diff --git a/libgloss/iq2000/sim.ld b/libgloss/iq2000/sim.ld deleted file mode 100644 index 5f59d02..0000000 --- a/libgloss/iq2000/sim.ld +++ /dev/null @@ -1,279 +0,0 @@ -/* Special linker script for running C executables on simulator */ -OUTPUT_FORMAT("elf32-iq2000", "elf32-iq2000", - "elf32-iq2000") -OUTPUT_ARCH(iq2000) -ENTRY(_start) -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -SECTIONS -{ - . = 0x80000000; - .interp : { *(.interp) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.text : - { - *(.rel.text) - *(.rel.text.*) - *(.rel.gnu.linkonce.t.*) - } - .rela.text : - { - *(.rela.text) - *(.rela.text.*) - *(.rela.gnu.linkonce.t.*) - } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.rodata : - { - *(.rel.rodata) - *(.rel.rodata.*) - *(.rel.gnu.linkonce.r.*) - } - .rela.rodata : - { - *(.rela.rodata) - *(.rela.rodata.*) - *(.rela.gnu.linkonce.r.*) - } - .rel.data : - { - *(.rel.data) - *(.rel.data.*) - *(.rel.gnu.linkonce.d.*) - } - .rela.data : - { - *(.rela.data) - *(.rela.data.*) - *(.rela.gnu.linkonce.d.*) - } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.sdata : - { - *(.rel.sdata) - *(.rel.sdata.*) - *(.rel.gnu.linkonce.s.*) - } - .rela.sdata : - { - *(.rela.sdata) - *(.rela.sdata.*) - *(.rela.gnu.linkonce.s.*) - } - .rel.sbss : - { - *(.rel.sbss) - *(.rel.sbss.*) - *(.rel.gnu.linkonce.sb.*) - } - .rela.sbss : - { - *(.rela.sbss) - *(.rela.sbss.*) - *(.rela.gnu.linkonce.sb.*) - } - .rel.sdata2 : - { - *(.rel.sdata2) - *(.rel.sdata2.*) - *(.rel.gnu.linkonce.s2.*) - } - .rela.sdata2 : - { - *(.rela.sdata2) - *(.rela.sdata2.*) - *(.rela.gnu.linkonce.s2.*) - } - .rel.sbss2 : - { - *(.rel.sbss2) - *(.rel.sbss2.*) - *(.rel.gnu.linkonce.sb2.*) - } - .rela.sbss2 : - { - *(.rela.sbss2) - *(.rela.sbss2.*) - *(.rela.gnu.linkonce.sb2.*) - } - .rel.bss : - { - *(.rel.bss) - *(.rel.bss.*) - *(.rel.gnu.linkonce.b.*) - } - .rela.bss : - { - *(.rela.bss) - *(.rela.bss.*) - *(.rela.gnu.linkonce.b.*) - } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : - { - KEEP (*(.init)) - } =0 - .plt : { *(.plt) } - .text : - { - *(.text) - *(.text.*) - *(.stub) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - } =0 - .fini : - { - KEEP (*(.fini)) - } =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = 0x1000; - .data : - { - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) - } - .data1 : { *(.data1) } - .eh_frame : - { - PROVIDE (__eh_frame_begin = .); - *(.eh_frame) - LONG (0); - PROVIDE (__eh_frame_end = .); - } - .gcc_except_table : { *(.gcc_except_table) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } - .rodata1 : { *(.rodata1) } - .sdata2 : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) } - .sbss2 : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) } - .dynamic : { *(.dynamic) } - .ctors : - { - __ctors = .; - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - __ctors_end = .; - } - .dtors : - { - __dtors = .; - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - __dtors_end = .; - } - .jcr : { KEEP (*(.jcr)) } - .got : { *(.got.plt) *(.got) } - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : - { - *(.sdata) - *(.sdata.*) - *(.gnu.linkonce.s.*) - } - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .sbss : - { - PROVIDE (__sbss_start = .); - PROVIDE (___sbss_start = .); - *(.dynsbss) - *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) - *(.scommon) - PROVIDE (__sbss_end = .); - PROVIDE (___sbss_end = .); - } - .bss : - { - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); - } - . = ALIGN(32 / 8); - _end = .; - PROVIDE (end = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - PROVIDE (__stack = 0x80000); - /* These must appear regardless of . */ -} diff --git a/libgloss/iq2000/stat.c b/libgloss/iq2000/stat.c deleted file mode 100644 index 4e1fddf..0000000 --- a/libgloss/iq2000/stat.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_stat (const char *path, struct stat *st) - -{ - return TRAP0 (SYS_stat, path, st, 0); -} diff --git a/libgloss/iq2000/test.c b/libgloss/iq2000/test.c deleted file mode 100644 index 9ea873a..0000000 --- a/libgloss/iq2000/test.c +++ /dev/null @@ -1,39 +0,0 @@ -#include <stdio.h> - -static void -send_msg1 (void) -{ - static char msg[] = "Hello World\r\n"; - write(1, msg, strlen (msg)); -} - -static void -send_msg2 (void) -{ - static char msg[] = "Goodnight Irene\r\n"; - write(1, msg, strlen (msg)); -} - -static void -delay (void) -{ - int i; - - for (i = 0; i < 1000000; i++) - ; -} - -int -main(int argc, char *argv[]) -{ - int i, j; - for (i = 0; i < 10; i++) - { - send_msg1 (); - delay (); - send_msg2 (); - } - return 0; -} - - diff --git a/libgloss/iq2000/time.c b/libgloss/iq2000/time.c deleted file mode 100644 index 2df8d48..0000000 --- a/libgloss/iq2000/time.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -time_t -time (time_t *tloc) -{ - return TRAP0 (SYS_time, tloc, 0, 0); -} diff --git a/libgloss/iq2000/times.c b/libgloss/iq2000/times.c deleted file mode 100644 index b804be4..0000000 --- a/libgloss/iq2000/times.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" -#include "sys/times.h" - - -clock_t -times (struct tms *buffer) -{ - return TRAP0 (SYS_times, buffer, 0, 0); -} diff --git a/libgloss/iq2000/trap.c b/libgloss/iq2000/trap.c deleted file mode 100644 index 217cef2..0000000 --- a/libgloss/iq2000/trap.c +++ /dev/null @@ -1,13 +0,0 @@ -// Perform a system call. -// Unused parameters should be set to 0. -int __trap0(unsigned long func, unsigned long p1, unsigned long p2, unsigned long p3) -{ - int ret = 0; - asm volatile ("nop\n\tor %%4,%%0,%0" : : "r"(func)); - asm volatile ("nop\n\tor %%5,%%0,%0" : : "r"(p1)); - asm volatile ("nop\n\tor %%6,%%0,%0" : : "r"(p2)); - asm volatile ("nop\n\tor %%7,%%0,%0" : : "r"(p3)); - asm volatile ("nop\n\tor %%11,%%0,%0" : : "r"(func)); - asm volatile ("syscall\n\tnop\n\tor %0,%%0,%%2" : "=r"(ret)); - return ret; -} diff --git a/libgloss/iq2000/trap.h b/libgloss/iq2000/trap.h deleted file mode 100644 index 27636c0..0000000 --- a/libgloss/iq2000/trap.h +++ /dev/null @@ -1,5 +0,0 @@ -#include "syscall.h" - -int __trap0 (); - -#define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) diff --git a/libgloss/iq2000/unlink.c b/libgloss/iq2000/unlink.c deleted file mode 100644 index 84fb711..0000000 --- a/libgloss/iq2000/unlink.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_unlink () -{ - return -1; -} diff --git a/libgloss/iq2000/utime.c b/libgloss/iq2000/utime.c deleted file mode 100644 index 3fce7e3..0000000 --- a/libgloss/iq2000/utime.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -utime (path, times) - const char *path; - char *times; -{ - return TRAP0 (SYS_utime, path, times, 0); -} diff --git a/libgloss/iq2000/wait.c b/libgloss/iq2000/wait.c deleted file mode 100644 index c8d8b4c..0000000 --- a/libgloss/iq2000/wait.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_wait (statusp) - int *statusp; -{ - return TRAP0 (SYS_wait, 0, 0, 0); -} diff --git a/libgloss/iq2000/write.c b/libgloss/iq2000/write.c deleted file mode 100644 index 3ecf4a8..0000000 --- a/libgloss/iq2000/write.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -_write ( int file, - char *ptr, - size_t len) -{ - return TRAP0 (SYS_write, file, ptr, len); -} diff --git a/libgloss/libnosys/Makefile.in b/libgloss/libnosys/Makefile.in index d6634fc..4856154 100644 --- a/libgloss/libnosys/Makefile.in +++ b/libgloss/libnosys/Makefile.in @@ -10,7 +10,6 @@ # the new terms are clearly indicated on the first page of each file where # they apply. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -44,15 +43,15 @@ SHELL = /bin/sh CC = @CC@ #AS = @AS@ -AS = `if [ -f ${objroot}/../gas/as-new ] ; \ - then echo ${objroot}/../gas/as-new ; \ +AS = `if [ -f ${objroot}/../gas/as.new ] ; \ + then echo ${objroot}/../gas/as.new ; \ else echo as ; fi` AR = @AR@ #LD = @LD@ -LD = `if [ -f ${objroot}/../ld/ld-new ] ; \ - then echo ${objroot}/../ld/ld-new ; \ +LD = `if [ -f ${objroot}/../ld/ld.new ] ; \ + then echo ${objroot}/../ld/ld.new ; \ else echo ld ; fi` RANLIB = @RANLIB@ @@ -65,10 +64,9 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` # object files needed -OBJS = chown.o close.o environ.o errno.o execve.o fork.o fstat.o \ - getpid.o gettod.o isatty.o kill.o link.o lseek.o open.o \ - read.o readlink.o sbrk.o stat.o symlink.o times.o unlink.o \ - wait.o write.o _exit.o +OBJS = close.o environ.o execve.o fork.o fstat.o getpid.o gettod.o isatty.o \ + kill.o link.o lseek.o open.o read.o sbrk.o stat.o \ + times.o unlink.o wait.o write.o # Object files specific to particular targets. EVALOBJS = ${OBJS} @@ -131,8 +129,8 @@ distclean maintainer-clean realclean: clean .PHONY: install info install-info clean-info install: @for outputs in ${OUTPUTS}; do\ - mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ - $(INSTALL_PROGRAM) $${outputs} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ + mkdir -p $(tooldir)/lib${MULTISUBDIR}; \ + $(INSTALL_PROGRAM) $${outputs} $(tooldir)/lib${MULTISUBDIR}; \ done info: diff --git a/libgloss/libnosys/_exit.c b/libgloss/libnosys/_exit.c deleted file mode 100644 index d4dd232..0000000 --- a/libgloss/libnosys/_exit.c +++ /dev/null @@ -1,15 +0,0 @@ -/* Stub version of _exit. */ - -#include <limits.h> -#include "config.h" -#include <_ansi.h> -#include <_syslist.h> - -_VOID -_DEFUN (_exit, (rc), - int rc) -{ - /* Default stub just causes a divide by 0 exception. */ - int x = rc / INT_MAX; - x = 4 / x; -} diff --git a/libgloss/libnosys/acconfig.h b/libgloss/libnosys/acconfig.h index c6df5d5..a9508c7 100644 --- a/libgloss/libnosys/acconfig.h +++ b/libgloss/libnosys/acconfig.h @@ -19,8 +19,5 @@ /* .pushsection/.popsection directives allowed */ #undef HAVE_ASM_POPSECTION_DIRECTIVE -/* support for section attributes */ -#undef HAVE_SECTION_ATTRIBUTES - /* symbol prefix */ #undef __SYMBOL_PREFIX diff --git a/libgloss/libnosys/chown.c b/libgloss/libnosys/chown.c deleted file mode 100644 index 67f98d5..0000000 --- a/libgloss/libnosys/chown.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Stub version of chown. - */ - -#include "config.h" -#include <_ansi.h> -#include <_syslist.h> -#include <errno.h> -#include <sys/types.h> -#undef errno -extern int errno; -#include "warning.h" - -int -_DEFUN (_chown, (path, owner, group), - const char *path _AND - uid_t owner _AND - gid_t group) -{ - errno = ENOSYS; - return -1; -} - -stub_warning(_chown) diff --git a/libgloss/libnosys/config.h.in b/libgloss/libnosys/config.h.in index f7fe3fef..fa5d9d9 100644 --- a/libgloss/libnosys/config.h.in +++ b/libgloss/libnosys/config.h.in @@ -15,8 +15,5 @@ /* .pushsection/.popsection directives allowed */ #undef HAVE_ASM_POPSECTION_DIRECTIVE -/* support for section attributes */ -#undef HAVE_SECTION_ATTRIBUTES - /* symbol prefix */ #undef __SYMBOL_PREFIX diff --git a/libgloss/libnosys/configure b/libgloss/libnosys/configure index a3de0b1..944d970 100755 --- a/libgloss/libnosys/configure +++ b/libgloss/libnosys/configure @@ -755,8 +755,6 @@ case "${target}" in ;; strongarm-*-*) ;; - cris-*-* | crisv32-*-*) - ;; d10v*) ;; h8300*-*-*) @@ -789,8 +787,6 @@ case "${target}" in ;; w65-*-*) ;; - xstormy16-*-*) - ;; z8k-*-*) ;; *) @@ -813,94 +809,64 @@ echo "configure:813: checking for .previous assembler directive" >&5 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - libc_cv_asm_previous_directive=no - cat > conftest.s <<EOF + cat > conftest.s <<EOF .section foo_section .previous EOF - if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then - libc_cv_asm_previous_directive=yes + if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then cat >> confdefs.h <<\EOF #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 EOF - fi - rm -f conftest* + else + rm -f conftest* fi echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6 - - echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 -echo "configure:835: checking for .popsection assembler directive" >&5 + echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6 +echo "configure:832: checking for .popsection assembler directive" >&5 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - libc_cv_asm_popsection_directive=no - cat > conftest.s <<EOF + cat > conftest.s <<EOF .pushsection foo_section .popsection EOF - if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then - libc_cv_asm_popsection_directive=yes - cat >> confdefs.h <<\EOF + if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then + cat >> confdefs.h <<\EOF #define HAVE_ASM_POPSECTION_DIRECTIVE 1 EOF + fi fi rm -f conftest* fi echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 - - echo $ac_n "checking for section attributes""... $ac_c" 1>&6 -echo "configure:857: checking for section attributes" >&5 -if eval "test \"`echo '$''{'libc_cv_section_attributes'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - libc_cv_section_attributes=no - cat > conftest.c <<EOF -int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10; -int main() {} -EOF - if { ac_try='${CC-cc} -c $CFLAGS conftest.c 1>&5'; { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then - libc_cv_section_attributes=yes - cat >> confdefs.h <<\EOF -#define HAVE_SECTION_ATTRIBUTES 1 -EOF - - fi - rm -f conftest* -fi - -echo "$ac_t""$libc_cv_section_attributes" 1>&6 - ;; + ;; esac -echo $ac_n "checking for symbol prefix""... $ac_c" 1>&6 -echo "configure:881: checking for symbol prefix" >&5 -if eval "test \"`echo '$''{'libc_symbol_prefix'+set}'`\" = set"; then +echo $ac_n "checking for function prefix""... $ac_c" 1>&6 +echo "configure:855: checking for function prefix" >&5 +if eval "test \"`echo '$''{'libc_dollar_prefix'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <<\EOF foo () { } EOF -libc_symbol_prefix=none -if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; +if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then - libc_symbol_prefix='$' + libc_dollar_prefix=yes else - if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null'; { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; - then - libc_symbol_prefix=_ - fi + libc_dollar_prefix=no fi rm -f conftest* fi -echo "$ac_t""$libc_symbol_prefix" 1>&6 -if test $libc_symbol_prefix != none; then - cat >> confdefs.h <<EOF -#define __SYMBOL_PREFIX "$libc_symbol_prefix" +echo "$ac_t""$libc_dollar_prefix" 1>&6 +if test $libc_dollar_prefix = yes ; then + cat >> confdefs.h <<\EOF +#define __SYMBOL_PREFIX "$" EOF else @@ -913,7 +879,7 @@ fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:917: checking for $ac_word" >&5 +echo "configure:887: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -943,7 +909,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:947: checking for $ac_word" >&5 +echo "configure:917: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -992,7 +958,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:996: checking whether we are using GNU C" >&5 +echo "configure:966: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1001,7 +967,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1016,7 +982,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1020: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:990: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1052,7 +1018,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1056: checking for $ac_word" >&5 +echo "configure:1026: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/libgloss/libnosys/configure.in b/libgloss/libnosys/configure.in index b39799f..45cbfdd 100644 --- a/libgloss/libnosys/configure.in +++ b/libgloss/libnosys/configure.in @@ -89,8 +89,6 @@ case "${target}" in ;; strongarm-*-*) ;; - cris-*-* | crisv32-*-*) - ;; d10v*) ;; h8300*-*-*) @@ -123,8 +121,6 @@ case "${target}" in ;; w65-*-*) ;; - xstormy16-*-*) - ;; z8k-*-*) ;; *) @@ -138,64 +134,43 @@ case "${target}" in AC_DEFINE(HAVE_ELF) AC_CACHE_CHECK(for .previous assembler directive, - libc_cv_asm_previous_directive, [dnl - libc_cv_asm_previous_directive=no + libc_cv_asm_previous_directive, [dnl cat > conftest.s <<EOF .section foo_section .previous EOF if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then - libc_cv_asm_previous_directive=yes AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE) - fi - rm -f conftest*]) - - AC_CACHE_CHECK(for .popsection assembler directive, + else + rm -f conftest*]) + AC_CACHE_CHECK(for .popsection assembler directive, libc_cv_asm_popsection_directive, [dnl - libc_cv_asm_popsection_directive=no - cat > conftest.s <<EOF + cat > conftest.s <<EOF .pushsection foo_section .popsection EOF - if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then - libc_cv_asm_popsection_directive=yes - AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE) + if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then + AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE) + fi fi rm -f conftest*]) - - AC_CACHE_CHECK(for section attributes, - libc_cv_section_attributes, [dnl - libc_cv_section_attributes=no - cat > conftest.c <<EOF -int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10; -int main() {} -EOF - if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then - libc_cv_section_attributes=yes - AC_DEFINE(HAVE_SECTION_ATTRIBUTES) - fi - rm -f conftest*]) - ;; + ;; esac -AC_CACHE_CHECK(for symbol prefix, libc_symbol_prefix, [dnl +AC_CACHE_CHECK(for function prefix, libc_dollar_prefix, [dnl cat > conftest.c <<\EOF foo () { } EOF dnl -libc_symbol_prefix=none if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]); then - libc_symbol_prefix='$' + libc_dollar_prefix=yes else - if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]); - then - libc_symbol_prefix=_ - fi + libc_dollar_prefix=no fi rm -f conftest* ]) -if test $libc_symbol_prefix != none; then - AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_symbol_prefix") +if test $libc_dollar_prefix = yes ; then + AC_DEFINE(__SYMBOL_PREFIX, "$") else AC_DEFINE(__SYMBOL_PREFIX, "") fi diff --git a/libgloss/libnosys/errno.c b/libgloss/libnosys/errno.c deleted file mode 100644 index 27d8e3a..0000000 --- a/libgloss/libnosys/errno.c +++ /dev/null @@ -1,3 +0,0 @@ -/* Supply a definition of errno if one not already provided. */ - -int errno; diff --git a/libgloss/libnosys/readlink.c b/libgloss/libnosys/readlink.c deleted file mode 100644 index 7df253c..0000000 --- a/libgloss/libnosys/readlink.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Stub version of readlink. - */ - -#include "config.h" -#include <_ansi.h> -#include <_syslist.h> -#include <errno.h> -#include <sys/types.h> -#undef errno -extern int errno; -#include "warning.h" - -int -_DEFUN (_readlink, (path, buf, bufsize), - const char *path _AND - char *buf _AND - size_t bufsize) -{ - errno = ENOSYS; - return -1; -} - -stub_warning(_readlink) diff --git a/libgloss/libnosys/sbrk.c b/libgloss/libnosys/sbrk.c index 39f411c..8091d70 100644 --- a/libgloss/libnosys/sbrk.c +++ b/libgloss/libnosys/sbrk.c @@ -1,21 +1,27 @@ -/* Version of sbrk for no operating system. */ +/* + * Version of sbrk for no operating system. + */ #include "config.h" +#include <_ansi.h> #include <_syslist.h> +#include <sys/types.h> +#include <errno.h> +#undef errno +extern int errno; -void * -_sbrk (incr) - int incr; +caddr_t +_DEFUN (_sbrk, (incr), + int incr) { - extern char end; /* Set by linker. */ - static char * heap_end; - char * prev_heap_end; - - if (heap_end == 0) - heap_end = & end; + extern char end; /* set by linker */ + static char *heap_end; + char *prev_heap_end; + if (heap_end == 0) { + heap_end = &end; + } prev_heap_end = heap_end; heap_end += incr; - - return (void *) prev_heap_end; + return (caddr_t) prev_heap_end; } diff --git a/libgloss/libnosys/symlink.c b/libgloss/libnosys/symlink.c deleted file mode 100644 index d9e29f2..0000000 --- a/libgloss/libnosys/symlink.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Stub version of symlink. - */ - -#include "config.h" -#include <_ansi.h> -#include <_syslist.h> -#include <errno.h> -#undef errno -extern int errno; -#include "warning.h" - -int -_DEFUN (_symlink, (path1, path2), - const char *path1 _AND - const char *path2) -{ - errno = ENOSYS; - return -1; -} - -stub_warning(_symlink) diff --git a/libgloss/libnosys/warning.h b/libgloss/libnosys/warning.h index 9232a92..99f3e0d 100644 --- a/libgloss/libnosys/warning.h +++ b/libgloss/libnosys/warning.h @@ -7,22 +7,18 @@ /* We want the .gnu.warning.SYMBOL section to be unallocated. */ # ifdef HAVE_ASM_PREVIOUS_DIRECTIVE # define __make_section_unallocated(section_string) \ - asm(".section " section_string "\n .previous"); + asm(".section " section_string "; .previous"); # elif defined (HAVE_ASM_POPSECTION_DIRECTIVE) # define __make_section_unallocated(section_string) \ - asm(".pushsection " section_string "\n .popsection"); + asm(".pushsection " section_string "; .popsection"); # else # define __make_section_unallocated(section_string) # endif -# ifdef HAVE_SECTION_ATTRIBUTES -# define link_warning(symbol, msg) \ +# define link_warning(symbol, msg) \ + __make_section_unallocated (".gnu.warning." #symbol) \ static const char __evoke_link_warning_##symbol[] \ - __attribute__ ((section (".gnu.warning." __SYMBOL_PREFIX #symbol), \ - __used__)) = msg; -# else -# define link_warning(symbol, msg) -# endif + __attribute__ ((section (".gnu.warning." #symbol))) = msg; #else /* !ELF */ @@ -35,10 +31,9 @@ # define link_warning(symbol, msg) #endif -/* A canned warning for sysdeps/stub functions. - The GNU linker prepends a "warning: " string. */ +/* A canned warning for sysdeps/stub functions. */ #define stub_warning(name) \ link_warning (name, \ - #name " is not implemented and will always fail") + "warning: " #name " is not implemented and will always fail") #endif /* __WARNING_H__ */ diff --git a/libgloss/m32c/Makefile.in b/libgloss/m32c/Makefile.in deleted file mode 100644 index eb00aae..0000000 --- a/libgloss/m32c/Makefile.in +++ /dev/null @@ -1,193 +0,0 @@ -# Copyright (c) 2005 Red Hat Inc -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. - -# Makefile for libgloss/m32c. - -VPATH = @srcdir@ -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ -AR_FLAGS = rc - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -SCRIPTS = r8c.ld m16c.ld m32cm.ld m32c.ld m16cmon.ld m32cmon.ld sim8.ld sim16.ld sim24.ld -CRT = crt0.o crtn.o -SIM_BSP = libsim.a -LIBNOSYS = ../libnosys/libnosys.a -SIM_OBJS = \ - sbrk.o \ - heaptop.o \ - exit.o \ - open.o \ - close.o \ - read.o \ - write.o \ - lseek.o \ - unlink.o \ - getpid.o \ - kill.o \ - fstat.o \ - argvlen.o \ - argv.o \ - chdir.o \ - stat.o \ - chmod.o \ - utime.o \ - time.o \ - gettimeofday.o \ - times.o \ - link.o \ - isatty.o \ - abort.o - - -#### Host specific Makefile fragment comes in here. -@host_makefile_frag@ - - -# Override .S.o rule to pass assembler debugging flags -.S.o: - $(CC) -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< - -all: $(CRT) $(SIM_BSP) $(SCRIPTS) - -$(SIM_BSP): $(SIM_OBJS) - $(AR) $(ARFLAGS) $@ $? - $(RANLIB) $@ - -# genscript parameters: srcdir name ramstart ramsize romstart romsize vecprefix - -GDEP = $(srcdir)/m32c.tmpl $(srcdir)/genscript Makefile -GS = $(SHELL) $(srcdir)/genscript $(srcdir) - -# NOTE: The simulators and monitors reserve the following locations -# for themselves, so we skip them: -# R8C/M16C: 0x400-0x4ff 0x0ff600-0x0ffcff -# M32C: 0x400-0x4ff 0xfff600-0xfffcff - -r8c.ld : $(GDEP) - $(GS) r8c 0x500 0x300 0xc000 0x3f24 0xff - -m16c.ld : $(GDEP) - $(GS) m16c 0x500 0x4f00 0xc0000 0x3f600 0xfff - -m32cm.ld : $(GDEP) - $(GS) m32cm 0x500 0x2700 0xfe0000 0x01f600 0xffff - -m32c.ld : $(GDEP) - $(GS) m32c 0x500 0x7b00 0xf80000 0x07f600 0xffff - - -m16cmon.ld : $(GDEP) - $(GS) m16cmon 0x400 0x100 0xff600 0x800 0xfff - -m32cmon.ld : $(GDEP) - $(GS) m32cmon 0x400 0x100 0xfff600 0x800 0xffff - - -sim8.ld : $(GDEP) - $(GS) sim8 0x500 0xf624 0 0 0xff - -sim16.ld : $(GDEP) - $(GS) sim16 0x500 0xf700 0x20000 0x80000 0xfff - -sim24.ld : $(GDEP) - $(GS) sim24 0x200000 0x800000 0 0 0xffff - -# Dependencies - -SDEPS = $(srcdir)/m32csys.h $(srcdir)/../syscall.h - -abort.o : $(SDEPS) -argv.o : $(SDEPS) -argvlen.o : $(SDEPS) -chdir.o : $(SDEPS) -chmod.o : $(SDEPS) -close.o : $(SDEPS) -exit.o : $(SDEPS) -fstat.o : $(SDEPS) -getpid.o : $(SDEPS) -gettimeofday.o : $(SDEPS) -heaptop.o : $(SDEPS) -kill.o : $(SDEPS) -link.o : $(SDEPS) -lseek.o : $(SDEPS) -open.o : $(SDEPS) -read.o : $(SDEPS) -stat.o : $(SDEPS) -time.o : $(SDEPS) -times.o : $(SDEPS) -unlink.o : $(SDEPS) -utime.o : $(SDEPS) -write.o : $(SDEPS) - -install: $(CRT) $(SIM_BSP) $(SCRIPTS) - for c in $(CRT) $(SIM_BSP); do \ - $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$c ;\ - done - for c in $(SCRIPTS); do \ - $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$c ;\ - done - -clean mostlyclean: - rm -f *.o *.a - -distclean maintainer-clean realclean: clean - rm -f Makefile config.cache config.log config.status - -.PHONY: info dvi doc install-info clean-info -info doc dvi: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/m32c/abort.S b/libgloss/m32c/abort.S deleted file mode 100644 index 41d2942..0000000 --- a/libgloss/m32c/abort.S +++ /dev/null @@ -1,50 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - - .global _abort -_abort: - /* This is for debuggers. The simulator stops here too. */ - brk - - /* Else, fall back on the simulator's "kill me" option. */ -#if defined(__r8c_cpu__) || defined(__m16c_cpu__) - mov.w #42,r1 -#else - mov.w #42,r0 -#endif - - SYSCALL(SYS_kill) - - /* Else, exit. */ - jmp.a __exit diff --git a/libgloss/m32c/argv.S b/libgloss/m32c/argv.S deleted file mode 100644 index 850964c..0000000 --- a/libgloss/m32c/argv.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(argv) diff --git a/libgloss/m32c/argvlen.S b/libgloss/m32c/argvlen.S deleted file mode 100644 index 073c69b..0000000 --- a/libgloss/m32c/argvlen.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(argvlen) diff --git a/libgloss/m32c/chdir.S b/libgloss/m32c/chdir.S deleted file mode 100644 index a68aeb2..0000000 --- a/libgloss/m32c/chdir.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(chdir) diff --git a/libgloss/m32c/chmod.S b/libgloss/m32c/chmod.S deleted file mode 100644 index 7fc14c9..0000000 --- a/libgloss/m32c/chmod.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(chmod) diff --git a/libgloss/m32c/close.S b/libgloss/m32c/close.S deleted file mode 100644 index ae6b63c..0000000 --- a/libgloss/m32c/close.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(close) diff --git a/libgloss/m32c/configure b/libgloss/m32c/configure deleted file mode 100755 index 5d272c9..0000000 --- a/libgloss/m32c/configure +++ /dev/null @@ -1,1204 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=crt0.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:744: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:823: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:884: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/libgloss/m32c/configure.in b/libgloss/m32c/configure.in deleted file mode 100644 index 877f6a0..0000000 --- a/libgloss/m32c/configure.in +++ /dev/null @@ -1,90 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(crt0.S) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) diff --git a/libgloss/m32c/crt0.S b/libgloss/m32c/crt0.S deleted file mode 100644 index 9b29ffc..0000000 --- a/libgloss/m32c/crt0.S +++ /dev/null @@ -1,177 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#if defined(__r8c_cpu__) || defined(__m16c_cpu__) -#define A16 -#define A(n,w) n -#define W w -#define ADDR .2byte -#define ALIGN 1 -#else -#define A24 -#define A(n,w) w -#define W l -#define ADDR .4byte -#define ALIGN 2 -#endif - - .text - - .global _start -_start: -.LFB2: - fset U /* User stack */ - ldc #__stack,sp - -#ifdef A16 - mov.b #%hi8(__romdatastart),r1h - mov.w #%lo16(__romdatastart),a0 - mov.w #__datastart,a1 -#else - mov.l #__romdatastart,a0 - mov.l #__datastart,a1 -#endif - mov.w #__romdatacopysize,r3 - shl.w #-1,r3 - smovf.w - -#ifdef A16 - mov.w #__bssstart,a1 -#else - mov.l #__bssstart,a1 -#endif - mov.w #__bsssize,r3 - shl.w #-1,r3 - mov.w #0,r0 - sstr.w - - jsr.a __m32c_init - - jsr.a _main -.LFE2: - -#ifdef A24 - /* rv in r0, ok for arg0 */ -#else - mov.w r0,r1 -#endif - - jsr.a _exit - - .text - - .global _m32c_run_preinit_array - .type _m32c_run_preinit_array,@function -_m32c_run_preinit_array: - mov.W #__preinit_array_start,a0 - mov.W #__preinit_array_end,a1 - jmp.w _m32c_run_inilist - - .global _m32c_run_init_array - .type _m32c_run_init_array,@function -_m32c_run_init_array: - mov.W #__init_array_start,a0 - mov.W #__init_array_end,a1 - jmp.w _m32c_run_inilist - - .global _m32c_run_fini_array - .type _m32c_run_fini_array,@function -_m32c_run_fini_array: - mov.W #__fini_array_start,a0 - mov.W #__fini_array_end,a1 - /* fall through */ - -_m32c_run_inilist: -next_inilist: - cmp.W a0,a1 - jeq done_inilist - pushm a0,a1 - mov.W [a0],a0 -#ifdef A16 - mov.b:s #0,a1 /* zero extends */ - jsri.a a1a0 -#else - jsri.a a0 -#endif - popm a0,a1 - add.W A(#2,#4),a0 - jmp.b next_inilist -done_inilist: - rts - - .section .init,"ax",@progbits - - .global __m32c_init -__m32c_init: - enter #0 - - .section .fini,"ax",@progbits - - .global __m32c_fini -__m32c_fini: - enter #0 - jsr.a _m32c_run_fini_array - - -;;; Provide Dwarf unwinding information that will help GDB stop -;;; backtraces at the right place. This is stolen from assembly -;;; code generated by GCC with -dA. - .section .debug_frame,"",@progbits -.Lframe0: - .4byte .LECIE0-.LSCIE0 ; Length of Common Information Entry -.LSCIE0: - .4byte 0xffffffff ; CIE Identifier Tag - .byte 0x1 ; CIE Version - .ascii "\0" ; CIE Augmentation - .uleb128 0x1 ; CIE Code Alignment Factor - .sleb128 -1 ; CIE Data Alignment Factor - .byte 0xd ; CIE RA Column - .byte 0xc ; DW_CFA_def_cfa - .uleb128 0xc - .uleb128 0x3 - .byte 0x8d ; DW_CFA_offset, column 0xd - .uleb128 0x3 - .p2align ALIGN -.LECIE0: -.LSFDE0: - .4byte .LEFDE0-.LASFDE0 ; FDE Length -.LASFDE0: - .4byte .Lframe0 ; FDE CIE offset - ADDR .LFB2 ; FDE initial location - ADDR .LFE2-.LFB2 ; FDE address range - .byte 0xf ; DW_CFA_def_cfa_expression - .uleb128 1 ; length of expression - .byte 0x30 ; DW_OP_lit0 - .p2align ALIGN -.LEFDE0: - - .text diff --git a/libgloss/m32c/crtn.S b/libgloss/m32c/crtn.S deleted file mode 100644 index d4e86b8..0000000 --- a/libgloss/m32c/crtn.S +++ /dev/null @@ -1,58 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - - -#if defined(__r8c_cpu__) || defined(__m16c_cpu__) -#define A16 -#define A(n,w) n -#define W w -#else -#define A24 -#define A(n,w) w -#define W l -#endif - - .section .init,"ax",@progbits - jsr.a _m32c_run_preinit_array - jsr.a _m32c_run_init_array - exitd - .global __m32c_init_end -__m32c_init_end: - - .section .fini,"ax",@progbits - - exitd - .global __m32c_fini_end -__m32c_fini_end: - - .text - diff --git a/libgloss/m32c/exit.S b/libgloss/m32c/exit.S deleted file mode 100644 index e27d73d..0000000 --- a/libgloss/m32c/exit.S +++ /dev/null @@ -1,40 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - - .global __exit -__exit: - push.w r1 - jsr.a __m32c_fini - pop.w r1 - SYSCALL(SYS_exit) diff --git a/libgloss/m32c/fstat.S b/libgloss/m32c/fstat.S deleted file mode 100644 index 44815b1..0000000 --- a/libgloss/m32c/fstat.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(fstat) diff --git a/libgloss/m32c/genscript b/libgloss/m32c/genscript deleted file mode 100644 index 665778e..0000000 --- a/libgloss/m32c/genscript +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh - -# Copyright (c) 2005 Red Hat Incorporated. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# The name of Red Hat Incorporated may not be used to endorse -# or promote products derived from this software without specific -# prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -srcdir="$1" -name="$2" -ramstart="$3" -ramsize="$4" -romstart="$5" -romsize="$6" -vecprefix="$7" - -sedcmd="s/RAMSTART/$ramstart/g; s/RAMSIZE/$ramsize/g" -sedcmd="$sedcmd; s/ROMSTART/$romstart/g; s/ROMSIZE/$romsize/g" - -# .rodata can be left with .text -rotext='/IF_ROCOPY/d' -# .rodata needs to be with .data -rodata='/IF_ROROM/d' - -# All sections are put in one region -simram='s/LOWROM/RAM/g; s/= .*SIZEOF.*/= 0);/; s/AT>ROM//g' -oneram='s/> ROM/> RAM/g;' -# RW data needs to be copied to RAM -rwonly='s/LOWROM/ROM/g; s/ SIZEOF(.rodata) + //g' -# all data needs to be copied to RAM -rocopy='s/LOWROM/RAM AT>ROM/g' - -case $name:$romstart in - sim*:0 ) - # The r8c and m32c simulators have only a single memory region - sedcmd="$sedcmd; $simram; $oneram; $rotext" - ;; - sim*:* ) - # This is most likely the m16c simulator - sedcmd="$sedcmd; $simram; $rodata" - ;; - *:0x???? ) - # This is most likely the r8c chip - sedcmd="$sedcmd; $rwonly; $rotext" - ;; - m32*:* ) - sedcmd="$sedcmd; $rwonly; $rotext" - ;; - *:* ) - sedcmd="$sedcmd; $rocopy; $rodata" - ;; -esac -sedcmd="$sedcmd; /ORIGIN = 0,/d" - -sedcmd="$sedcmd; s/VECSTART/${vecprefix}dc/; s/RESETSTART/${vecprefix}fc/" - -sed "$sedcmd" < ${srcdir}/m32c.tmpl > ${name}.ld diff --git a/libgloss/m32c/getpid.S b/libgloss/m32c/getpid.S deleted file mode 100644 index 00b5d39..0000000 --- a/libgloss/m32c/getpid.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(getpid) diff --git a/libgloss/m32c/gettimeofday.S b/libgloss/m32c/gettimeofday.S deleted file mode 100644 index 8537a1a..0000000 --- a/libgloss/m32c/gettimeofday.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(gettimeofday) diff --git a/libgloss/m32c/heaptop.S b/libgloss/m32c/heaptop.S deleted file mode 100644 index 36c95df..0000000 --- a/libgloss/m32c/heaptop.S +++ /dev/null @@ -1,36 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" -#define SYS__set_heaptop 11 - -S(_set_heaptop) diff --git a/libgloss/m32c/isatty.S b/libgloss/m32c/isatty.S deleted file mode 100644 index 490c8cb..0000000 --- a/libgloss/m32c/isatty.S +++ /dev/null @@ -1,36 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - - .global _isatty -_isatty: - mov.w #1,r0 - rts diff --git a/libgloss/m32c/kill.S b/libgloss/m32c/kill.S deleted file mode 100644 index 61d8469..0000000 --- a/libgloss/m32c/kill.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(kill) diff --git a/libgloss/m32c/link.S b/libgloss/m32c/link.S deleted file mode 100644 index 08efad8..0000000 --- a/libgloss/m32c/link.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(link) diff --git a/libgloss/m32c/lseek.S b/libgloss/m32c/lseek.S deleted file mode 100644 index 9026e92..0000000 --- a/libgloss/m32c/lseek.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(lseek) diff --git a/libgloss/m32c/m32c.tmpl b/libgloss/m32c/m32c.tmpl deleted file mode 100644 index b06ce4f..0000000 --- a/libgloss/m32c/m32c.tmpl +++ /dev/null @@ -1,212 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -/* Default linker script, for normal executables */ -OUTPUT_FORMAT("elf32-m32c", "elf32-m32c", - "elf32-m32c") -OUTPUT_ARCH(m32c) -ENTRY(_start) -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -MEMORY { - RAM (w) : ORIGIN = RAMSTART, LENGTH = RAMSIZE - ROM (r) : ORIGIN = ROMSTART, LENGTH = ROMSIZE - VEC (r) : ORIGIN = VECSTART, LENGTH = 32 - RESETVEC (r) : ORIGIN = RESETSTART, LENGTH = 4 -} -SECTIONS -{ - /* There are three cases we care about: First, RW data that must be - in the low 64k. This will always be copied from ROM. Second, RO - data that must be in the low 64k. This may be copied from ROM if - the ROM is above 64k. Third, anything that does not need to be - in the first 64k. Chips normally only have two memory regions; - low ram and either high or low rom. We map the low rom needs - into one of the actual regions. */ - - /* .text goes first so the rom image of ram data will follow it. */ - .text : - { - *(.text .stub .text.* .gnu.linkonce.t.*) - KEEP (*(.text.*personality*)) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.interp .hash .dynsym .dynstr .gnu.version*) - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - . = ALIGN(2); - PROVIDE(__romdatastart = .); /* IF_ROCOPY */ - } > ROM =0 - - /* rodata will either be part of data, or will be in low rom. So we - might be spanning it, or we might not. This lets us include it - in our calculations when appropriate. */ - - .rodata : { - . = ALIGN(2); - PROVIDE(__datastart = .); /* IF_ROCOPY */ - *(.plt) - KEEP (*(.init)) - KEEP (*(.fini)) - *(.rodata .rodata.* .gnu.linkonce.r.*) - *(.rodata1) - *(.eh_frame_hdr) - KEEP (*(.eh_frame)) - KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) - . = ALIGN(2); - PROVIDE(__romdatastart = .); /* IF_ROROM */ - } > LOWROM - - .data : { - . = ALIGN(32 / 8); - PROVIDE (__datastart = .); /* IF_ROROM */ - PROVIDE (__preinit_array_start = .); - KEEP (*(.preinit_array)) - PROVIDE (__preinit_array_end = .); - PROVIDE (__init_array_start = .); - KEEP (*(.init_array)) - PROVIDE (__init_array_end = .); - PROVIDE (__fini_array_start = .); - KEEP (*(.fini_array)) - PROVIDE (__fini_array_end = .); - - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin*.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - - KEEP (*crtbegin*.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - - KEEP (*(.jcr)) - *(.data.rel.ro.local) *(.data.rel.ro*) - *(.dynamic) - - *(.data .data.* .gnu.linkonce.d.*) - KEEP (*(.gnu.linkonce.d.*personality*)) - SORT(CONSTRUCTORS) - *(.data1) - *(.got.plt) *(.got) - - . = ALIGN(2); - _edata = .; - PROVIDE (edata = .); - PROVIDE (__dataend = .); - } > RAM AT>ROM - - /* Note that __romdatacopysize may be ZERO for the simulator, which - knows how to intialize RAM directly. It should ONLY be used for - copying data from ROM to RAM; if you need to know the size of the - data section, subtract the end symbol from the start symbol. */ - /* Note that crt0 assumes this is even; all the start/stop symbols - are also assumed word-aligned. */ - PROVIDE (__romdatacopysize = SIZEOF(.rodata) + SIZEOF(.data)); - - .bss : { - . = ALIGN(2); - PROVIDE (__bssstart = .); - *(.dynbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - . = ALIGN(2); - PROVIDE (__bssend = .); - _end = .; - PROVIDE (end = .); - } > RAM - PROVIDE (__bsssize = SIZEOF(.bss)); - - .stack (RAMSTART + RAMSIZE - 2) : - { - PROVIDE (__stack = .); - *(.stack) - } - - .vec : { - *(.vec) - } > VEC - .resetvec : { - *(.resetvec) - } > RESETVEC - - /* The rest are all not normally part of the runtime image. */ - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/libgloss/m32c/m32csys.h b/libgloss/m32c/m32csys.h deleted file mode 100644 index e8b9b5f..0000000 --- a/libgloss/m32c/m32csys.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "syscall.h" - -/* Both the simulators and monitors reserve RAM areas 0x400 through - 0x4ff for their internal use. We use one of those memory locations - as our system call trap. */ - -#define POUND # -#define SYSCALL(N) mov.b POUND N,0x400 - -#define SYS__exit SYS_exit - -#define S(n) _##n: .global _##n | SYSCALL(SYS_##n) | rts diff --git a/libgloss/m32c/open.S b/libgloss/m32c/open.S deleted file mode 100644 index a645851..0000000 --- a/libgloss/m32c/open.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(open) diff --git a/libgloss/m32c/read.S b/libgloss/m32c/read.S deleted file mode 100644 index 0aa4f13..0000000 --- a/libgloss/m32c/read.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(read) diff --git a/libgloss/m32c/sbrk.c b/libgloss/m32c/sbrk.c deleted file mode 100644 index 69375aa..0000000 --- a/libgloss/m32c/sbrk.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -extern void _set_heaptop(void *ptr); - -char * -sbrk(int adj) -{ - extern char end; - static char *heap = &end; - char *rv = heap; - - heap += adj; - _set_heaptop(heap); - return rv; -} diff --git a/libgloss/m32c/stat.S b/libgloss/m32c/stat.S deleted file mode 100644 index a96dcbd..0000000 --- a/libgloss/m32c/stat.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(stat) diff --git a/libgloss/m32c/time.S b/libgloss/m32c/time.S deleted file mode 100644 index 61f5dd5..0000000 --- a/libgloss/m32c/time.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(time) diff --git a/libgloss/m32c/times.S b/libgloss/m32c/times.S deleted file mode 100644 index bf77a56..0000000 --- a/libgloss/m32c/times.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(times) diff --git a/libgloss/m32c/unlink.S b/libgloss/m32c/unlink.S deleted file mode 100644 index 8dfb059..0000000 --- a/libgloss/m32c/unlink.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(unlink) diff --git a/libgloss/m32c/utime.S b/libgloss/m32c/utime.S deleted file mode 100644 index b244a21..0000000 --- a/libgloss/m32c/utime.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(utime) diff --git a/libgloss/m32c/write.S b/libgloss/m32c/write.S deleted file mode 100644 index 273eb47..0000000 --- a/libgloss/m32c/write.S +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (c) 2005 Red Hat Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - The name of Red Hat Incorporated may not be used to endorse - or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -*/ - -#include "m32csys.h" - -S(write) diff --git a/libgloss/m32r/Makefile.in b/libgloss/m32r/Makefile.in index ea9eba3..7226e94 100644 --- a/libgloss/m32r/Makefile.in +++ b/libgloss/m32r/Makefile.in @@ -14,8 +14,7 @@ # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -DESTDIR = -VPATH = @srcdir@ @srcdir@/.. +VPATH = @srcdir@ srcdir = @srcdir@ objdir = . srcroot = $(srcdir)/../.. @@ -65,7 +64,7 @@ TARGETDOC = ../../targetdep.tex CRT0 = crt0.o GDBLIB = m32r-lib.o -GDBSTUB = m32r-stub.o +GDBSTUB = @GDBSTUB@ EVASCRIPT = eva.ld STUBSCRIPT = eva-stub.ld @@ -97,15 +96,14 @@ libmon.a: $(MONLIBOBJS) $(RANLIB) $@ install: - mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) - $(INSTALL_DATA) $(LIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(LIBGLOSS) - $(INSTALL_DATA) $(MONLIBGLOSS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(MONLIBGLOSS) - $(INSTALL_DATA) $(GDBLIB) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(GDBLIB) - $(INSTALL_DATA) $(GDBSTUB) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(GDBSTUB) - $(INSTALL_DATA) $(srcdir)/$(EVASCRIPT) $(DESTDIR)$(tooldir)/lib/$(EVASCRIPT) - $(INSTALL_DATA) $(srcdir)/$(STUBSCRIPT) $(DESTDIR)$(tooldir)/lib/$(STUBSCRIPT) - $(INSTALL_DATA) $(srcdir)/$(MONSPECS) $(DESTDIR)$(tooldir)/lib/$(MONSPECS) + $(INSTALL_DATA) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) + $(INSTALL_DATA) $(LIBGLOSS) $(tooldir)/lib${MULTISUBDIR}/$(LIBGLOSS) + $(INSTALL_DATA) $(MONLIBGLOSS) $(tooldir)/lib${MULTISUBDIR}/$(MONLIBGLOSS) + $(INSTALL_DATA) $(GDBLIB) $(tooldir)/lib${MULTISUBDIR}/$(GDBLIB) + $(INSTALL_DATA) $(GDBSTUB) $(tooldir)/lib${MULTISUBDIR}/$(GDBSTUB) + $(INSTALL_DATA) $(srcdir)/$(EVASCRIPT) $(tooldir)/lib/$(EVASCRIPT) + $(INSTALL_DATA) $(srcdir)/$(STUBSCRIPT) $(tooldir)/lib/$(STUBSCRIPT) + $(INSTALL_DATA) $(srcdir)/$(MONSPECS) $(tooldir)/lib/$(MONSPECS) clean mostlyclean: rm -f *~ *.[oa] diff --git a/libgloss/m32r/configure b/libgloss/m32r/configure index 5e13aa2..567c0e0 100755 --- a/libgloss/m32r/configure +++ b/libgloss/m32r/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -522,8 +533,21 @@ fi +if test "${enable_shared}" = "yes" ; then + echo "Shared libraries not supported for cross compiling, ignored" +fi + +if test "$srcdir" = "." ; then + if test "${with_target_subdir}" != "." ; then + libgloss_topdir="${srcdir}/${with_multisrctop}../../.." + else + libgloss_topdir="${srcdir}/${with_multisrctop}../.." + fi +else + libgloss_topdir="${srcdir}/../.." +fi ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do +for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -535,13 +559,21 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do fi done if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } + { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. +if test -f "${srcdir}/${with_multisrctop}../../gdb/m32r-stub.c"; then + GDBSTUB=${srcdir}/${with_multisrctop}../../gdb/m32r-stub.c +else + GDBSTUB= +fi + + + # Do some error checking and defaulting for the host and target type. # The inputs are: # configure --host=HOST --target=TARGET --build=BUILD NONOPT @@ -569,7 +601,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:573: checking host system type" >&5 +echo "configure:605: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -590,7 +622,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:594: checking target system type" >&5 +echo "configure:626: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -608,7 +640,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:612: checking build system type" >&5 +echo "configure:644: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -650,50 +682,6 @@ test "$program_suffix" != NONE && test "$program_transform_name" = "" && program_transform_name="s,x,x," -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([^/][^/]*\),..,g' -e 's,^/$,,'` - ac_aux_dir= -for ac_dir in ${mdir}../../.. $srcdir/${mdir}../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${mdir}../../.. $srcdir/${mdir}../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -else - ac_aux_dir= -for ac_dir in ${srcdir}/../.. $srcdir/${srcdir}/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/../.. $srcdir/${srcdir}/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -fi - # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -706,7 +694,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:710: checking for a BSD compatible install" >&5 +echo "configure:698: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -770,7 +758,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 +echo "configure:762: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -800,7 +788,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:804: checking for $ac_word" >&5 +echo "configure:792: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -849,7 +837,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:853: checking whether we are using GNU C" >&5 +echo "configure:841: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -858,7 +846,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -873,7 +861,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:877: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:865: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -909,7 +897,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:913: checking for $ac_word" >&5 +echo "configure:901: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1088,6 +1076,7 @@ s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g +s%@GDBSTUB@%$GDBSTUB%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g @@ -1220,11 +1209,11 @@ srcdir=${srcdir} target=${target} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${srcdir}/../.. +libgloss_topdir=${libgloss_topdir} EOF cat >> $CONFIG_STATUS <<\EOF -. ${srcdir}/../../config-ml.in +. ${libgloss_topdir}/config-ml.in exit 0 EOF chmod +x $CONFIG_STATUS diff --git a/libgloss/m32r/configure.in b/libgloss/m32r/configure.in index 7ea64c8..6bffc70 100644 --- a/libgloss/m32r/configure.in +++ b/libgloss/m32r/configure.in @@ -2,16 +2,30 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.5)dnl AC_INIT(crt0.S) -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM +if test "${enable_shared}" = "yes" ; then + echo "Shared libraries not supported for cross compiling, ignored" +fi if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'` - AC_CONFIG_AUX_DIR(${mdir}../../..) + if test "${with_target_subdir}" != "." ; then + libgloss_topdir="${srcdir}/${with_multisrctop}../../.." + else + libgloss_topdir="${srcdir}/${with_multisrctop}../.." + fi else - AC_CONFIG_AUX_DIR(${srcdir}/../..) + libgloss_topdir="${srcdir}/../.." fi +AC_CONFIG_AUX_DIR($libgloss_topdir) + +if test -f "${srcdir}/${with_multisrctop}../../gdb/m32r-stub.c"; then + GDBSTUB=${srcdir}/${with_multisrctop}../../gdb/m32r-stub.c +else + GDBSTUB= +fi +AC_SUBST(GDBSTUB) + +AC_CANONICAL_SYSTEM +AC_ARG_PROGRAM AC_PROG_INSTALL @@ -73,10 +87,10 @@ AC_SUBST(host_makefile_frag_path) AC_SUBST_FILE(host_makefile_frag) AC_OUTPUT(Makefile, -. ${srcdir}/../../config-ml.in, +. ${libgloss_topdir}/config-ml.in, srcdir=${srcdir} target=${target} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${srcdir}/../.. +libgloss_topdir=${libgloss_topdir} ) diff --git a/libgloss/m32r/crt0.S b/libgloss/m32r/crt0.S index 7c22f5a..f60a1a6 100644 --- a/libgloss/m32r/crt0.S +++ b/libgloss/m32r/crt0.S @@ -3,8 +3,7 @@ .global _start _start: - seth sp, #shigh(_stack) - add3 sp, sp, #low(_stack) + ld24 sp, _stack ldi fp, #0 # Clear the BSS. Do it in two parts for efficiency: longwords first diff --git a/libgloss/m32r/m32r-lib.c b/libgloss/m32r/m32r-lib.c index 1d2d291..cad55f5 100644 --- a/libgloss/m32r/m32r-lib.c +++ b/libgloss/m32r/m32r-lib.c @@ -109,22 +109,15 @@ void phex(long x) mesg(buf); } -/* - * These routines set and get exception handlers. They look a little - * funny because the M32R uses branch instructions in its exception - * vectors, not just the addresses. The instruction format used is - * BRA pcdisp24. - */ - -#define TRAP_VECTOR_BASE_ADDR 0x00000040 - /* Setup trap TT to go to ROUTINE. */ -void + +void exceptionHandler (int tt, unsigned long routine) { #ifndef REVC - unsigned long *tb = (unsigned long *) TRAP_VECTOR_BASE_ADDR; - tb[tt] = (0xff000000 | ((routine - (unsigned long) (&tb[tt])) >> 2)); + unsigned long *tb = (unsigned long *) 0x40; /* Trap vector base address */ + + tb[tt] = ((routine >> 2) | 0xff000000) - tt - (0x40 >> 2); #else unsigned long *tb = 0; /* Trap vector base address */ @@ -133,12 +126,14 @@ exceptionHandler (int tt, unsigned long routine) } /* Return the address of trap TT handler */ + unsigned long getExceptionHandler (int tt) { #ifndef REVC - unsigned long *tb = (unsigned long *) TRAP_VECTOR_BASE_ADDR; - return ((tb[tt] & ~0xff000000) << 2) + (unsigned long) (&tb[tt]); + unsigned long *tb = (unsigned long *) 0x40; /* Trap vector base address */ + + return ((tb[tt] + tt + (0x40 >> 2)) | 0xff000000) << 2; #else unsigned long *tb = 0; /* Trap vector base address */ diff --git a/libgloss/m32r/trapmon0.c b/libgloss/m32r/trapmon0.c index 20a2fcb..44bf6a5 100644 --- a/libgloss/m32r/trapmon0.c +++ b/libgloss/m32r/trapmon0.c @@ -14,9 +14,9 @@ int __trap0 (int function, int p1, int p2, int p3, struct _reent *r) case SYS_exit: /* loop so GDB can't go past system exit call */ while (1) { - asm volatile ( - "ldi r0, #0 \n" - "trap #15 ; return control to Mon2000"); + asm volatile (" + ldi r0, #0 + trap #15 ; return control to Mon2000"); } break; @@ -25,15 +25,15 @@ int __trap0 (int function, int p1, int p2, int p3, struct _reent *r) int i; for( i=0; i<p3; i++ ) { - asm volatile ( - "ldi r0, #2 \n" - "ldi r1, #15 ; load Ctrl-O (ASCII 15) \n" - "trap #15 ; write Ctrl-O for quoting purposes" ); - - asm volatile ( - "ldi r0, #2 \n" - "ldb r1, %0 \n" - "trap #15 ; write character to console" + asm volatile (" + ldi r0, #2 + ldi r1, #15 ; load Ctrl-O (ASCII 15) + trap #15 ; write Ctrl-O for quoting purposes" ); + + asm volatile (" + ldi r0, #2 + ldb r1, %0 + trap #15 ; write character to console" : /* no outputs */ : "m" (((char*)p2)[i])); } diff --git a/libgloss/m68hc11/Makefile.in b/libgloss/m68hc11/Makefile.in deleted file mode 100644 index 4a4ab59..0000000 --- a/libgloss/m68hc11/Makefile.in +++ /dev/null @@ -1,176 +0,0 @@ -# Copyright (c) 1995, 1996, 1997 Cygnus Support -# Copyright (c) 1999, 2000, 2001, 2002 Stephane Carrez -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. -# -# This currently works with Motorola's 68HC11 based target boards. -# (should work with 68HC12 but not tested yet) - -DESTDIR = -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -VPATH = $(srcdir) $(srcdir)/.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ -program_transform_name = @program_transform_name@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ -AR_FLAGS = qv - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -SCRIPTS = sim-valid - -OBJS = syscalls.o close.o fstat.o getpid.o isatty.o kill.o \ - lseek.o open.o print.o stat.o \ - unlink.o sci-inout.o - -CFLAGS = - -CRT0 = crt0.o - -# -# here's all the generic target stuff -# -GEN_LDFLAGS= -L${srcdir} -BSP= libbcc.a - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -# -# build a test program for each target board. Just trying to get -# it to link is a good test, so we ignore all the errors for now. -# -all: ${CRT0} ${BSP} - -# -# here's where we build the board support packages for each target -# -${BSP}: $(OBJS) - ${AR} ${ARFLAGS} $@ $(OBJS) - ${RANLIB} $@ - - -syscalls.o: $(srcdir)/syscalls.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -close.o: $(srcdir)/../close.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -fstat.o: $(srcdir)/../fstat.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -getpid.o: $(srcdir)/../getpid.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -isatty.o: $(srcdir)/../isatty.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -kill.o: $(srcdir)/../kill.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -lseek.o: $(srcdir)/../lseek.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -open.o: $(srcdir)/../open.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -print.o: $(srcdir)/../print.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -putnum.o: $(srcdir)/../putnum.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -stat.o: $(srcdir)/../stat.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - -unlink.o: $(srcdir)/../unlink.c - $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< - - -.PHONY: install info dvi doc install-info clean-info - -clean mostlyclean: - rm -f a.out core *.[oais] *-test *.srec *.dis *.x syscall.h - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status *~ - -.PHONY: install info install-info clean-info -install: install-scripts - $(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) - @for bsp in ${BSP}; do\ - $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ - done - -# Install the linker script in the correct place. -install-scripts: - if [ -f ${objroot}/../binutils/objdump ] ; then \ - objdump="${objroot}/../binutils/objdump"; \ - else \ - t='$(program_transform_name)'; \ - objdump=`echo objdump | sed -e $$t`; \ - fi ; \ - name=`$$objdump -f $(CRT0) | sed '/^$$/d'`; \ - case $$name in \ - *elf32-m68hc11*) \ - $(INSTALL_DATA) ${srcdir}/sim-valid-m68hc11.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sim-valid.ld \ - ;; \ - *elf32-m68hc12*) \ - $(INSTALL_DATA) ${srcdir}/sim-valid-m68hc12.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sim-valid.ld \ - ;; \ - esac - -doc: -info: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/m68hc11/configure b/libgloss/m68hc11/configure deleted file mode 100755 index 7757771..0000000 --- a/libgloss/m68hc11/configure +++ /dev/null @@ -1,1216 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -sitefile= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --site-file=FILE use FILE as the site file - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -site-file | --site-file | --site-fil | --site-fi | --site-f) - ac_prev=sitefile ;; - -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) - sitefile="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=sci-inout.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$sitefile"; then - if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi - fi -else - CONFIG_SITE="$sitefile" -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:598: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:619: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:637: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:691: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:755: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:785: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:834: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:895: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - - diff --git a/libgloss/m68hc11/configure.in b/libgloss/m68hc11/configure.in deleted file mode 100644 index dc482cf..0000000 --- a/libgloss/m68hc11/configure.in +++ /dev/null @@ -1,91 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(sci-inout.S) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) - diff --git a/libgloss/m68hc11/crt0.S b/libgloss/m68hc11/crt0.S deleted file mode 100644 index 73dd217..0000000 --- a/libgloss/m68hc11/crt0.S +++ /dev/null @@ -1,69 +0,0 @@ -/* Startup code for M68HC11/M68HC12. - * Copyright (C) 1999, 2000, 2001, 2002 Stephane Carrez (stcarrez@nerim.fr) - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -;----------------------------------------- -; startup code -;----------------------------------------- - .file "crt0.s" - -;; -;; -;; The linker concatenate the .install* sections in the following order: -;; -;; .install0 Setup the stack pointer -;; .install1 Place holder for applications -;; .install2 Optional installation of data section in memory -;; .install3 Place holder for applications -;; .install4 Invokes the main -;; - .sect .install0,"ax",@progbits - .globl _start - -_start: -;; -;; At this step, the stack is not initialized and interrupts are masked. -;; Applications only have 64 cycles to initialize some registers. -;; -;; To have a generic/configurable startup, initialize the stack to -;; the end of some memory region. The _stack symbol is defined by -;; the linker. -;; - lds #_stack - - .sect .install2,"ax",@progbits -;; -;; Call a specific initialization operation. The default is empty. -;; It can be overriden by applications. It is intended to initialize -;; the 68hc11 registers. Function prototype is: -;; -;; int __premain(void); -;; - jsr __premain - -;; -;; -;; - .sect .install4,"ax",@progbits - jsr main -fatal: - jsr exit - bra fatal - -;----------------------------------------- -; end startup code -;----------------------------------------- -;; Force loading of data section mapping and bss clear - .globl __map_data_section - .globl __init_bss_section - diff --git a/libgloss/m68hc11/sci-inout.S b/libgloss/m68hc11/sci-inout.S deleted file mode 100644 index a8675d2..0000000 --- a/libgloss/m68hc11/sci-inout.S +++ /dev/null @@ -1,153 +0,0 @@ -/* M68HC11/M68HC12 serial line operations - * Copyright (C) 1999, 2001, 2003, 2004 Stephane Carrez (stcarrez@nerim.fr) - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#ifdef __HAVE_SHORT_INT__ - .mode mshort -#else - .mode mlong -#endif - -#if defined(__USE_RTC__) - .macro ret -#if defined(mc68hc12) - rtc -#else - jmp __return_32 -#endif - .endm -#else - .macro ret - rts - .endm -#endif -#ifdef mc68hc12 - SC0CR1 = 0xC2 - SC0CR2 = 0xC3 - SC0SR1 = 0xC4 - SC0DRL = 0xC7 - SC0BD = 0xC0 - - .sect .data - .globl _m68hc12_ports -_m68hc12_ports: .word 0 - - .sect .text - .globl outbyte -;;; -;;; int outbyte(char c); -;;; -;;; B : Character to send -;;; -outbyte: - bsr _sci_init -L1: - ldaa SC0SR1,x - bge L1 - stab SC0DRL,x - ldab SC0CR2,x - orab #0x8 - stab SC0CR2,x - ret - - .sect .text - .globl inbyte -;;; -;;; char inbyte(void); -;;; -inbyte: - bsr _sci_init - ldaa SC0SR1,x - bita #0x20 - beq inbyte - ldab SC0CR2,x - ret - - .globl _sci_init - .sect .text -_sci_init: - ldx _m68hc12_ports - beq do_init - dex - rts -do_init: - ldx #0x1 - stx _m68hc12_ports - dex - ldd #26 - std SC0BD,x - ldaa #0 - staa SC0CR1,x - ldaa #0xC - staa SC0CR2,x - rts -#else - BAUD = 0x2b - SCCR1= 0x2c - SCCR2= 0x2d - SCSR = 0x2e - SCDR = 0x2f - - .sect .data - .globl _m68hc11_ports -_m68hc11_ports: .word 0 - - .sect .text - .globl outbyte -;;; -;;; int outbyte(char c); -;;; -;;; B : Character to send -;;; -outbyte: - bsr _sci_init -L1: - ldaa SCSR,x - bge L1 - stab SCDR,x - ldab SCCR2,x - orab #0x8 - stab SCCR2,x - ret - - .sect .text - .globl inbyte -;;; -;;; char inbyte(void); -;;; -inbyte: - bsr _sci_init - ldaa SCSR,x - bita #0x20 - beq inbyte - ldab SCDR,x - ret - - .globl _sci_init - .sect .text -_sci_init: - ldx _m68hc11_ports - beq do_init - rts -do_init: - ldx #0x1000 - stx _m68hc11_ports - ldaa #0x30 - staa BAUD,x - clra - staa SCCR1,x - ldaa #0xC - staa SCCR2,x - rts - -#endif diff --git a/libgloss/m68hc11/sim-valid-m68hc11.ld b/libgloss/m68hc11/sim-valid-m68hc11.ld deleted file mode 100644 index 82e3b68..0000000 --- a/libgloss/m68hc11/sim-valid-m68hc11.ld +++ /dev/null @@ -1,310 +0,0 @@ -/* Linker script for 68HC11 executable (PROM). */ -ENTRY(_start) -OUTPUT_FORMAT("elf32-m68hc11", "elf32-m68hc11", "elf32-m68hc11") -OUTPUT_ARCH(m68hc11) - -GROUP(-lc -lbcc -lgcc) -SEARCH_DIR(.); -/* Fixed definition of the available memory banks. - See generic emulation script for a user defined configuration. */ - -/* The memory layout below is suitable for gcc validation. - It takes care of big programs allowing up to 48128 bytes - of text while allowing some programs that consume some - memory (comp-goto-1 requires the RAM to be set to 0x4400 - to avoid head<->stack collision in malloc/sbrk). */ -MEMORY -{ - page0 (rwx) : ORIGIN = 0x00, LENGTH = 256 - text (rx) : ORIGIN = 0x04400, LENGTH = 0x10000 - 0x4400 - data : ORIGIN = 0x01100, LENGTH = 0x2000 - 0x1100 -} -/* Setup the stack on the top of the data memory bank. */ -PROVIDE (_stack = 0x04400 - 1); -SECTIONS -{ - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.text : - { - *(.rel.text) - *(.rel.text.*) - *(.rel.gnu.linkonce.t.*) - } - .rela.text : - { - *(.rela.text) - *(.rela.text.*) - *(.rela.gnu.linkonce.t.*) - } - .rel.data : - { - *(.rel.data) - *(.rel.data.*) - *(.rel.gnu.linkonce.d.*) - } - .rela.data : - { - *(.rela.data) - *(.rela.data.*) - *(.rela.gnu.linkonce.d.*) - } - .rel.rodata : - { - *(.rel.rodata) - *(.rel.rodata.*) - *(.rel.gnu.linkonce.r.*) - } - .rela.rodata : - { - *(.rela.rodata) - *(.rela.rodata.*) - *(.rela.gnu.linkonce.r.*) - } - .rel.sdata : - { - *(.rel.sdata) - *(.rel.sdata.*) - *(.rel.gnu.linkonce.s.*) - } - .rela.sdata : - { - *(.rela.sdata) - *(.rela.sdata.*) - *(.rela.gnu.linkonce.s.*) - } - .rel.sbss : - { - *(.rel.sbss) - *(.rel.sbss.*) - *(.rel.gnu.linkonce.sb.*) - } - .rela.sbss : - { - *(.rela.sbss) - *(.rela.sbss.*) - *(.rel.gnu.linkonce.sb.*) - } - .rel.bss : - { - *(.rel.bss) - *(.rel.bss.*) - *(.rel.gnu.linkonce.b.*) - } - .rela.bss : - { - *(.rela.bss) - *(.rela.bss.*) - *(.rela.gnu.linkonce.b.*) - } - .rela.stext : { *(.rela.stest) } - .rela.etext : { *(.rela.etest) } - .rela.sdata : { *(.rela.sdata) } - .rela.edata : { *(.rela.edata) } - .rela.eit_v : { *(.rela.eit_v) } - .rela.ebss : { *(.rela.ebss) } - .rela.srodata : { *(.rela.srodata) } - .rela.erodata : { *(.rela.erodata) } - .rela.got : { *(.rela.got) } - .rela.ctors : { *(.rela.ctors) } - .rela.dtors : { *(.rela.dtors) } - .rela.init : { *(.rela.init) } - .rela.fini : { *(.rela.fini) } - .rela.plt : { *(.rela.plt) } - .rel.stext : { *(.rel.stest) } - .rel.etext : { *(.rel.etest) } - .rel.sdata : { *(.rel.sdata) } - .rel.edata : { *(.rel.edata) } - .rel.ebss : { *(.rel.ebss) } - .rel.eit_v : { *(.rel.eit_v) } - .rel.srodata : { *(.rel.srodata) } - .rel.erodata : { *(.rel.erodata) } - .rel.got : { *(.rel.got) } - .rel.ctors : { *(.rel.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rel.init : { *(.rel.init) } - .rel.fini : { *(.rel.fini) } - .rel.plt : { *(.rel.plt) } - /* Concatenate .page0 sections. Put them in the page0 memory bank - unless we are creating a relocatable file. */ - .page0 : - { - *(.page0) - *(.softregs) - } > page0 - - /* Start of text section. */ - .stext : - { - *(.stext) - } > text - .init : - { - *(.init) - } =0 - /* Put trampolines at beginning of text at 0x4400 so that they - are not in memory bank window. */ - .tramp : - { - *(.tramp) - } > text - .text : - { - /* Put startup code at beginning so that _start keeps same address. */ - /* Startup code. */ - KEEP (*(.install0)) /* Section should setup the stack pointer. */ - KEEP (*(.install1)) /* Place holder for applications. */ - KEEP (*(.install2)) /* Optional installation of data sections in RAM. */ - KEEP (*(.install3)) /* Place holder for applications. */ - KEEP (*(.install4)) /* Section that calls the main. */ - *(.init) - *(.text) - *(.text.*) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - /* Finish code. */ - KEEP (*(.fini0)) /* Beginning of finish code (_exit symbol). */ - KEEP (*(.fini1)) /* Place holder for applications. */ - KEEP (*(.fini2)) /* C++ destructors. */ - KEEP (*(.fini3)) /* Place holder for applications. */ - KEEP (*(.fini4)) /* Runtime exit. */ - _etext = .; - PROVIDE (etext = .); - } > text - .eh_frame : - { - *(.eh_frame) - } > text - .gcc_except_table : - { - *(.gcc_except_table) - } > text - .rodata : - { - *(.rodata) - *(.rodata.*) - *(.gnu.linkonce.r*) - } > text - .rodata1 : - { - *(.rodata1) - } > text - /* Constructor and destructor tables are in ROM. */ - .ctors : - { - PROVIDE (__CTOR_LIST__ = .); - KEEP (*(.ctors)) - PROVIDE(__CTOR_END__ = .); - } > text - .dtors : - { - PROVIDE(__DTOR_LIST__ = .); - KEEP (*(.dtors)) - PROVIDE(__DTOR_END__ = .); - } > text - /* Start of the data section image in ROM. */ - __data_image = .; - PROVIDE (__data_image = .); - /* All read-only sections that normally go in PROM must be above. - We construct the DATA image section in PROM at end of all these - read-only sections. The data image must be copied at init time. - Refer to GNU ld, Section 3.6.8.2 Output Section LMA. */ - .data : AT (__data_image) - { - __data_section_start = .; - PROVIDE (__data_section_start = .); - *(.sdata) - *(.data) - *(.data.*) - *(.data1) - *(.gnu.linkonce.d.*) - CONSTRUCTORS - _edata = .; - PROVIDE (edata = .); - } > data - __data_section_size = SIZEOF(.data); - PROVIDE (__data_section_size = SIZEOF(.data)); - __data_image_end = __data_image + __data_section_size; -/* SCz: this does not work yet... This is supposed to force the loading - of _map_data.o (from libgcc.a) when the .data section is not empty. - By doing so, this should bring the code that copies the .data section - from ROM to RAM at init time. - ___pre_comp_data_size = SIZEOF(.data); - __install_data_sections = ___pre_comp_data_size > 0 ? - __map_data_sections : 0; -*/ - /* .install : - { - . = _data_image_end; - } > text */ - /* Relocation for some bss and data sections. */ - .bss : - { - __bss_start = .; - *(.sbss) - *(.scommon) - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - PROVIDE (_end = .); - } > data - __bss_size = SIZEOF(.bss); - PROVIDE (__bss_size = SIZEOF(.bss)); - /* If the 'vectors_addr' symbol is defined, it indicates the start address - of interrupt vectors. This depends on the 68HC11 operating mode: - Addr - Single chip 0xffc0 - Extended mode 0xffc0 - Bootstrap 0x00c0 - Test 0xbfc0 - In general, the vectors address is 0xffc0. This can be overriden - with the '-defsym vectors_addr=0xbfc0' ld option. - Note: for the bootstrap mode, the interrupt vectors are at 0xbfc0 but - they are redirected to 0x00c0 by the internal PROM. Application's vectors - must also consist of jump instructions (see Motorola's manual). */ - PROVIDE (_vectors_addr = DEFINED (vectors_addr) ? vectors_addr : 0xffc0); - .vectors DEFINED (vectors_addr) ? vectors_addr : 0xffc0 : - { - KEEP (*(.vectors)) - } - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. - Treatment of DWARF debug section must be at end of the linker - script to avoid problems when there are undefined symbols. It's necessary - to avoid that the DWARF section is relocated before such undefined - symbols are found. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } -} diff --git a/libgloss/m68hc11/sim-valid-m68hc12.ld b/libgloss/m68hc11/sim-valid-m68hc12.ld deleted file mode 100644 index 681bc6d..0000000 --- a/libgloss/m68hc11/sim-valid-m68hc12.ld +++ /dev/null @@ -1,310 +0,0 @@ -/* Linker script for 68HC12 executable (PROM). */ -ENTRY(_start) -OUTPUT_FORMAT("elf32-m68hc12", "elf32-m68hc12", "elf32-m68hc12") -OUTPUT_ARCH(m68hc12) - -GROUP(-lc -lbcc -lgcc) -SEARCH_DIR(.); -/* Fixed definition of the available memory banks. - See generic emulation script for a user defined configuration. */ - -/* The memory layout below is suitable for gcc validation. - It takes care of big programs allowing up to 48128 bytes - of text while allowing some programs that consume some - memory (comp-goto-1 requires the RAM to be set to 0x4400 - to avoid head<->stack collision in malloc/sbrk). */ -MEMORY -{ - page0 (rwx) : ORIGIN = 0x00, LENGTH = 256 - text (rx) : ORIGIN = 0x04400, LENGTH = 0x10000 - 0x4400 - data : ORIGIN = 0x01100, LENGTH = 0x2000 - 0x1100 -} -/* Setup the stack on the top of the data memory bank. */ -PROVIDE (_stack = 0x04400 - 1); -SECTIONS -{ - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.text : - { - *(.rel.text) - *(.rel.text.*) - *(.rel.gnu.linkonce.t.*) - } - .rela.text : - { - *(.rela.text) - *(.rela.text.*) - *(.rela.gnu.linkonce.t.*) - } - .rel.data : - { - *(.rel.data) - *(.rel.data.*) - *(.rel.gnu.linkonce.d.*) - } - .rela.data : - { - *(.rela.data) - *(.rela.data.*) - *(.rela.gnu.linkonce.d.*) - } - .rel.rodata : - { - *(.rel.rodata) - *(.rel.rodata.*) - *(.rel.gnu.linkonce.r.*) - } - .rela.rodata : - { - *(.rela.rodata) - *(.rela.rodata.*) - *(.rela.gnu.linkonce.r.*) - } - .rel.sdata : - { - *(.rel.sdata) - *(.rel.sdata.*) - *(.rel.gnu.linkonce.s.*) - } - .rela.sdata : - { - *(.rela.sdata) - *(.rela.sdata.*) - *(.rela.gnu.linkonce.s.*) - } - .rel.sbss : - { - *(.rel.sbss) - *(.rel.sbss.*) - *(.rel.gnu.linkonce.sb.*) - } - .rela.sbss : - { - *(.rela.sbss) - *(.rela.sbss.*) - *(.rel.gnu.linkonce.sb.*) - } - .rel.bss : - { - *(.rel.bss) - *(.rel.bss.*) - *(.rel.gnu.linkonce.b.*) - } - .rela.bss : - { - *(.rela.bss) - *(.rela.bss.*) - *(.rela.gnu.linkonce.b.*) - } - .rela.stext : { *(.rela.stest) } - .rela.etext : { *(.rela.etest) } - .rela.sdata : { *(.rela.sdata) } - .rela.edata : { *(.rela.edata) } - .rela.eit_v : { *(.rela.eit_v) } - .rela.ebss : { *(.rela.ebss) } - .rela.srodata : { *(.rela.srodata) } - .rela.erodata : { *(.rela.erodata) } - .rela.got : { *(.rela.got) } - .rela.ctors : { *(.rela.ctors) } - .rela.dtors : { *(.rela.dtors) } - .rela.init : { *(.rela.init) } - .rela.fini : { *(.rela.fini) } - .rela.plt : { *(.rela.plt) } - .rel.stext : { *(.rel.stest) } - .rel.etext : { *(.rel.etest) } - .rel.sdata : { *(.rel.sdata) } - .rel.edata : { *(.rel.edata) } - .rel.ebss : { *(.rel.ebss) } - .rel.eit_v : { *(.rel.eit_v) } - .rel.srodata : { *(.rel.srodata) } - .rel.erodata : { *(.rel.erodata) } - .rel.got : { *(.rel.got) } - .rel.ctors : { *(.rel.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rel.init : { *(.rel.init) } - .rel.fini : { *(.rel.fini) } - .rel.plt : { *(.rel.plt) } - /* Concatenate .page0 sections. Put them in the page0 memory bank - unless we are creating a relocatable file. */ - .page0 : - { - *(.page0) - } > page0 - - /* Start of text section. */ - .stext : - { - *(.stext) - } > text - .init : - { - *(.init) - } =0 - /* Put trampolines at beginning of text at 0x4400 so that they - are not in memory bank window. */ - .tramp : - { - *(.tramp) - } > text - .text : - { - /* Put startup code at beginning so that _start keeps same address. */ - /* Startup code. */ - KEEP (*(.install0)) /* Section should setup the stack pointer. */ - KEEP (*(.install1)) /* Place holder for applications. */ - KEEP (*(.install2)) /* Optional installation of data sections in RAM. */ - KEEP (*(.install3)) /* Place holder for applications. */ - KEEP (*(.install4)) /* Section that calls the main. */ - *(.init) - *(.text) - *(.text.*) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - /* Finish code. */ - KEEP (*(.fini0)) /* Beginning of finish code (_exit symbol). */ - KEEP (*(.fini1)) /* Place holder for applications. */ - KEEP (*(.fini2)) /* C++ destructors. */ - KEEP (*(.fini3)) /* Place holder for applications. */ - KEEP (*(.fini4)) /* Runtime exit. */ - _etext = .; - PROVIDE (etext = .); - } > text - .eh_frame : - { - *(.eh_frame) - } > text - .gcc_except_table : - { - *(.gcc_except_table) - } > text - .rodata : - { - *(.rodata) - *(.rodata.*) - *(.gnu.linkonce.r*) - } > text - .rodata1 : - { - *(.rodata1) - } > text - /* Constructor and destructor tables are in ROM. */ - .ctors : - { - PROVIDE (__CTOR_LIST__ = .); - KEEP (*(.ctors)) - PROVIDE(__CTOR_END__ = .); - } > text - .dtors : - { - PROVIDE(__DTOR_LIST__ = .); - KEEP (*(.dtors)) - PROVIDE(__DTOR_END__ = .); - } > text - /* Start of the data section image in ROM. */ - __data_image = .; - PROVIDE (__data_image = .); - /* All read-only sections that normally go in PROM must be above. - We construct the DATA image section in PROM at end of all these - read-only sections. The data image must be copied at init time. - Refer to GNU ld, Section 3.6.8.2 Output Section LMA. */ - .data : AT (__data_image) - { - __data_section_start = .; - PROVIDE (__data_section_start = .); - *(.sdata) - *(.data) - *(.data.*) - *(.data1) - *(.gnu.linkonce.d.*) - CONSTRUCTORS - _edata = .; - PROVIDE (edata = .); - } > data - __data_section_size = SIZEOF(.data); - PROVIDE (__data_section_size = SIZEOF(.data)); - __data_image_end = __data_image + __data_section_size; -/* SCz: this does not work yet... This is supposed to force the loading - of _map_data.o (from libgcc.a) when the .data section is not empty. - By doing so, this should bring the code that copies the .data section - from ROM to RAM at init time. - ___pre_comp_data_size = SIZEOF(.data); - __install_data_sections = ___pre_comp_data_size > 0 ? - __map_data_sections : 0; -*/ - /* .install : - { - . = _data_image_end; - } > text */ - /* Relocation for some bss and data sections. */ - .bss : - { - __bss_start = .; - *(.softregs) - *(.sbss) - *(.scommon) - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - PROVIDE (_end = .); - } > data - __bss_size = SIZEOF(.bss); - PROVIDE (__bss_size = SIZEOF(.bss)); - /* If the 'vectors_addr' symbol is defined, it indicates the start address - of interrupt vectors. This depends on the 68HC11 operating mode: - Addr - Single chip 0xffc0 - Extended mode 0xffc0 - Bootstrap 0x00c0 - Test 0xbfc0 - In general, the vectors address is 0xffc0. This can be overriden - with the '-defsym vectors_addr=0xbfc0' ld option. - Note: for the bootstrap mode, the interrupt vectors are at 0xbfc0 but - they are redirected to 0x00c0 by the internal PROM. Application's vectors - must also consist of jump instructions (see Motorola's manual). */ - PROVIDE (_vectors_addr = DEFINED (vectors_addr) ? vectors_addr : 0xffc0); - .vectors DEFINED (vectors_addr) ? vectors_addr : 0xffc0 : - { - KEEP (*(.vectors)) - } - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. - Treatment of DWARF debug section must be at end of the linker - script to avoid problems when there are undefined symbols. It's necessary - to avoid that the DWARF section is relocated before such undefined - symbols are found. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } -} diff --git a/libgloss/m68hc11/syscalls.c b/libgloss/m68hc11/syscalls.c deleted file mode 100644 index 9620146..0000000 --- a/libgloss/m68hc11/syscalls.c +++ /dev/null @@ -1,74 +0,0 @@ -/* pseudo system calls for M68HC11 & M68HC12. - * Copyright (C) 1999, 2000, 2001, 2002 Stephane Carrez (stcarrez@nerim.fr) - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> - -extern void outbyte(char c); -extern char inbyte(void); - -int -read(int file, void *p, size_t nbytes) -{ - int i = 0; - char* buf = (char*) p; - - for (i = 0; i < nbytes; i++) { - *(buf + i) = inbyte(); - if ((*(buf + i) == '\n') || (*(buf + i) == '\r')) { - i++; - break; - } - } - return (i); -} - -int -write(int file, const void *p, size_t len) -{ - const char *ptr = (const char*) p; - int todo; - - for (todo = len; todo; --todo) - { - outbyte (*ptr++); - } - return(len); -} - -void * -sbrk(ptrdiff_t incr) -{ - extern char _end; /* Defined by the linker */ - static char *heap_end; - char *prev_heap_end; - - register char *stack_ptr asm ("sp"); - - if (heap_end == 0) - { - heap_end = &_end; - } - prev_heap_end = heap_end; - if (heap_end + incr > stack_ptr) - { - write (1, "Heap and stack collision\n", 25); - abort (); - } - heap_end += incr; - return ((void*) prev_heap_end); -} - -/* end of syscalls.c */ diff --git a/libgloss/m68k/Makefile.in b/libgloss/m68k/Makefile.in index 8faf5ff..5705b11 100644 --- a/libgloss/m68k/Makefile.in +++ b/libgloss/m68k/Makefile.in @@ -14,7 +14,6 @@ # target boards. # -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -123,8 +122,6 @@ IDPGDB_OBJS= leds.o idp-inbyte.o idp-gdb-outbyte.o mc68ec.o DBUG_BSP= libdbug.a DBUG_OBJS= dbug-exit.o dbug-inbyte.o dbug-outbyte.o -CF_SCRIPTS= m5208evb.ld m5213evb.ld m5235evb.ld m5272c3.ld m5282evb.ld - # Host specific makefile fragment comes in here. @host_makefile_frag@ @@ -132,7 +129,7 @@ CF_SCRIPTS= m5208evb.ld m5213evb.ld m5235evb.ld m5272c3.ld m5282evb.ld # build a test program for each target board. Just trying to get # it to link is a good test, so we ignore all the errors for now. # -all: ${SIM_CRT0} ${SIM_BSP} ${CRT0} ${BCC_BSP} ${IDP_BSP} ${IDPGDB_BSP} ${MVME135_BSP} ${MVME162_BSP} ${DBUG_BSP} ${CF_SCRIPTS} +all: ${SIM_CRT0} ${SIM_BSP} ${CRT0} ${BCC_BSP} ${IDP_BSP} ${IDPGDB_BSP} ${MVME135_BSP} ${MVME162_BSP} ${DBUG_BSP} # # here's where we build the board support packages for each target @@ -165,21 +162,6 @@ ${MVME162_BSP}: $(OBJS) ${MVME162_OBJS} ${AR} ${ARFLAGS} $@ $(OBJS) ${MVME162_OBJS} ${RANLIB} $@ -m5208evb.ld: dbug-cf.sc Makefile - RAMSTART=1024M RAMSIZE=16M RAMDBUG=128K ${SHELL} $< > $@ - -m5213evb.ld: dbug-cf.sc Makefile - RAMSTART=512M RAMSIZE=32K RAMDBUG=8K ${SHELL} $< > $@ - -m5235evb.ld: dbug-cf.sc Makefile - RAMSTART=0M RAMSIZE=16M RAMDBUG=64K ${SHELL} $< > $@ - -m5272c3.ld: dbug-cf.sc Makefile - RAMSTART=0M RAMSIZE=4M RAMDBUG=128K ${SHELL} $< > $@ - -m5282evb.ld: dbug-cf.sc Makefile - RAMSTART=0M RAMSIZE=16M RAMDBUG=64K ${SHELL} $< > $@ - leds.o: ${srcdir}/leds.c $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< @@ -276,33 +258,30 @@ unlink.o: $(srcdir)/../unlink.c .PHONY: install info dvi doc install-info clean-info install: # install SIM stuff - $(INSTALL_PROGRAM) $(SIM_CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(SIM_CRT0) - $(INSTALL_PROGRAM) $(SIM_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP) - $(INSTALL_DATA) ${srcdir}/sim.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sim.ld + $(INSTALL_PROGRAM) $(SIM_CRT0) $(tooldir)/lib${MULTISUBDIR}/$(SIM_CRT0) + $(INSTALL_PROGRAM) $(SIM_BSP) $(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP) + $(INSTALL_DATA) ${srcdir}/sim.ld $(tooldir)/lib${MULTISUBDIR}/sim.ld # - $(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) + $(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) # install BCC stuff - $(INSTALL_PROGRAM) $(BCC_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(BCC_BSP) - $(INSTALL_DATA) ${srcdir}/bcc.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/bcc.ld + $(INSTALL_PROGRAM) $(BCC_BSP) $(tooldir)/lib${MULTISUBDIR}/$(BCC_BSP) + $(INSTALL_DATA) ${srcdir}/bcc.ld $(tooldir)/lib${MULTISUBDIR}/bcc.ld # install IDP stuff - $(INSTALL_PROGRAM) $(IDP_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(IDP_BSP) - $(INSTALL_DATA) ${srcdir}/idp.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/idp.ld + $(INSTALL_PROGRAM) $(IDP_BSP) $(tooldir)/lib${MULTISUBDIR}/$(IDP_BSP) + $(INSTALL_DATA) ${srcdir}/idp.ld $(tooldir)/lib${MULTISUBDIR}/idp.ld # install IDPGDB stuff - $(INSTALL_PROGRAM) $(IDPGDB_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(IDPGDB_BSP) - $(INSTALL_DATA) ${srcdir}/idpgdb.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/idpgdb.ld + $(INSTALL_PROGRAM) $(IDPGDB_BSP) $(tooldir)/lib${MULTISUBDIR}/$(IDPGDB_BSP) + $(INSTALL_DATA) ${srcdir}/idpgdb.ld $(tooldir)/lib${MULTISUBDIR}/idpgdb.ld # install MVME135 stuff - $(INSTALL_PROGRAM) $(MVME135_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(MVME135_BSP) - $(INSTALL_DATA) ${srcdir}/mvme135.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/mvme135.ld + $(INSTALL_PROGRAM) $(MVME135_BSP) $(tooldir)/lib${MULTISUBDIR}/$(MVME135_BSP) + $(INSTALL_DATA) ${srcdir}/mvme135.ld $(tooldir)/lib${MULTISUBDIR}/mvme135.ld # install MVME162lx stuff - $(INSTALL_PROGRAM) $(MVME162_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(MVME162_BSP) - $(INSTALL_DATA) ${srcdir}/mvme162.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/mvme162.ld + $(INSTALL_PROGRAM) $(MVME162_BSP) $(tooldir)/lib${MULTISUBDIR}/$(MVME162_BSP) + $(INSTALL_DATA) ${srcdir}/mvme162.ld $(tooldir)/lib${MULTISUBDIR}/mvme162.ld # install DBUG stuff - $(INSTALL_PROGRAM) $(DBUG_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(DBUG_BSP) - $(INSTALL_DATA) ${srcdir}/sbc5204.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sbc5204.ld - $(INSTALL_DATA) ${srcdir}/sbc5206.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/sbc5206.ld - for script in $(CF_SCRIPTS) ; \ - do $(INSTALL_DATA) $$script $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$script ; \ - done + $(INSTALL_PROGRAM) $(DBUG_BSP) $(tooldir)/lib${MULTISUBDIR}/$(DBUG_BSP) + $(INSTALL_DATA) ${srcdir}/sbc5204.ld $(tooldir)/lib${MULTISUBDIR}/sbc5204.ld + $(INSTALL_DATA) ${srcdir}/sbc5206.ld $(tooldir)/lib${MULTISUBDIR}/sbc5206.ld # target specific makefile fragment comes in here. @target_makefile_frag@ diff --git a/libgloss/m68k/asm.h b/libgloss/m68k/asm.h index e341385..035024a 100644 --- a/libgloss/m68k/asm.h +++ b/libgloss/m68k/asm.h @@ -83,72 +83,3 @@ #define fpcr REG (fpcr) #define fpsr REG (fpsr) #define fpi REG (fpi) - -/* Provide a few macros to allow for PIC code support. - * With PIC, data is stored A5 relative so we've got to take a bit of special - * care to ensure that all loads of global data is via A5. PIC also requires - * jumps and subroutine calls to be PC relative rather than absolute. We cheat - * a little on this and in the PIC case, we use short offset branches and - * hope that the final object code is within range (which it should be). - */ -#ifndef __PIC__ - - /* Non PIC (absolute/relocatable) versions */ - - .macro PICCALL addr - jbsr \addr - .endm - - .macro PICJUMP addr - jmp \addr - .endm - - .macro PICLEA sym, reg - lea \sym, \reg - .endm - - .macro PICPEA sym, areg - pea \sym - .endm - -#else /* __PIC__ */ - - /* Common for -mid-shared-libary and -msep-data */ - - .macro PICCALL addr - bsr \addr - .endm - - .macro PICJUMP addr - bra \addr - .endm - -# if defined(__ID_SHARED_LIBRARY__) - - /* -mid-shared-library versions */ - - .macro PICLEA sym, reg - movel a5@(_current_shared_library_a5_offset_), \reg - movel \sym@GOT(\reg), \reg - .endm - - .macro PICPEA sym, areg - movel a5@(_current_shared_library_a5_offset_), \areg - movel \sym@GOT(\areg), sp@- - .endm - -# else /* !__ID_SHARED_LIBRARY__ */ - - /* Versions for -msep-data */ - - .macro PICLEA sym, reg - movel \sym@GOT(a5), \reg - .endm - - .macro PICPEA sym, areg - movel \sym@GOT(a5), sp@- - .endm - -# endif /* !__ID_SHARED_LIBRARY__ */ -#endif /* __PIC__ */ - diff --git a/libgloss/m68k/bcc.ld b/libgloss/m68k/bcc.ld index b9acfb3..65f6441 100644 --- a/libgloss/m68k/bcc.ld +++ b/libgloss/m68k/bcc.ld @@ -63,7 +63,7 @@ SECTIONS { .text : { - *(.text .text.*) + *(.text) . = ALIGN(0x4); __CTOR_LIST__ = .; ___CTOR_LIST__ = .; @@ -77,7 +77,7 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - *(.rodata .rodata.*) + *(.rodata) *(.gcc_except_table) . = ALIGN(0x2); @@ -99,9 +99,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -110,7 +109,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/configure b/libgloss/m68k/configure index 1fbf8c8..36af25e 100755 --- a/libgloss/m68k/configure +++ b/libgloss/m68k/configure @@ -740,18 +740,10 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:755: checking for $ac_word" >&5 +echo "configure:747: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -781,7 +773,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:785: checking for $ac_word" >&5 +echo "configure:777: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -826,11 +818,92 @@ else echo "$ac_t""no" 1>&6 fi + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + # Extract the first word of "cl", so it can be a program name with args. +set dummy cl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:828: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="cl" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + ;; + esac + fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +cat > conftest.$ac_ext << EOF + +#line 871 "configure" +#include "confdefs.h" + +main(){return(0);} +EOF +if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cc_cross=no + else + ac_cv_prog_cc_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cc_works=no +fi +rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +if test $ac_cv_prog_cc_works = no; then + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 +cross_compiling=$ac_cv_prog_cc_cross + echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:834: checking whether we are using GNU C" >&5 +echo "configure:907: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -839,7 +912,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -850,11 +923,15 @@ echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 +else + GCC= +fi + +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" +CFLAGS= +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:935: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -869,19 +946,22 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then CFLAGS="-g -O2" else - CFLAGS="-O2" + CFLAGS="-g" fi else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi fi - AS=${AS-as} AR=${AR-ar} @@ -891,7 +971,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:895: checking for $ac_word" >&5 +echo "configure:975: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1111,7 +1191,7 @@ cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. diff --git a/libgloss/m68k/configure.in b/libgloss/m68k/configure.in index 6cb89ca..1770226 100644 --- a/libgloss/m68k/configure.in +++ b/libgloss/m68k/configure.in @@ -34,46 +34,7 @@ AC_ARG_PROGRAM AC_PROG_INSTALL -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - +AC_PROG_CC AS=${AS-as} AC_SUBST(AS) AR=${AR-ar} diff --git a/libgloss/m68k/crt0.S b/libgloss/m68k/crt0.S index 1aa0dd6..cb78481 100644 --- a/libgloss/m68k/crt0.S +++ b/libgloss/m68k/crt0.S @@ -84,7 +84,7 @@ SYM (start): subql IMM(1), d0 2: clrb (a0)+ -#if !defined(__mcoldfire__) +#ifndef __mcf5200__ dbra d0, 2b clrw d0 subql IMM(1), d0 @@ -100,13 +100,13 @@ SYM (start): * initialize target specific stuff. Only execute these * functions it they exist. */ - PICLEA SYM (hardware_init_hook), a0 + lea SYM (hardware_init_hook), a0 cmpl IMM(0),a0 jbeq 4f jsr (a0) 4: - PICLEA SYM (software_init_hook), a0 + lea SYM (software_init_hook), a0 cmpl IMM(0),a0 jbeq 5f jsr (a0) @@ -121,18 +121,18 @@ SYM (start): #ifdef ADD_DTORS /* put __do_global_dtors in the atexit list so the destructors get run */ movel IMM (SYM(__do_global_dtors)),(sp) - PICCALL SYM (atexit) + jsr SYM (atexit) #endif movel IMM (__FINI_SECTION__),(sp) - PICCALL SYM (atexit) + jsr SYM (atexit) - PICCALL __INIT_SECTION__ + jsr __INIT_SECTION__ pea 0 - PICPEA SYM (environ),a0 + pea SYM (environ) pea sp@(4) pea 0 - PICCALL SYM (main) + jsr SYM (main) movel d0, sp@- /* @@ -140,4 +140,4 @@ SYM (start): * control back to the ROM monitor, if there is one. This calls the * exit() from the C library so the C++ tables get cleaned up right. */ - PICCALL SYM (exit) + jsr SYM (exit) diff --git a/libgloss/m68k/dbug-cf.sc b/libgloss/m68k/dbug-cf.sc deleted file mode 100644 index 0342ed1..0000000 --- a/libgloss/m68k/dbug-cf.sc +++ /dev/null @@ -1,112 +0,0 @@ -# a linker script template. -# RAMSTART - start of board's ram -# RAMSIZE - size of board's ram -# RAMDBUG - bytes at start of RAM for DBUG use - -cat <<EOF -STARTUP(crt0.o) -OUTPUT_ARCH(m68k) -/* DBUG loads SREC files */ -/*OUTPUT_FORMAT(srec)*/ -ENTRY(start) -SEARCH_DIR(.) -GROUP(-ldbug -lc -lgcc -ldbug) -__DYNAMIC = 0; - -MEMORY -{ - ram (rwx) : ORIGIN = ${RAMSTART} + ${RAMDBUG:-0}, - LENGTH = ${RAMSIZE} - ${RAMDBUG:-0} -} - -PROVIDE (__stack = ${RAMSTART} + ${RAMSIZE}); - -/* - * Initalize some symbols to be zero so we can reference them in the - * crt0 without core dumping. These functions are all optional, but - * we do this so we can have our crt0 always use them if they exist. - * This is so BSPs work better when using the crt0 installed gcc. - * We have to initalize them twice, so we cover a.out (which prepends - * an underscore) and coff object file formats. - */ -PROVIDE (hardware_init_hook = 0); -PROVIDE (_hardware_init_hook = 0); -PROVIDE (software_init_hook = 0); -PROVIDE (_software_init_hook = 0); -/* - * stick everything in ram (of course) - */ -SECTIONS -{ - .text : - { - CREATE_OBJECT_SYMBOLS - *(.text .text.*) - - . = ALIGN(0x4); - /* These are for running static constructors and destructors under ELF. */ - KEEP (*crtbegin.o(.ctors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - - *(.rodata .rodata.*) - - . = ALIGN(0x4); - *(.gcc_except_table) - - . = ALIGN(0x4); - *(.eh_frame) - - . = ALIGN(0x4); - __INIT_SECTION__ = . ; - LONG (0x4e560000) /* linkw %fp,#0 */ - *(.init) - SHORT (0x4e5e) /* unlk %fp */ - SHORT (0x4e75) /* rts */ - - . = ALIGN(0x4); - __FINI_SECTION__ = . ; - LONG (0x4e560000) /* linkw %fp,#0 */ - *(.fini) - SHORT (0x4e5e) /* unlk %fp */ - SHORT (0x4e75) /* rts */ - - _etext = .; - *(.lit) - } > ram - - .data : - { - *(.got.plt) *(.got) - *(.shdata) - *(.data .data.*) - _edata = .; - } > ram - - .bss : - { - . = ALIGN(0x4); - __bss_start = . ; - *(.shbss) - *(.bss .bss.*) - *(COMMON) - _end = ALIGN (0x8); - __end = _end; - } > ram - - .stab 0 (NOLOAD) : - { - *(.stab) - } - - .stabstr 0 (NOLOAD) : - { - *(.stabstr) - } -} -EOF diff --git a/libgloss/m68k/idp.ld b/libgloss/m68k/idp.ld index 7359783..db6d8c5 100644 --- a/libgloss/m68k/idp.ld +++ b/libgloss/m68k/idp.ld @@ -77,7 +77,7 @@ SECTIONS .text : { CREATE_OBJECT_SYMBOLS - *(.text .text.*) + *(.text) . = ALIGN(0x4); /* These are for running static constructors and destructors under ELF. */ @@ -90,7 +90,7 @@ SECTIONS KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) - *(.rodata .rodata.*) + *(.rodata) . = ALIGN(0x4); *(.gcc_except_table) @@ -118,9 +118,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -129,7 +128,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/idpgdb.ld b/libgloss/m68k/idpgdb.ld index a8a13ee..9d24e28 100644 --- a/libgloss/m68k/idpgdb.ld +++ b/libgloss/m68k/idpgdb.ld @@ -77,7 +77,7 @@ SECTIONS .text : { CREATE_OBJECT_SYMBOLS - *(.text .text.*) + *(.text) . = ALIGN(0x4); /* These are for running static constructors and destructors under ELF. */ @@ -90,7 +90,7 @@ SECTIONS KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) - *(.rodata .rodata.*) + *(.rodata) . = ALIGN(0x4); *(.gcc_except_table) @@ -118,9 +118,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -129,7 +128,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/leds.c b/libgloss/m68k/leds.c index b911237..125ae8b 100644 --- a/libgloss/m68k/leds.c +++ b/libgloss/m68k/leds.c @@ -15,6 +15,9 @@ */ #include "leds.h" +void zylons(); +void led_putnum(); + /* * led_putnum -- print a hex number on the LED. the value of num must be a char with * the ascii value. ie... number 0 is '0', a is 'a', ' ' (null) clears diff --git a/libgloss/m68k/leds.h b/libgloss/m68k/leds.h index c3fd6a3..919c381 100644 --- a/libgloss/m68k/leds.h +++ b/libgloss/m68k/leds.h @@ -32,6 +32,5 @@ #define FUDGE(x) ((x >= 0xa && x <= 0xf) ? (x + 'a') & 0x7f : (x + '0') & 0x7f) extern void led_putnum( char ); -void zylons(); #endif /* __LEDS_H__ */ diff --git a/libgloss/m68k/mvme135.ld b/libgloss/m68k/mvme135.ld index fd52e4e..dba0dbe 100644 --- a/libgloss/m68k/mvme135.ld +++ b/libgloss/m68k/mvme135.ld @@ -64,7 +64,7 @@ SECTIONS { .text : { - *(.text .text.*) + *(.text) . = ALIGN(0x4); __CTOR_LIST__ = .; ___CTOR_LIST__ = .; @@ -78,7 +78,7 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - *(.rodata .rodata.*) + *(.rodata) *(.gcc_except_table) . = ALIGN(0x2); @@ -100,9 +100,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -111,7 +110,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/mvme162.ld b/libgloss/m68k/mvme162.ld index 18d5f62..fd3ae10 100644 --- a/libgloss/m68k/mvme162.ld +++ b/libgloss/m68k/mvme162.ld @@ -65,7 +65,7 @@ SECTIONS { .text : { - *(.text .text.*) + *(.text) . = ALIGN(0x4); __CTOR_LIST__ = .; ___CTOR_LIST__ = .; @@ -79,7 +79,7 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - *(.rodata .rodata.*) + *(.rodata) *(.gcc_except_table) . = ALIGN(0x2); @@ -101,9 +101,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -112,7 +111,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/sbc5204.ld b/libgloss/m68k/sbc5204.ld index da10fe8..4570b0e 100644 --- a/libgloss/m68k/sbc5204.ld +++ b/libgloss/m68k/sbc5204.ld @@ -63,7 +63,7 @@ SECTIONS { .text : { - *(.text .text.*) + *(.text) . = ALIGN(0x4); __CTOR_LIST__ = .; ___CTOR_LIST__ = .; @@ -77,7 +77,7 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - *(.rodata .rodata.*) + *(.rodata) *(.gcc_except_table) . = ALIGN(0x2); @@ -99,9 +99,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -110,7 +109,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/sbc5206.ld b/libgloss/m68k/sbc5206.ld index e0707d8..d082a08 100644 --- a/libgloss/m68k/sbc5206.ld +++ b/libgloss/m68k/sbc5206.ld @@ -63,7 +63,7 @@ SECTIONS { .text : { - *(.text .text.*) + *(.text) . = ALIGN(0x4); __CTOR_LIST__ = .; ___CTOR_LIST__ = .; @@ -77,7 +77,7 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - *(.rodata .rodata.*) + *(.rodata) *(.gcc_except_table) . = ALIGN(0x2); @@ -99,9 +99,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -110,7 +109,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/m68k/sim-crt0.S b/libgloss/m68k/sim-crt0.S index 49f7777..bc25514 100644 --- a/libgloss/m68k/sim-crt0.S +++ b/libgloss/m68k/sim-crt0.S @@ -78,7 +78,7 @@ SYM (start): subql IMM(1), d0 2: clrb (a0)+ -#if !defined(__mcoldfire__) && !defined(__mcf5200__) +#ifndef __mcf5200__ dbra d0, 2b clrw d0 subql IMM(1), d0 @@ -99,18 +99,18 @@ SYM (start): #ifdef ADD_DTORS /* put __do_global_dtors in the atexit list so the destructors get run */ movel IMM (SYM(__do_global_dtors)),(sp) - PICCALL SYM (atexit) + jsr SYM (atexit) #endif movel IMM (__FINI_SECTION__),(sp) - PICCALL SYM (atexit) + jsr SYM (atexit) - PICCALL __INIT_SECTION__ + jsr __INIT_SECTION__ pea 0 - PICPEA SYM (environ),a0 + pea SYM (environ) pea sp@(4) pea 0 - PICCALL SYM (main) + jsr SYM (main) movel d0, sp@- /* @@ -118,4 +118,4 @@ SYM (start): * control back to the ROM monitor, if there is one. This calls the * exit() from the C library so the C++ tables get cleaned up right. */ - PICCALL SYM (exit) + jsr SYM (exit) diff --git a/libgloss/m68k/sim-funcs.c b/libgloss/m68k/sim-funcs.c index 712c566..a4b14ca 100644 --- a/libgloss/m68k/sim-funcs.c +++ b/libgloss/m68k/sim-funcs.c @@ -13,7 +13,6 @@ * they apply. */ -#define _XOPEN_SOURCE #include <unistd.h> int diff --git a/libgloss/m68k/sim.ld b/libgloss/m68k/sim.ld index 57a41d0..b44fd07 100644 --- a/libgloss/m68k/sim.ld +++ b/libgloss/m68k/sim.ld @@ -18,7 +18,7 @@ SECTIONS .text : { CREATE_OBJECT_SYMBOLS - *(.text .text.*) + *(.text) . = ALIGN(0x4); /* These are for running static constructors and destructors under ELF. */ @@ -31,7 +31,7 @@ SECTIONS KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) - *(.rodata .rodata.*) + *(.rodata) . = ALIGN(0x4); *(.gcc_except_table) @@ -59,9 +59,8 @@ SECTIONS .data : { - *(.got.plt) *(.got) *(.shdata) - *(.data .data.*) + *(.data) _edata = .; } > ram @@ -70,7 +69,7 @@ SECTIONS . = ALIGN(0x4); __bss_start = . ; *(.shbss) - *(.bss .bss.*) + *(.bss) *(COMMON) _end = ALIGN (0x8); __end = _end; diff --git a/libgloss/mcore/Makefile.in b/libgloss/mcore/Makefile.in index ecfd2b6..236496c 100644 --- a/libgloss/mcore/Makefile.in +++ b/libgloss/mcore/Makefile.in @@ -1,7 +1,6 @@ # # -DESTDIR = VPATH = @srcdir@ @srcdir@/.. srcdir = @srcdir@ objdir = . @@ -125,11 +124,11 @@ distclean maintainer-clean realclean: clean install: ${SIM_INSTALL} ${MON_INSTALL} install-mon: - set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${MON_PREFIX}$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MON_CRT0} ${MON_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MON_SCRIPTS}; do ${INSTALL_DATA} ${srcdir}/${MON_PREFIX}$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-sim: - set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done doc: info: diff --git a/libgloss/mcore/elf-cmb.ld b/libgloss/mcore/elf-cmb.ld index 611e6b9..591aa9d 100644 --- a/libgloss/mcore/elf-cmb.ld +++ b/libgloss/mcore/elf-cmb.ld @@ -180,7 +180,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/mips/Makefile.in b/libgloss/mips/Makefile.in index 00f65a0..51c3a5a 100644 --- a/libgloss/mips/Makefile.in +++ b/libgloss/mips/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 Cygnus Support +# Copyright (c) 1995, 1996, 1997, 1998, 1999 Cygnus Support # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided @@ -10,7 +10,6 @@ # the new terms are clearly indicated on the first page of each file where # they apply. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -68,14 +67,12 @@ CRT0 = @crt0@ PCRT0 = @pcrt0@ GENOBJS = syscalls.o fstat.o getpid.o isatty.o kill.o \ lseek.o print.o putnum.o stat.o unlink.o -GENOBJS2 = open.o close.o read.o write.o IDTOBJS = idtmon.o @part_specific_obj@ ${GENOBJS} PMONOBJS = pmon.o @part_specific_obj@ ${GENOBJS} LSIOBJS = lsipmon.o @part_specific_obj@ ${GENOBJS} -DVEOBJS = dvemon.o @part_specific_obj@ ${GENOBJS} ${GENOBJS2} -JMR3904OBJS = jmr3904-io.o @part_specific_obj@ ${GENOBJS} ${GENOBJS2} -CFEOBJS = cfe.o cfe_api.o cfe_mem.o @part_specific_obj@ ${GENOBJS} ${GENOBJS2} -CYGMONOBJS = open.o close.o cygmon.o @part_specific_obj@ ${GENOBJS} +DVEOBJS = open.o close.o dvemon.o read.o write.o @part_specific_obj@ ${GENOBJS} +JMR3904OBJS = open.o close.o jmr3904-io.o read.o write.o \ + @part_specific_obj@ ${GENOBJS} # Nullmon cannot support read and write, but the test cases pull them in via libs NULLMONOBJS = nullmon.o @part_specific_obj@ ${GENOBJS} @@ -132,14 +129,6 @@ libjmr3904.a: $(JMR3904OBJS) ${AR} ${ARFLAGS} $@ $(JMR3904OBJS) ${RANLIB} $@ -libcygmon.a: $(CYGMONOBJS) - ${AR} ${ARFLAGS} $@ $(CYGMONOBJS) - ${RANLIB} $@ - -libcfe.a: $(CFEOBJS) - ${AR} ${ARFLAGS} $@ $(CFEOBJS) - ${RANLIB} $@ - # nullmon.a , This is what you want if you want crt0 but NO mon services # Supports GDB sim testing, board bringups, ICE operation. libnullmon.a: $(NULLMONOBJS) @@ -152,7 +141,7 @@ libnullmon.a: $(NULLMONOBJS) # in the comand line for ld, and all the symbols will get fully # resolved. -test: $(OBJS) ${BSP} pmon-test idt-test cfe-test +test: $(OBJS) ${BSP} pmon-test idt-test @echo Done... dtor.o: $(srcdir)/dtor.C @@ -181,16 +170,6 @@ idt-test.dis: idt-test.x $(OBJDUMP) -d idt-test.x > $@ idt-test: idt-test.srec idt-test.dis -cfe-test.x: test.o ${CRT0} Makefile libcfe.a - ${CC} $(CFLAGS_FOR_TARGET) -L${srcdir} -L${objdir} \ - test.o -o $@ $(NEWLIB_LDFLAGS) -Wl,-Tcfe.ld -cfe-test.srec: cfe-test.x - $(OBJCOPY) -O srec cfe-test.x $@ -cfe-test.dis: cfe-test.x - @rm -fr cfe-test.dis - $(OBJDUMP) -d cfe-test.x > $@ -cfe-test: cfe-test.srec cfe-test.dis - doc: clean mostlyclean: @@ -201,11 +180,17 @@ distclean maintainer-clean realclean: clean .PHONY: install info install-info clean-info install: - @for file in $(CRT0) $(PCRT0) $(BSP); do \ - $(INSTALL_DATA) $${file} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ + if test "x$(CRT0)" != x ; then \ + $(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) ; \ + fi + if test "x$(PCRT0)" != x ; then \ + $(INSTALL_PROGRAM) $(PCRT0) $(tooldir)/lib${MULTISUBDIR}/$(PCRT0) ; \ + fi + @for bsp in ${BSP}; do\ + $(INSTALL_PROGRAM) $${bsp} $(tooldir)/lib${MULTISUBDIR}; \ done @for script in ${SCRIPTS}; do\ - $(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ + $(INSTALL_DATA) ${srcdir}/$${script}.ld $(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ done info: @@ -218,8 +203,6 @@ test.o: ${srcdir}/test.c crt0.o: ${srcdir}/crt0.S pcrt0.o: ${srcdir}/crt0.S $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) -DGCRT0 ${srcdir}/crt0.S -o ${PCRT0} -crt0_cfe.o: ${srcdir}/crt0_cfe.S -crt0_cygmon.o: ${srcdir}/crt0_cygmon.S idtmon.o: ${srcdir}/idtmon.S pmon.o: ${srcdir}/pmon.S $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) $(PART_SPECIFIC_DEFINES) ${srcdir}/pmon.S -o pmon.o @@ -230,12 +213,6 @@ vr5xxx.o: ${srcdir}/vr5xxx.S lsipmon.o: $(srcdir)/lsipmon.S $(srcdir)/pmon.S jmr3904-io.o: ${srcdir}/jmr3904-io.c $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) ${srcdir}/jmr3904-io.c -o $@ -cfe.o: ${srcdir}/cfe.c ${srcdir}/cfe_api.h - $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) ${srcdir}/cfe.c -o $@ -cfe_api.o: ${srcdir}/cfe_api.c ${srcdir}/cfe_api.h ${srcdir}/cfe_api_int.h - $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) ${srcdir}/cfe_api.c -o $@ -cfe_mem.o: ${srcdir}/cfe_mem.c ${srcdir}/cfe_api.h - $(CC) -c $(CFLAGS_FOR_TARGET) $(CFLAGS) ${srcdir}/cfe_mem.c -o $@ # cma101 can not be compiled mips16, if a mips16 version is needed then # it will have to be built, then this rule can be scrapped, allowing diff --git a/libgloss/mips/array.ld b/libgloss/mips/array.ld index fc4cc8f..4675105 100644 --- a/libgloss/mips/array.ld +++ b/libgloss/mips/array.ld @@ -74,8 +74,6 @@ PROVIDE (__stack = 1M - 8); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -84,25 +82,21 @@ SECTIONS . = 0x80020000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -140,13 +134,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } _gp = ALIGN(16) + 0x8000; .lit8 : { @@ -158,22 +152,18 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } edata = .; _edata = .; _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } end = .; diff --git a/libgloss/mips/cfe.c b/libgloss/mips/cfe.c deleted file mode 100644 index c1d8af5..0000000 --- a/libgloss/mips/cfe.c +++ /dev/null @@ -1,107 +0,0 @@ -/* cfe.c -- I/O code for the MIPS boards running CFE. */ - -/* - * Copyright 2001, 2002, 2003 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - */ - -#include "cfe_api.h" - -void *__libcfe_init (long handle, long a1, long cfe_entrypoint, long a3); -void __libcfe_exit (long status); - -char inbyte (void); -int outbyte (char c); - -/* Echo input characters? */ -int __libcfe_echo_input = 0; - -/* CFE handle used to access console device. */ -static int cfe_conshandle; - - -/* Initialize firmware callbacks. Called from crt0_cfe. Returns desired - stack pointer. */ -void * -__libcfe_init (long handle, long a1, long entrypoint, long a3) -{ - cfe_init (handle, entrypoint); - cfe_conshandle = cfe_getstdhandle (CFE_STDHANDLE_CONSOLE); - - __libcfe_meminit (); - return __libcfe_stack_top (); -} - -/* Exit back to monitor, with the given status code. */ -void -__libcfe_exit (long status) -{ - outbyte ('\r'); - outbyte ('\n'); - cfe_exit (CFE_FLG_WARMSTART, status); -} - -char -inbyte (void) -{ - unsigned char c; - int rv; - - while (cfe_read (cfe_conshandle, &c, 1) != 1) - ; - if (c == '\r') - c = '\n'; - if (__libcfe_echo_input) - outbyte (c); - return c; -} - -int -outbyte (char c) -{ - int res; - - do - { - res = cfe_write (cfe_conshandle, &c, 1); - } - while (res == 0); - if (c == '\n') - outbyte ('\r'); - return 0; -} - -/* This is the MIPS cache flush function call. No defines are provided - by libgloss for 'cache', and CFE doesn't let you flush ranges, so - we just flush all I & D for every call. */ -int -_flush_cache (char *addr, int nbytes, int cache) -{ - cfe_flushcache (0); - return 0; -} diff --git a/libgloss/mips/cfe.ld b/libgloss/mips/cfe.ld deleted file mode 100644 index 58e8014..0000000 --- a/libgloss/mips/cfe.ld +++ /dev/null @@ -1,173 +0,0 @@ -/* The following TEXT start address leaves space for the monitor - workspace. */ - -ENTRY(_start) -STARTUP(crt0_cfe.o) -OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") -GROUP(-lc -lcfe -lgcc) -SEARCH_DIR(.) -__DYNAMIC = 0; - -/* - * Allocate the stack to be at the top of memory, since the stack - * grows down - */ -PROVIDE (__stack = 0); -/* PROVIDE (__global = 0); */ - -/* - * Initalize some symbols to be zero so we can reference them in the - * crt0 without core dumping. These functions are all optional, but - * we do this so we can have our crt0 always use them if they exist. - * This is so BSPs work better when using the crt0 installed with gcc. - * We have to initalize them twice, so we multiple object file - * formats, as some prepend an underscore. - */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); -PROVIDE (hardware_init_hook = 0); -PROVIDE (software_init_hook = 0); - -SECTIONS -{ - . = 0x80020000; - .text : { - _ftext = . ; - PROVIDE (eprol = .); - *(.text) - *(.text.*) - *(.gnu.linkonce.t.*) - *(.mips16.fn.*) - *(.mips16.call.*) - } - .init : { - KEEP (*(.init)) - } - .fini : { - KEEP (*(.fini)) - } - .rel.sdata : { - PROVIDE (__runtime_reloc_start = .); - *(.rel.sdata) - PROVIDE (__runtime_reloc_stop = .); - } - PROVIDE (etext = .); - _etext = .; - - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - - KEEP (*crtbegin.o(.ctors)) - - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - - KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } - - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } - - . = .; - .rodata : { - *(.rdata) - *(.rodata) - *(.rodata.*) - *(.gnu.linkonce.r.*) - } - _fdata = ALIGN(16); - .data : { - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - } - . = ALIGN(8); - _gp = . + 0x8000; - __global = _gp; - .lit8 : { - *(.lit8) - } - .lit4 : { - *(.lit4) - } - .sdata : { - *(.sdata) - *(.sdata.*) - *(.gnu.linkonce.s.*) - } - . = ALIGN(4); - PROVIDE (edata = .); - _edata = .; - _fbss = .; - .sbss : { - *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) - *(.scommon) - } - .bss : { - _bss_start = . ; - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - } - - . = ALIGN(32); - PROVIDE (end = .); - _end = .; - - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to - the beginning of the section so we begin them at 0. */ - - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } -} diff --git a/libgloss/mips/cfe_api.c b/libgloss/mips/cfe_api.c deleted file mode 100644 index ab5ac90..0000000 --- a/libgloss/mips/cfe_api.c +++ /dev/null @@ -1,534 +0,0 @@ -/* From: CFE Id: cfe_api.c,v 1.16 2002/07/09 23:29:11 cgd Exp $ */ - -/* - * Copyright 2000, 2001, 2002 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* ********************************************************************* - * - * Broadcom Common Firmware Environment (CFE) - * - * Device Function stubs File: cfe_api.c - * - * This module contains device function stubs (small routines to - * call the standard "iocb" interface entry point to CFE). - * There should be one routine here per iocb function call. - * - * Authors: Mitch Lichtenberg, Chris Demetriou - * - ********************************************************************* */ - -#include "cfe_api.h" -#include "cfe_api_int.h" - -/* Cast from a native pointer to a cfe_xptr_t and back. */ -#define XPTR_FROM_NATIVE(n) ((cfe_xptr_t) (intptr_t) (n)) -#define NATIVE_FROM_XPTR(x) ((void *) (intptr_t) (x)) - -#ifdef CFE_API_IMPL_NAMESPACE -#define cfe_iocb_dispatch(a) __cfe_iocb_dispatch(a) -#endif -int cfe_iocb_dispatch(cfe_xiocb_t *xiocb); - -#if defined(CFE_API_common) || defined(CFE_API_ALL) -/* - * Declare the dispatch function with args of "intptr_t". - * This makes sure whatever model we're compiling in - * puts the pointers in a single register. For example, - * combining -mlong64 and -mips1 or -mips2 would lead to - * trouble, since the handle and IOCB pointer will be - * passed in two registers each, and CFE expects one. - */ - -static int (*cfe_dispfunc)(intptr_t handle, intptr_t xiocb) = 0; -static cfe_xuint_t cfe_handle = 0; - -int -cfe_init(cfe_xuint_t handle, cfe_xuint_t ept) -{ - cfe_dispfunc = NATIVE_FROM_XPTR(ept); - cfe_handle = handle; - return 0; -} - -int -cfe_iocb_dispatch(cfe_xiocb_t *xiocb) -{ - if (!cfe_dispfunc) return -1; - return (*cfe_dispfunc)((intptr_t)cfe_handle, (intptr_t)xiocb); -} -#endif /* CFE_API_common || CFE_API_ALL */ - -#if defined(CFE_API_close) || defined(CFE_API_ALL) -int -cfe_close(int handle) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_CLOSE; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = handle; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = 0; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; - -} -#endif /* CFE_API_close || CFE_API_ALL */ - -#if defined(CFE_API_cpu_start) || defined(CFE_API_ALL) -int -cfe_cpu_start(int cpu, void (*fn)(void), long sp, long gp, long a1) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_CPUCTL; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_cpuctl_t); - xiocb.plist.xiocb_cpuctl.cpu_number = cpu; - xiocb.plist.xiocb_cpuctl.cpu_command = CFE_CPU_CMD_START; - xiocb.plist.xiocb_cpuctl.gp_val = gp; - xiocb.plist.xiocb_cpuctl.sp_val = sp; - xiocb.plist.xiocb_cpuctl.a1_val = a1; - xiocb.plist.xiocb_cpuctl.start_addr = (long)fn; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_cpu_start || CFE_API_ALL */ - -#if defined(CFE_API_cpu_stop) || defined(CFE_API_ALL) -int -cfe_cpu_stop(int cpu) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_CPUCTL; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_cpuctl_t); - xiocb.plist.xiocb_cpuctl.cpu_number = cpu; - xiocb.plist.xiocb_cpuctl.cpu_command = CFE_CPU_CMD_STOP; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_cpu_stop || CFE_API_ALL */ - -#if defined(CFE_API_enumenv) || defined(CFE_API_ALL) -int -cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_ENV_SET; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_envbuf_t); - xiocb.plist.xiocb_envbuf.enum_idx = idx; - xiocb.plist.xiocb_envbuf.name_ptr = XPTR_FROM_NATIVE(name); - xiocb.plist.xiocb_envbuf.name_length = namelen; - xiocb.plist.xiocb_envbuf.val_ptr = XPTR_FROM_NATIVE(val); - xiocb.plist.xiocb_envbuf.val_length = vallen; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_enumenv || CFE_API_ALL */ - -#if defined(CFE_API_enummem) || defined(CFE_API_ALL) -int -cfe_enummem(int idx, int flags, cfe_xuint_t *start, cfe_xuint_t *length, - cfe_xuint_t *type) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_MEMENUM; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = flags; - xiocb.xiocb_psize = sizeof(xiocb_meminfo_t); - xiocb.plist.xiocb_meminfo.mi_idx = idx; - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - - *start = xiocb.plist.xiocb_meminfo.mi_addr; - *length = xiocb.plist.xiocb_meminfo.mi_size; - *type = xiocb.plist.xiocb_meminfo.mi_type; - - return 0; -} -#endif /* CFE_API_enummem || CFE_API_ALL */ - -#if defined(CFE_API_exit) || defined(CFE_API_ALL) -int -cfe_exit(int warm, int status) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_RESTART; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = warm ? CFE_FLG_WARMSTART : 0; - xiocb.xiocb_psize = sizeof(xiocb_exitstat_t); - xiocb.plist.xiocb_exitstat.status = status; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_exit || CFE_API_ALL */ - -#if defined(CFE_API_flushcache) || defined(CFE_API_ALL) -int -cfe_flushcache(int flg) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_FLUSHCACHE; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = flg; - xiocb.xiocb_psize = 0; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_flushcache || CFE_API_ALL */ - -#if defined(CFE_API_getdevinfo) || defined(CFE_API_ALL) -int -cfe_getdevinfo(char *name) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_GETINFO; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_buffer_t); - xiocb.plist.xiocb_buffer.buf_offset = 0; - xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); - xiocb.plist.xiocb_buffer.buf_length = cfe_strlen(name); - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - return xiocb.plist.xiocb_buffer.buf_devflags; -} -#endif /* CFE_API_getdevinfo || CFE_API_ALL */ - -#if defined(CFE_API_getenv) || defined(CFE_API_ALL) -int -cfe_getenv(char *name, char *dest, int destlen) -{ - cfe_xiocb_t xiocb; - - *dest = 0; - - xiocb.xiocb_fcode = CFE_CMD_ENV_GET; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_envbuf_t); - xiocb.plist.xiocb_envbuf.enum_idx = 0; - xiocb.plist.xiocb_envbuf.name_ptr = XPTR_FROM_NATIVE(name); - xiocb.plist.xiocb_envbuf.name_length = cfe_strlen(name); - xiocb.plist.xiocb_envbuf.val_ptr = XPTR_FROM_NATIVE(dest); - xiocb.plist.xiocb_envbuf.val_length = destlen; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_getenv || CFE_API_ALL */ - -#if defined(CFE_API_getfwinfo) || defined(CFE_API_ALL) -int -cfe_getfwinfo(cfe_fwinfo_t *info) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_GETINFO; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_fwinfo_t); - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - - info->fwi_version = xiocb.plist.xiocb_fwinfo.fwi_version; - info->fwi_totalmem = xiocb.plist.xiocb_fwinfo.fwi_totalmem; - info->fwi_flags = xiocb.plist.xiocb_fwinfo.fwi_flags; - info->fwi_boardid = xiocb.plist.xiocb_fwinfo.fwi_boardid; - info->fwi_bootarea_va = xiocb.plist.xiocb_fwinfo.fwi_bootarea_va; - info->fwi_bootarea_pa = xiocb.plist.xiocb_fwinfo.fwi_bootarea_pa; - info->fwi_bootarea_size = xiocb.plist.xiocb_fwinfo.fwi_bootarea_size; -#if 0 - info->fwi_reserved1 = xiocb.plist.xiocb_fwinfo.fwi_reserved1; - info->fwi_reserved2 = xiocb.plist.xiocb_fwinfo.fwi_reserved2; - info->fwi_reserved3 = xiocb.plist.xiocb_fwinfo.fwi_reserved3; -#endif - - return 0; -} -#endif /* CFE_API_getfwinfo || CFE_API_ALL */ - -#if defined(CFE_API_getstdhandle) || defined(CFE_API_ALL) -int -cfe_getstdhandle(int flg) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_GETHANDLE; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = flg; - xiocb.xiocb_psize = 0; - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - return xiocb.xiocb_handle; - -} -#endif /* CFE_API_getstdhandle || CFE_API_ALL */ - -#if defined(CFE_API_getticks) || defined(CFE_API_ALL) -int64_t -#ifdef CFE_API_IMPL_NAMESPACE -__cfe_getticks(void) -#else -cfe_getticks(void) -#endif -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_FW_GETTIME; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_time_t); - xiocb.plist.xiocb_time.ticks = 0; - - cfe_iocb_dispatch(&xiocb); - - return xiocb.plist.xiocb_time.ticks; - -} -#endif /* CFE_API_getticks || CFE_API_ALL */ - -#if defined(CFE_API_inpstat) || defined(CFE_API_ALL) -int -cfe_inpstat(int handle) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_INPSTAT; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = handle; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_inpstat_t); - xiocb.plist.xiocb_inpstat.inp_status = 0; - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - return xiocb.plist.xiocb_inpstat.inp_status; - -} -#endif /* CFE_API_inpstat || CFE_API_ALL */ - -#if defined(CFE_API_ioctl) || defined(CFE_API_ALL) -int -cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, int length, - int *retlen, cfe_xuint_t offset) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_IOCTL; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = handle; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_buffer_t); - xiocb.plist.xiocb_buffer.buf_offset = offset; - xiocb.plist.xiocb_buffer.buf_ioctlcmd = ioctlnum; - xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); - xiocb.plist.xiocb_buffer.buf_length = length; - - cfe_iocb_dispatch(&xiocb); - - if (retlen) - *retlen = xiocb.plist.xiocb_buffer.buf_retlen; - return xiocb.xiocb_status; -} -#endif /* CFE_API_ioctl || CFE_API_ALL */ - -#if defined(CFE_API_open) || defined(CFE_API_ALL) -int -cfe_open(char *name) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_OPEN; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_buffer_t); - xiocb.plist.xiocb_buffer.buf_offset = 0; - xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); - xiocb.plist.xiocb_buffer.buf_length = cfe_strlen(name); - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - return xiocb.xiocb_handle; -} -#endif /* CFE_API_open || CFE_API_ALL */ - -#if defined(CFE_API_read) || defined(CFE_API_ALL) -int -cfe_read(int handle, unsigned char *buffer, int length) -{ - return cfe_readblk(handle, 0, buffer, length); -} -#endif /* CFE_API_read || CFE_API_ALL */ - -#if defined(CFE_API_readblk) || defined(CFE_API_ALL) -int -cfe_readblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_READ; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = handle; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_buffer_t); - xiocb.plist.xiocb_buffer.buf_offset = offset; - xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); - xiocb.plist.xiocb_buffer.buf_length = length; - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - return xiocb.plist.xiocb_buffer.buf_retlen; -} -#endif /* CFE_API_readblk || CFE_API_ALL */ - -#if defined(CFE_API_setenv) || defined(CFE_API_ALL) -int -cfe_setenv(char *name, char *val) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_ENV_SET; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = 0; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_envbuf_t); - xiocb.plist.xiocb_envbuf.enum_idx = 0; - xiocb.plist.xiocb_envbuf.name_ptr = XPTR_FROM_NATIVE(name); - xiocb.plist.xiocb_envbuf.name_length = cfe_strlen(name); - xiocb.plist.xiocb_envbuf.val_ptr = XPTR_FROM_NATIVE(val); - xiocb.plist.xiocb_envbuf.val_length = cfe_strlen(val); - - cfe_iocb_dispatch(&xiocb); - - return xiocb.xiocb_status; -} -#endif /* CFE_API_setenv || CFE_API_ALL */ - -#if (defined(CFE_API_strlen) || defined(CFE_API_ALL)) \ - && !defined(CFE_API_STRLEN_CUSTOM) -int -cfe_strlen(char *name) -{ - int count = 0; - - while (*name++) - count++; - - return count; -} -#endif /* CFE_API_strlen || CFE_API_ALL */ - -#if defined(CFE_API_write) || defined(CFE_API_ALL) -int -cfe_write(int handle, unsigned char *buffer, int length) -{ - return cfe_writeblk(handle, 0, buffer, length); -} -#endif /* CFE_API_write || CFE_API_ALL */ - -#if defined(CFE_API_writeblk) || defined(CFE_API_ALL) -int -cfe_writeblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length) -{ - cfe_xiocb_t xiocb; - - xiocb.xiocb_fcode = CFE_CMD_DEV_WRITE; - xiocb.xiocb_status = 0; - xiocb.xiocb_handle = handle; - xiocb.xiocb_flags = 0; - xiocb.xiocb_psize = sizeof(xiocb_buffer_t); - xiocb.plist.xiocb_buffer.buf_offset = offset; - xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); - xiocb.plist.xiocb_buffer.buf_length = length; - - cfe_iocb_dispatch(&xiocb); - - if (xiocb.xiocb_status < 0) - return xiocb.xiocb_status; - return xiocb.plist.xiocb_buffer.buf_retlen; -} -#endif /* CFE_API_writeblk || CFE_API_ALL */ diff --git a/libgloss/mips/cfe_api.h b/libgloss/mips/cfe_api.h deleted file mode 100644 index afe4683..0000000 --- a/libgloss/mips/cfe_api.h +++ /dev/null @@ -1,237 +0,0 @@ -/* From: CFE Id: cfe_api.h,v 1.29 2002/07/09 23:29:11 cgd Exp $ */ - -/* - * Copyright 2000, 2001, 2002 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* ********************************************************************* - * - * Broadcom Common Firmware Environment (CFE) - * - * Device function prototypes File: cfe_api.h - * - * This file contains declarations for doing callbacks to - * cfe from an application. It should be the only header - * needed by the application to use this library - * - * Authors: Mitch Lichtenberg, Chris Demetriou - * - ********************************************************************* */ - -#ifndef CFE_API_H -#define CFE_API_H - -/* - * Apply customizations here for different OSes. These need to: - * * typedef uint64_t, int64_t, intptr_t, uintptr_t. - * * define cfe_strlen() if use of an existing function is desired. - * * define CFE_API_IMPL_NAMESPACE if API functions are to use - * names in the implementation namespace. - * Also, optionally, if the build environment does not do so automatically, - * CFE_API_* can be defined here as desired. - */ -/* Begin customization. */ -#include <sys/types.h> /* for __uint64_t and __int64_t. */ -#define int64_t __int64_t -#define uint64_t __int64_t -#include <_ansi.h> /* for _POINTER_INT. */ -typedef _POINTER_INT intptr_t; -typedef unsigned _POINTER_INT uintptr_t; - -#include <string.h> -#define cfe_strlen(s) strlen(s) - -#define CFE_API_ALL -#define CFE_API_IMPL_NAMESPACE - -/* Return the stack size to be used for the program. Normally 32KB. The - normal memory allocator uses the bottom of the stack as its heap limit, - so if your application uses a lot of stack space define this function - appropriately to keep the heap from growing into the stack. */ -unsigned long __libcfe_stack_size(void) __attribute__((__weak__)); - -/* Return the (max address + 1) to be used by this program. (This address - minus '_end' is used as the heap size, so the address should be in the - same address space segments as _end. The normal memory allocator - queries CFE to determine the available memory. */ -void *__libcfe_mem_limit(void) __attribute__((__weak__)); - -/* If the configuration ability provided by __libcfe_mem_limit() and - __libcfe_stack_size() do not provide enough flexibility for your - application's memory allocation needs, you can replace the normal - low-level allocator by providing the functions listed below and - also the function: - - void *sbrk(ptrdiff_t incr); - - If you provide any of these functions, you should provide all three, - and be sure to link them into your application as a .o file (rather - than a .a). - - __libcfe_meminit() is responsible for initializing the low-level - memory allocator. - - __libcfe_stack_top() returns a pointer to the top (highest address; - the stack grows down from that address) of the stack to be used by - the program. */ -void __libcfe_meminit (void); -void *__libcfe_stack_top (void); - -/* End customization. */ - - -/* ********************************************************************* - * Constants - ********************************************************************* */ - -/* Seal indicating CFE's presence, passed to user program. */ -#define CFE_EPTSEAL 0x43464531 - -#define CFE_MI_RESERVED 0 /* memory is reserved, do not use */ -#define CFE_MI_AVAILABLE 1 /* memory is available */ - -#define CFE_FLG_WARMSTART 0x00000001 -#define CFE_FLG_FULL_ARENA 0x00000001 -#define CFE_FLG_ENV_PERMANENT 0x00000001 - -#define CFE_CPU_CMD_START 1 -#define CFE_CPU_CMD_STOP 0 - -#define CFE_STDHANDLE_CONSOLE 0 - -#define CFE_DEV_NETWORK 1 -#define CFE_DEV_DISK 2 -#define CFE_DEV_FLASH 3 -#define CFE_DEV_SERIAL 4 -#define CFE_DEV_CPU 5 -#define CFE_DEV_NVRAM 6 -#define CFE_DEV_CLOCK 7 -#define CFE_DEV_OTHER 8 -#define CFE_DEV_MASK 0x0F - -#define CFE_CACHE_FLUSH_D 1 -#define CFE_CACHE_INVAL_I 2 -#define CFE_CACHE_INVAL_D 4 -#define CFE_CACHE_INVAL_L2 8 - -#define CFE_FWI_64BIT 0x00000001 -#define CFE_FWI_32BIT 0x00000002 -#define CFE_FWI_RELOC 0x00000004 -#define CFE_FWI_UNCACHED 0x00000008 -#define CFE_FWI_MULTICPU 0x00000010 -#define CFE_FWI_FUNCSIM 0x00000020 -#define CFE_FWI_RTLSIM 0x00000040 - -typedef struct { - int64_t fwi_version; /* major, minor, eco version */ - int64_t fwi_totalmem; /* total installed mem */ - int64_t fwi_flags; /* various flags */ - int64_t fwi_boardid; /* board ID */ - int64_t fwi_bootarea_va; /* VA of boot area */ - int64_t fwi_bootarea_pa; /* PA of boot area */ - int64_t fwi_bootarea_size; /* size of boot area */ -} cfe_fwinfo_t; - - -/* - * cfe_strlen is handled specially: If already defined, it has been - * overridden in this environment with a standard strlen-like function. - */ -#ifdef cfe_strlen -# define CFE_API_STRLEN_CUSTOM -#else -# ifdef CFE_API_IMPL_NAMESPACE -# define cfe_strlen(a) __cfe_strlen(a) -# endif -int cfe_strlen(char *name); -#endif - -/* - * Defines and prototypes for functions which take no arguments. - */ -#ifdef CFE_API_IMPL_NAMESPACE -int64_t __cfe_getticks(void); -#define cfe_getticks() __cfe_getticks() -#else -int64_t cfe_getticks(void); -#endif - -/* - * Defines and prototypes for the rest of the functions. - */ -#ifdef CFE_API_IMPL_NAMESPACE -#define cfe_close(a) __cfe_close(a) -#define cfe_cpu_start(a,b,c,d,e) __cfe_cpu_start(a,b,c,d,e) -#define cfe_cpu_stop(a) __cfe_cpu_stop(a) -#define cfe_enumenv(a,b,d,e,f) __cfe_enumenv(a,b,d,e,f) -#define cfe_enummem(a,b,c,d,e) __cfe_enummem(a,b,c,d,e) -#define cfe_exit(a,b) __cfe_exit(a,b) -#define cfe_flushcache(a) __cfe_cacheflush(a) -#define cfe_getdevinfo(a) __cfe_getdevinfo(a) -#define cfe_getenv(a,b,c) __cfe_getenv(a,b,c) -#define cfe_getfwinfo(a) __cfe_getfwinfo(a) -#define cfe_getstdhandle(a) __cfe_getstdhandle(a) -#define cfe_init(a,b) __cfe_init(a,b) -#define cfe_inpstat(a) __cfe_inpstat(a) -#define cfe_ioctl(a,b,c,d,e,f) __cfe_ioctl(a,b,c,d,e,f) -#define cfe_open(a) __cfe_open(a) -#define cfe_read(a,b,c) __cfe_read(a,b,c) -#define cfe_readblk(a,b,c,d) __cfe_readblk(a,b,c,d) -#define cfe_setenv(a,b) __cfe_setenv(a,b) -#define cfe_write(a,b,c) __cfe_write(a,b,c) -#define cfe_writeblk(a,b,c,d) __cfe_writeblk(a,b,c,d) -#endif /* CFE_API_IMPL_NAMESPACE */ - -int cfe_close(int handle); -int cfe_cpu_start(int cpu, void (*fn)(void), long sp, long gp, long a1); -int cfe_cpu_stop(int cpu); -int cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen); -int cfe_enummem(int idx, int flags, uint64_t *start, uint64_t *length, - uint64_t *type); -int cfe_exit(int warm,int status); -int cfe_flushcache(int flg); -int cfe_getdevinfo(char *name); -int cfe_getenv(char *name, char *dest, int destlen); -int cfe_getfwinfo(cfe_fwinfo_t *info); -int cfe_getstdhandle(int flg); -int cfe_init(uint64_t handle,uint64_t ept); -int cfe_inpstat(int handle); -int cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, - int length, int *retlen, uint64_t offset); -int cfe_open(char *name); -int cfe_read(int handle, unsigned char *buffer, int length); -int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, int length); -int cfe_setenv(char *name, char *val); -int cfe_write(int handle, unsigned char *buffer, int length); -int cfe_writeblk(int handle, int64_t offset, unsigned char *buffer, - int length); - -#endif /* CFE_API_H */ diff --git a/libgloss/mips/cfe_api_int.h b/libgloss/mips/cfe_api_int.h deleted file mode 100644 index 618211a..0000000 --- a/libgloss/mips/cfe_api_int.h +++ /dev/null @@ -1,168 +0,0 @@ -/* From: CFE Id: cfe_api_int.h,v 1.21 2002/07/09 23:29:11 cgd Exp $ */ - -/* - * Copyright 2000, 2001, 2002 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* ********************************************************************* - * - * Broadcom Common Firmware Environment (CFE) - * - * Device function prototypes File: cfe_api_int.h - * - * This header defines all internal types and macros for the - * library. This is stuff that's not exported to an app - * using the library. - * - * Authors: Mitch Lichtenberg, Chris Demetriou - * - ********************************************************************* */ - -#ifndef CFE_API_INT_H -#define CFE_API_INT_H - -/* ********************************************************************* - * Constants - ********************************************************************* */ - -#define CFE_CMD_FW_GETINFO 0 -#define CFE_CMD_FW_RESTART 1 -#define CFE_CMD_FW_BOOT 2 -#define CFE_CMD_FW_CPUCTL 3 -#define CFE_CMD_FW_GETTIME 4 -#define CFE_CMD_FW_MEMENUM 5 -#define CFE_CMD_FW_FLUSHCACHE 6 - -#define CFE_CMD_DEV_GETHANDLE 9 -#define CFE_CMD_DEV_ENUM 10 -#define CFE_CMD_DEV_OPEN 11 -#define CFE_CMD_DEV_INPSTAT 12 -#define CFE_CMD_DEV_READ 13 -#define CFE_CMD_DEV_WRITE 14 -#define CFE_CMD_DEV_IOCTL 15 -#define CFE_CMD_DEV_CLOSE 16 -#define CFE_CMD_DEV_GETINFO 17 - -#define CFE_CMD_ENV_ENUM 20 -#define CFE_CMD_ENV_GET 22 -#define CFE_CMD_ENV_SET 23 -#define CFE_CMD_ENV_DEL 24 - -#define CFE_CMD_MAX 32 - -#define CFE_CMD_VENDOR_USE 0x8000 /* codes above this are for customer use */ - -/* ********************************************************************* - * Structures - ********************************************************************* */ - -typedef uint64_t cfe_xuint_t; -typedef int64_t cfe_xint_t; -typedef int64_t cfe_xptr_t; - -typedef struct xiocb_buffer_s { - cfe_xuint_t buf_offset; /* offset on device (bytes) */ - cfe_xptr_t buf_ptr; /* pointer to a buffer */ - cfe_xuint_t buf_length; /* length of this buffer */ - cfe_xuint_t buf_retlen; /* returned length (for read ops) */ - cfe_xuint_t buf_ioctlcmd; /* IOCTL command (used only for IOCTLs) */ -} xiocb_buffer_t; - -#define buf_devflags buf_ioctlcmd /* returned device info flags */ - -typedef struct xiocb_inpstat_s { - cfe_xuint_t inp_status; /* 1 means input available */ -} xiocb_inpstat_t; - -typedef struct xiocb_envbuf_s { - cfe_xint_t enum_idx; /* 0-based enumeration index */ - cfe_xptr_t name_ptr; /* name string buffer */ - cfe_xint_t name_length; /* size of name buffer */ - cfe_xptr_t val_ptr; /* value string buffer */ - cfe_xint_t val_length; /* size of value string buffer */ -} xiocb_envbuf_t; - -typedef struct xiocb_cpuctl_s { - cfe_xuint_t cpu_number; /* cpu number to control */ - cfe_xuint_t cpu_command; /* command to issue to CPU */ - cfe_xuint_t start_addr; /* CPU start address */ - cfe_xuint_t gp_val; /* starting GP value */ - cfe_xuint_t sp_val; /* starting SP value */ - cfe_xuint_t a1_val; /* starting A1 value */ -} xiocb_cpuctl_t; - -typedef struct xiocb_time_s { - cfe_xint_t ticks; /* current time in ticks */ -} xiocb_time_t; - -typedef struct xiocb_exitstat_s { - cfe_xint_t status; -} xiocb_exitstat_t; - -typedef struct xiocb_meminfo_s { - cfe_xint_t mi_idx; /* 0-based enumeration index */ - cfe_xint_t mi_type; /* type of memory block */ - cfe_xuint_t mi_addr; /* physical start address */ - cfe_xuint_t mi_size; /* block size */ -} xiocb_meminfo_t; - -typedef struct xiocb_fwinfo_s { - cfe_xint_t fwi_version; /* major, minor, eco version */ - cfe_xint_t fwi_totalmem; /* total installed mem */ - cfe_xint_t fwi_flags; /* various flags */ - cfe_xint_t fwi_boardid; /* board ID */ - cfe_xint_t fwi_bootarea_va; /* VA of boot area */ - cfe_xint_t fwi_bootarea_pa; /* PA of boot area */ - cfe_xint_t fwi_bootarea_size; /* size of boot area */ - cfe_xint_t fwi_reserved1; - cfe_xint_t fwi_reserved2; - cfe_xint_t fwi_reserved3; -} xiocb_fwinfo_t; - -typedef struct cfe_xiocb_s { - cfe_xuint_t xiocb_fcode; /* IOCB function code */ - cfe_xint_t xiocb_status; /* return status */ - cfe_xint_t xiocb_handle; /* file/device handle */ - cfe_xuint_t xiocb_flags; /* flags for this IOCB */ - cfe_xuint_t xiocb_psize; /* size of parameter list */ - union { - xiocb_buffer_t xiocb_buffer; /* buffer parameters */ - xiocb_inpstat_t xiocb_inpstat; /* input status parameters */ - xiocb_envbuf_t xiocb_envbuf; /* environment function parameters */ - xiocb_cpuctl_t xiocb_cpuctl; /* CPU control parameters */ - xiocb_time_t xiocb_time; /* timer parameters */ - xiocb_meminfo_t xiocb_meminfo; /* memory arena info parameters */ - xiocb_fwinfo_t xiocb_fwinfo; /* firmware information */ - xiocb_exitstat_t xiocb_exitstat; /* Exit Status */ - } plist; -} cfe_xiocb_t; - -#endif /* CFE_API_INT_H */ diff --git a/libgloss/mips/cfe_error.h b/libgloss/mips/cfe_error.h deleted file mode 100644 index a12af4b..0000000 --- a/libgloss/mips/cfe_error.h +++ /dev/null @@ -1,101 +0,0 @@ -/* From: CFE Id: cfe_error.h,v 1.2 2002/07/09 19:37:52 cgd Exp $ */ - -/* - * Copyright 2000, 2001, 2002 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* ********************************************************************* - * - * Broadcom Common Firmware Environment (CFE) - * - * Error codes File: cfe_error.h - * - * CFE's global error code list is here. - * - * Author: Mitch Lichtenberg - * - ********************************************************************* */ - - -#define CFE_OK 0 -#define CFE_ERR -1 /* generic error */ -#define CFE_ERR_INV_COMMAND -2 -#define CFE_ERR_EOF -3 -#define CFE_ERR_IOERR -4 -#define CFE_ERR_NOMEM -5 -#define CFE_ERR_DEVNOTFOUND -6 -#define CFE_ERR_DEVOPEN -7 -#define CFE_ERR_INV_PARAM -8 -#define CFE_ERR_ENVNOTFOUND -9 -#define CFE_ERR_ENVREADONLY -10 - -#define CFE_ERR_NOTELF -11 -#define CFE_ERR_NOT32BIT -12 -#define CFE_ERR_WRONGENDIAN -13 -#define CFE_ERR_BADELFVERS -14 -#define CFE_ERR_NOTMIPS -15 -#define CFE_ERR_BADELFFMT -16 -#define CFE_ERR_BADADDR -17 - -#define CFE_ERR_FILENOTFOUND -18 -#define CFE_ERR_UNSUPPORTED -19 - -#define CFE_ERR_HOSTUNKNOWN -20 - -#define CFE_ERR_TIMEOUT -21 - -#define CFE_ERR_PROTOCOLERR -22 - -#define CFE_ERR_NETDOWN -23 -#define CFE_ERR_NONAMESERVER -24 - -#define CFE_ERR_NOHANDLES -25 -#define CFE_ERR_ALREADYBOUND -26 - -#define CFE_ERR_CANNOTSET -27 -#define CFE_ERR_NOMORE -28 -#define CFE_ERR_BADFILESYS -29 -#define CFE_ERR_FSNOTAVAIL -30 - -#define CFE_ERR_INVBOOTBLOCK -31 -#define CFE_ERR_WRONGDEVTYPE -32 -#define CFE_ERR_BBCHECKSUM -33 -#define CFE_ERR_BOOTPROGCHKSUM -34 - -#define CFE_ERR_LDRNOTAVAIL -35 - -#define CFE_ERR_NOTREADY -36 - -#define CFE_ERR_GETMEM -37 -#define CFE_ERR_SETMEM -38 - -#define CFE_ERR_NOTCONN -39 -#define CFE_ERR_ADDRINUSE -40 diff --git a/libgloss/mips/cfe_mem.c b/libgloss/mips/cfe_mem.c deleted file mode 100644 index 87caabf..0000000 --- a/libgloss/mips/cfe_mem.c +++ /dev/null @@ -1,130 +0,0 @@ -/* cfe_mem.c -- Replaceable memory management hooks for MIPS boards - running CFE. */ - -/* - * Copyright 2003 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - */ - -#include "cfe_api.h" - -/* Structure filled in by get_mem_info. Only the size field is - actually used (by sbrk), so the others aren't even filled in. - Note that 'size' is the __size__ of the heap starting at _end! */ -struct s_mem { - unsigned int size; - unsigned int icsize; - unsigned int dcsize; -}; - -void *get_mem_info (struct s_mem *); - -extern char _end[]; - -/* Address immediately after available memory. */ -static unsigned long memtop; - -/* Program stack size. */ -static unsigned long stack_size; - -void -__libcfe_meminit (void) -{ - /* If the user has provided a memory-limit function, use it to - determine the end of usable memory. */ - if (&__libcfe_mem_limit != NULL) - memtop = __libcfe_mem_limit (); - else - { - uint64_t start, length, type; - int i, rv; - long end_segbits, end_pa; - - /* Note that this only works if _end and the program live in kseg0 - or kseg1. Not a problem with the default linker script, but - if you're writing your own, keep it in mind. For more complex - memory allocation needs, you're encouraged to copy this file - and syscalls.c (for sbrk()), and reimplement as appropriate. */ - end_segbits = (long)_end & ~ 0x1fffffffL; - end_pa = (long)_end & 0x1fffffffL; - - for (i = 0; ; i++) - { - rv = cfe_enummem(i, 0, &start, &length, &type); - if (rv < 0) - { - /* Did not find an available entry containing _end. - Assume a minimal amount of memory (1MB). */ - memtop = _end + (1 * 1024 * 1024); - break; - } - - /* If not available, try the next. */ - if (type != CFE_MI_AVAILABLE) - continue; - - /* If end_pa is between start and (start + length) then we have - a winner. */ - if (end_pa >= start && end_pa < (start + length)) - { - memtop = (start + length) | end_segbits; - break; - } - } - } - - /* If the user has provided a memory-limit function, use it to - determine the end of usable memory. */ - if (&__libcfe_stack_size != NULL) - stack_size = __libcfe_stack_size (); - else - stack_size = (32 * 1024); /* Default = 32KB. */ - - /* Chop the top of memory to a 32-byte aligned location, and - round the stack size up to a 32-byte multiple. */ - memtop = memtop & ~(unsigned long)31; - stack_size = (stack_size + 31) & ~(unsigned long)31; -} - -void * -__libcfe_stack_top (void) -{ - /* Grow down from the top of available memory. Obviously, if - code writes above this limit, problems could result! */ - return (void *) memtop; -} - -/* For compatibility, get_mem_info returns the top of memory - (i.e., the stack address). Nothing actually uses that, - though. */ -void * -get_mem_info (struct s_mem *meminfo) -{ - meminfo->size = (char *)(memtop - stack_size) - _end; - return (void *) memtop; -} diff --git a/libgloss/mips/cma101.c b/libgloss/mips/cma101.c index e8f3818..83fa4d5 100644 --- a/libgloss/mips/cma101.c +++ b/libgloss/mips/cma101.c @@ -1,7 +1,7 @@ /* * cma101.c -- lo-level support for Cogent CMA101 development board. * - * Copyright (c) 1996, 2001, 2002 Cygnus Support + * Copyright (c) 1996, 2001 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided @@ -179,9 +179,6 @@ extern unsigned int __buserr_count(void); extern void __default_buserr_handler(void); extern void __restore_buserr_handler(void); -/* Allow the user to provide his/her own defaults. */ -unsigned int __sizemem_default; - unsigned int __sizemem () { @@ -189,15 +186,10 @@ __sizemem () volatile unsigned int *probe; unsigned int baseorig; unsigned int sr; - extern char end[]; + extern void *end; char *endptr = (char *)&end; int extra; - /* If the linker script provided a value for the memory size (or the user - overrode it in a debugger), use that. */ - if (__sizemem_default) - return __sizemem_default; - /* If we are running in kernel segment 0 (possibly cached), try sizing memory in kernel segment 1 (uncached) to avoid some problems with monitors. */ if (endptr >= K0BASE_ADDR && endptr < K1BASE_ADDR) diff --git a/libgloss/mips/configure b/libgloss/mips/configure index c313805..68e55a8 100755 --- a/libgloss/mips/configure +++ b/libgloss/mips/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -583,7 +594,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 +echo "configure:598: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -604,7 +615,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 +echo "configure:619: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -622,7 +633,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 +echo "configure:637: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -676,7 +687,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 +echo "configure:691: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -740,7 +751,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:744: checking for $ac_word" >&5 +echo "configure:755: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -770,7 +781,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 +echo "configure:785: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -819,7 +830,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:823: checking whether we are using GNU C" >&5 +echo "configure:834: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -828,7 +839,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -843,7 +854,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -879,7 +890,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:883: checking for $ac_word" >&5 +echo "configure:894: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -917,16 +928,6 @@ case "${target}" in script_list="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java" bsp_list="libdve.a libidt.a libjmr3904.a" ;; - mipsisa32-*-* | mipsisa32el-*-* | \ - mipsisa32r2-*-* | mipsisa32r2el-*-* | \ - mipsisa64-*-*) - crt0="crt0_cfe.o crt0_cygmon.o crt0.o" - pcrt0="pcrt0.o" - part_specific_obj= - part_specific_defines= - script_list="idt32 idt64 cfe" - bsp_list="libcygmon.a libidt.a libcfe.a" - ;; mips*-lsi*-*) part_specific_obj=entry.o part_specific_defines= @@ -939,17 +940,17 @@ case "${target}" in script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon" bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a" ;; - mips64vr-*-* | mips64vrel-*-*) - part_specific_obj="vr5xxx.o cma101.o" - script_list="ddb ddb-kseg0 nullmon" - bsp_list="libpmon.a libnullmon.a" - ;; + mipsisa32*-*-*) + part_specific_obj= + part_specific_defines= + script_list="idt32 idt64" + bsp_list="libidt.a" + ;; *) - crt0="crt0_cfe.o crt0.o" part_specific_obj="vr4300.o cma101.o" part_specific_defines= - script_list="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon" - bsp_list="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a" + script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon" + bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a" ;; esac @@ -1035,34 +1036,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\_ACEOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -_ACEOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs # Without the "./", some shells look in PATH for config.status. diff --git a/libgloss/mips/configure.in b/libgloss/mips/configure.in index cfc0d24..5660104 100644 --- a/libgloss/mips/configure.in +++ b/libgloss/mips/configure.in @@ -1,4 +1,4 @@ -# Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2002 Cygnus Support +# Copyright (c) 1995, 1996, 1997, 1998, 1999 Cygnus Support # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided @@ -92,16 +92,6 @@ case "${target}" in script_list="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java" bsp_list="libdve.a libidt.a libjmr3904.a" ;; - mipsisa32-*-* | mipsisa32el-*-* | \ - mipsisa32r2-*-* | mipsisa32r2el-*-* | \ - mipsisa64-*-*) - crt0="crt0_cfe.o crt0_cygmon.o crt0.o" - pcrt0="pcrt0.o" - part_specific_obj= - part_specific_defines= - script_list="idt32 idt64 cfe" - bsp_list="libcygmon.a libidt.a libcfe.a" - ;; mips*-lsi*-*) part_specific_obj=entry.o part_specific_defines= @@ -114,17 +104,17 @@ case "${target}" in script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon" bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a" ;; - mips64vr-*-* | mips64vrel-*-*) - part_specific_obj="vr5xxx.o cma101.o" - script_list="ddb ddb-kseg0 nullmon" - bsp_list="libpmon.a libnullmon.a" - ;; + mipsisa32*-*-*) + part_specific_obj= + part_specific_defines= + script_list="idt32 idt64" + bsp_list="libidt.a" + ;; *) - crt0="crt0_cfe.o crt0.o" part_specific_obj="vr4300.o cma101.o" part_specific_defines= - script_list="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon" - bsp_list="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a" + script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon" + bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a" ;; esac diff --git a/libgloss/mips/crt0.S b/libgloss/mips/crt0.S index 8810afa..8bd46eb 100644 --- a/libgloss/mips/crt0.S +++ b/libgloss/mips/crt0.S @@ -37,12 +37,13 @@ # else # define LA(t,x) la t,x-PICBASE ; addu t,s0,t # endif -#else /* __mips_embedded_pic */ +#else /* __mips_embedded_pic */ # define LA(t,x) la t,x -#endif /* __mips_embedded_pic */ +#endif /* __mips_embedded_pic */ .comm __memsize, 12 .comm __lstack, STARTUP_STACK_SIZE + .comm __stackbase,4 .text .align 2 @@ -53,19 +54,17 @@ */ nop - .globl hardware_hazard_hook .text .globl _start .ent _start _start: .set noreorder #ifdef __mips_embedded_pic -#define PICBASE start_PICBASE PICBASE = .+8 bal PICBASE nop move s0,$31 #endif -#if !defined(__mips64) || (__mips_fpr==32) +#if (__mips < 3) || (__mips_fpr==32) #define STATUS_MASK (SR_CU1|SR_PE) #else # For mips3 or mips4, turn on 64-bit addressing and additional float regs @@ -76,14 +75,6 @@ _start: mtc0 zero, C0_CAUSE nop - /* Avoid hazard from FPU enable and other SR changes. */ - LA (t0, hardware_hazard_hook) - beq t0,zero,1f - nop - jal t0 - nop -1: - /* Check for FPU presence. Don't check if we know that soft_float is being used. (This also avoids illegal instruction exceptions.) */ @@ -106,16 +97,10 @@ _start: li v0, (STATUS_MASK-(STATUS_MASK & SR_CU1)) mtc0 v0, C0_SR nop - /* Avoid hazard from FPU disable. */ - LA (t0, hardware_hazard_hook) - beq t0,zero,2f - nop - jal t0 - nop 2: -/* Fix high bits, if any, of the PC so that exception handling +/* Fix high bits, if any, of the PC so that exception handling doesn't get confused. */ LA (v0, 3f) jr v0 @@ -153,16 +138,22 @@ zerobss: /* NOTE: a0[0] contains the amount of memory available, and not the last memory address. */ - la a0, __memsize lw t0,0(a0) # last address of memory available la t1,K0BASE # cached kernel memory addu t0,t0,t1 # get the end of memory address - /* Allocate 32 bytes for the register parameters. Allocate 16 - bytes for a null argv and envp. Round the result up to 64 - bytes to preserve alignment. */ - subu t0,t0,64 + /* We must subtract 24 bytes for the 3 8 byte arguments to main, in + case main wants to write them back to the stack. The caller is + supposed to allocate stack space for parameters in registers in + the old MIPS ABIs. We must do this even though we aren't passing + arguments, because main might be declared to have them. + + Some ports need a larger alignment for the stack, so we subtract + 32, which satisifes the stack for the arguments and keeps the + stack pointer better aligned. */ + subu t0,t0,32 # and generate a starting stack-pointer 4: move sp,t0 # set stack pointer + sw sp,__stackbase # keep this for future ref .end zerobss /* @@ -202,33 +193,18 @@ init: nop #endif - jal _init # run global constructors nop - addiu a1,sp,32 # argv = sp + 32 - addiu a2,sp,40 # envp = sp + 40 -#if __mips64 - sd zero,(a1) # argv[argc] = 0 - sd zero,(a2) # envp[0] = 0 -#else - sw zero,(a1) - sw zero,(a2) -#endif - jal main # call the program start function move a0,zero # set argc to 0 + jal main # call the program start function + nop # fall through to the "exit" routine jal exit # call libc exit to run the G++ # destructors move a0,v0 # pass through the exit code .end init - - -/* Assume the PICBASE set up above is no longer valid below here. */ -#ifdef __mips_embedded_pic -#undef PICBASE -#endif /* * _exit -- Exit from the application. Normally we cause a user trap @@ -238,41 +214,19 @@ init: * executables that contain a complete world to be linked with * just the crt0.o object. */ - .globl hardware_exit_hook .text .globl _exit .ent _exit _exit: 7: -#ifdef __mips_embedded_pic - /* Need to reinit PICBASE, since we might be called via exit() - rather than via a return path which would restore old s0. */ -#define PICBASE exit_PICBASE - PICBASE = .+8 - bal PICBASE - nop - move s0,$31 -#endif #ifdef GCRT0 - LA (t0, _mcleanup) - jal t0 + jal _mcleanup nop #endif - LA (t0, hardware_exit_hook) - beq t0,zero,1f - nop - jal t0 - nop -1: - # break instruction can cope with 0xfffff, but GAS limits the range: break 1023 + nop b 7b # but loop back just in-case nop .end _exit - -/* Assume the PICBASE set up above is no longer valid below here. */ -#ifdef __mips_embedded_pic -#undef PICBASE -#endif /* EOF crt0.S */ diff --git a/libgloss/mips/crt0_cfe.S b/libgloss/mips/crt0_cfe.S deleted file mode 100644 index 9e920e2..0000000 --- a/libgloss/mips/crt0_cfe.S +++ /dev/null @@ -1,263 +0,0 @@ -/* - * crt0_cfe.S -- Runtime startup for MIPS targets running CFE. - * - * Copyright 2003 - * Broadcom Corporation. All rights reserved. - * - * This software is furnished under license and may be used and copied only - * in accordance with the following terms and conditions. Subject to these - * conditions, you may download, copy, install, use, modify and distribute - * modified or unmodified copies of this software in source and/or binary - * form. No title or ownership is transferred hereby. - * - * 1) Any source code used, modified or distributed must reproduce and - * retain this copyright notice and list of conditions as they appear in - * the source file. - * - * 2) No right is granted to use any trade name, trademark, or logo of - * Broadcom Corporation. The "Broadcom Corporation" name may not be - * used to endorse or promote products derived from this software - * without the prior written permission of Broadcom Corporation. - * - * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR - * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE - * FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE - * LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - * OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Derived from crt0_cygmon.S: - * - * Copyright (c) 1995, 1996, 1997, 2000 Red Hat, Inc. - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -/* - * This file does minimal runtime startup for code running under - * CFE firmware. - * - * It does minimal hardware initialization. In particular - * it sets Status:FR to match the requested floating point - * mode. - * - * It is meant to be linked with the other files provided by libcfe.a, - * and calls routines in those files. - */ - -#ifdef __mips16 -/* This file contains 32 bit assembly code. */ - .set nomips16 -#endif -#ifdef __mips_embedded_pic -# error -membedded-pic is not supported. -#endif - -#include "regs.S" - -/* - * Set up some room for a stack. We just grab a chunk of memory. - */ -#define STARTUP_STACK_SIZE (1 * 1024) - - .comm _lstack, STARTUP_STACK_SIZE - - .text - .align 4 - - /* - * Without the following nop, GDB thinks _start is a data variable. - * This is probably a bug in GDB in handling a symbol that is at the - * start of the .text section. - */ - nop - - - /* - * On entry, the following values have been passed in registers - * by the firmware: - * - * a0: firmware handle - * a1: zero (unused) - * a2: firmware callback entrypoint - * a3: CFE entrypoint seal (unused) - * - * They must be preserved until the CFE entrypoint and handle - * are passed to __libcfe_init(). - */ - - .globl _start - .ent _start -_start: - .set noreorder - /* Set the global data pointer, defined in the linker script. */ - la gp, _gp - -#ifndef __mips_soft_float - /* If compiled for hard float, set the FPU mode based on the - compilation flags. Note that this assumes that enough code - will run after the mtc0 to clear any hazards. */ - mfc0 t0, C0_SR - or t0, t0, (SR_CU1 | SR_FR) -#if (__mips_fpr == 32) - xor t0, t0, SR_FR /* If 32-bit FP mode, clear FR. */ -#endif - mtc0 t0, C0_SR -#endif - .end _start - - /* - * zero out the bss section. - */ - .globl _zerobss - .ent _zerobss -_zerobss: - /* These variables are defined in the linker script. */ - la v0, _fbss - la v1, _end - -3: - sw zero, 0(v0) - bltu v0, v1, 3b - addiu v0, v0, 4 /* Delay slot. */ - .end _zerobss - - /* - * Setup a small stack so we can run some C code, and do - * the library initialization. (32 bytes are saved for - * the argument registers' stack slots.) - */ - .globl _stackinit - .ent _stackinit -_stackinit: - la t0, _lstack - addiu sp, t0, (STARTUP_STACK_SIZE - 32) - jal __libcfe_init - nop - - /* - * Setup the stack pointer -- - * __libcfe_init() returns the value to be used as the top of - * the program's stack. - * - * We subtract 32 bytes for the 4 argument registers, in case - * main() wants to write them back to the stack. The caller - * allocates stack space for parameters in the old MIPS ABIs. - * We must do this even though we aren't passing arguments, - * because main might be declared to have them.) - * - * We subtract 32 more bytes for the argv/envp setup for the - * call to main(). - */ - subu v0, v0, 64 - move sp, v0 - - .end _stackinit - - /* - * initialize target specific stuff. Only execute these - * functions it they exist. - */ - .globl hardware_init_hook .text - .globl software_init_hook .text - .type _fini,@function - .type _init,@function - .globl atexit .text - .globl exit .text - .globl _crt0init - .ent _crt0init -_crt0init: - la t9, hardware_init_hook # init the hardware if needed - beq t9, zero, 6f - nop - jal t9 - nop -6: - la t9, software_init_hook # init the software if needed - beq t9, zero, 7f - nop - jal t9 - nop -7: - la a0, _fini - jal atexit - nop - -#ifdef GCRT0 - .globl _ftext - .globl _extext - la a0, _ftext - la a1, _etext - jal monstartup - nop -#endif - - jal _init # run global constructors - nop - - addiu a1,sp,32 # argv = sp + 32 - addiu a2,sp,40 # envp = sp + 40 -#if __mips64 - sd zero,(a1) # argv[argc] = 0 - sd zero,(a2) # envp[0] = 0 -#else - sw zero,(a1) - sw zero,(a2) -#endif - - jal main # call the program start function - move a0,zero # set argc to 0; delay slot. - - # fall through to the "exit" routine - jal exit # call libc exit to run the G++ - # destructors - move a0, v0 # pass through the exit code - .end _crt0init - -/* - * _exit -- Exit from the application. This is provided in this file because - * program exit should shut down profiling (if GCRT0 is defined), - * and only this file is compiled with GCRT0 defined. - */ - .globl _exit - .ent _exit -_exit: -7: - move s0, a0 /* Save in case we loop. */ - -#ifdef GCRT0 - jal _mcleanup - nop -#endif - - la t0, hardware_exit_hook - beq t0,zero,1f - nop - jal t0 - nop - -1: - /* Call into the library to do the heavy lifting. */ - jal __libcfe_exit - move a0, s0 /* Delay slot. */ - - b 7b /* Loop back just in case. */ - nop - .end _exit - -/* EOF crt0_cfe.S */ diff --git a/libgloss/mips/crt0_cygmon.S b/libgloss/mips/crt0_cygmon.S deleted file mode 100644 index ae0a9e3..0000000 --- a/libgloss/mips/crt0_cygmon.S +++ /dev/null @@ -1,173 +0,0 @@ -/* - * crt0_cygmon.S -- Minimal startup file for MIPS targets running Cygmon. - * - * Copyright (c) 1995, 1996, 1997, 2000 Red Hat, Inc. - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -/* - * This file contains the minimal startup code necessary. - * This will not do any hardware initialization. It is assumed that we are talking to Cygmon - * and therefore the hardware will be initialized properly. - */ - -#ifdef __mips16 -/* This file contains 32 bit assembly code. */ - .set nomips16 -#endif - -#include "regs.S" - -/* - * Set up some room for a stack. We just grab a chunk of memory. - */ -#define STACK_SIZE 0x4000 -#define GLOBAL_SIZE 0x2000 - -#define STARTUP_STACK_SIZE 0x0100 - - .comm __memsize, 12 - .comm __lstack, STARTUP_STACK_SIZE - .comm __stackbase,4 - - .text - .align 4 - /* - * Without the following nop, GDB thinks _start is a data variable. - * This is probably a bug in GDB in handling a symbol that is at the - * start of the .text section. - */ - nop - - .globl _start - .ent _start -_start: - .set noreorder - la gp, _gp # set the global data pointer, defined in the linker script - .end _start - - /* - * zero out the bss section. - */ - .globl __memsize - .globl get_mem_info .text - .globl zerobss - .ent zerobss -zerobss: - la v0, _fbss # These variables are defined in the linker script - la v1, _end - -3: - sw zero, 0(v0) - bltu v0, v1, 3b - addiu v0, v0, 4 # executed in delay slot - - /* - * Setup a small stack so we can run some C code, - * and get the usable memory size. - */ - la t0, __lstack - addiu sp, t0, STARTUP_STACK_SIZE - la a0, __memsize - jal get_mem_info - nop - - /* - * Setup the stack pointer -- - * get_mem_info returns the top of memory, so just use that In - * addition, we must subtract 24 bytes for the 3 8 byte - * arguments to main, in case main wants to write them back to - * the stack. The caller is supposed to allocate stack space - * for parameters in registers in the old MIPS ABIs. We must - * do this even though we aren't passing arguments, because - * main might be declared to have them. - * Some ports need a larger alignment for the stack, so we - * subtract 32, which satisifes the stack for the arguments and - * keeps the stack pointer better aligned. - */ - subu v0, v0, 32 - move sp, v0 - - sw sp, __stackbase # keep this for future ref - .end zerobss - - /* - * initialize target specific stuff. Only execute these - * functions it they exist. - */ - .globl hardware_init_hook .text - .globl software_init_hook .text - .globl __do_global_dtors .text - .globl atexit .text - .globl exit .text - .globl init - .ent init -init: - la t9, hardware_init_hook # init the hardware if needed - beq t9, zero, 6f - nop - jal t9 - nop -6: - la t9, software_init_hook # init the software if needed - beq t9, zero, 7f - nop - jal t9 - nop -7: - la a0, __do_global_dtors - jal atexit - nop - -#ifdef GCRT0 - .globl _ftext - .globl _extext - la a0, _ftext - la a1, _etext - jal monstartup - nop -#endif - - move a0,zero # set argc to 0 - jal main # call the program start function - nop - - # fall through to the "exit" routine - jal exit # call libc exit to run the G++ - # destructors - move a0, v0 # pass through the exit code - .end init - -/* - * _exit -- Exit from the application. Normally we cause a user trap - * to return to the ROM monitor for another run. NOTE: This is - * the only other routine we provide in the crt0.o object, since - * it may be tied to the "_start" routine. It also allows - * executables that contain a complete world to be linked with - * just the crt0.o object. - */ - .globl _exit - .ent _exit -_exit: -7: -#ifdef GCRT0 - jal _mcleanup - nop -#endif - # Cygmon expects a break 5 - break 5 - nop - b 7b # loop back just in-case - nop - .end _exit - -/* EOF crt0.S */ diff --git a/libgloss/mips/cygmon.c b/libgloss/mips/cygmon.c deleted file mode 100644 index 506e853..0000000 --- a/libgloss/mips/cygmon.c +++ /dev/null @@ -1,87 +0,0 @@ -/* cygmon.c -- Glue code for linking apps to run on top of Cygmon. - * - * Copyright (c) 1998, 1999, 2000 Red Hat, Inc. - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include "syscall.h" - -int -write ( int file, - char *buf, - int nbytes) -{ - return sysCall(SYS_write, file, (unsigned long)buf, nbytes); -} - -int -read (int file, - char *buf, - int nbytes) -{ - return sysCall(SYS_read, file, (unsigned long)buf, nbytes); -} - -int -outbyte (unsigned char c) -{ - return sysCall(SYS_write, 0, (unsigned long)&c, 1); -} - -unsigned char -inbyte (void) -{ - char c; - sysCall(SYS_read, 0, (unsigned long)&c, 1); - return c; -} - - -/* Structure filled in by get_mem_info. Only the size field is - actually used (by sbrk), so the others aren't even filled in. */ -struct s_mem -{ - unsigned int size; - unsigned int icsize; - unsigned int dcsize; -}; - -// Perform a system call. -// Unused parameters should be set to 0. -int sysCall(unsigned long func, unsigned long p1, unsigned long p2, unsigned long p3) -{ - int ret = 0; - asm volatile ( " \n\ - move $4, %1 \n\ - move $5, %2 \n\ - move $6, %3 \n\ - move $7, %4 \n\ - syscall \n\ - nop \n\ - move %0, $2" : "=r"(ret) : "r"(func), "r"(p1), "r"(p2), "r"(p3)); - return ret; -} - -// These need to be kept in sync with the definitions in Cygmon. -#define SYS_meminfo 1001 - -void * -get_mem_info (mem) - struct s_mem *mem; -{ - unsigned long totmem = 0, topmem = 0; - int numbanks; - - numbanks = sysCall(SYS_meminfo, (unsigned long)&totmem, (unsigned long)&topmem, 0); - mem->size = totmem; - return (void*)topmem; -} diff --git a/libgloss/mips/ddb-kseg0.ld b/libgloss/mips/ddb-kseg0.ld index db3759e..420fb6f 100644 --- a/libgloss/mips/ddb-kseg0.ld +++ b/libgloss/mips/ddb-kseg0.ld @@ -2,7 +2,6 @@ workspace. */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -lpmon -lgcc) SEARCH_DIR(.) @@ -23,8 +22,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -33,25 +30,21 @@ SECTIONS . = 0x80100000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -89,13 +82,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -109,7 +102,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -117,15 +110,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -156,7 +145,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/ddb.ld b/libgloss/mips/ddb.ld index 0280783..73dbad9 100644 --- a/libgloss/mips/ddb.ld +++ b/libgloss/mips/ddb.ld @@ -2,7 +2,6 @@ workspace. */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -lpmon -lgcc) SEARCH_DIR(.) @@ -23,8 +22,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -33,25 +30,21 @@ SECTIONS . = 0xA0100000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -89,13 +82,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -109,7 +102,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -117,15 +110,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -156,7 +145,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/dve.ld b/libgloss/mips/dve.ld index 073d1e9..a09eeee 100644 --- a/libgloss/mips/dve.ld +++ b/libgloss/mips/dve.ld @@ -1,7 +1,6 @@ /* Linker script for Densan DVE-R3900/20A board */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:3000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -ldve -lgcc) @@ -23,8 +22,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -33,25 +30,21 @@ SECTIONS . = 0xA0040000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -89,13 +82,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) CONSTRUCTORS } . = ALIGN(8); @@ -110,7 +103,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -118,15 +111,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -157,7 +146,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/idt.ld b/libgloss/mips/idt.ld index e0f87a7..5dd26fa 100644 --- a/libgloss/mips/idt.ld +++ b/libgloss/mips/idt.ld @@ -3,7 +3,6 @@ 0xa001af20. */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -lidt -lgcc) SEARCH_DIR(.) @@ -24,8 +23,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -37,15 +34,15 @@ SECTIONS PROVIDE (eprol = .); *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) } .init : { - KEEP (*(.init)) + *(.init) } .fini : { - KEEP (*(.fini)) + *(.fini) } .rel.sdata : { PROVIDE (__runtime_reloc_start = .); @@ -55,10 +52,6 @@ SECTIONS PROVIDE (etext = .); _etext = .; - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -96,13 +89,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -116,7 +109,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); PROVIDE (edata = .); @@ -124,15 +117,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -163,7 +152,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/idt32.ld b/libgloss/mips/idt32.ld index b5bba04..4214b7b 100644 --- a/libgloss/mips/idt32.ld +++ b/libgloss/mips/idt32.ld @@ -25,8 +25,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -38,15 +36,15 @@ SECTIONS PROVIDE (eprol = .); *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) } .init : { - KEEP (*(.init)) + *(.init) } .fini : { - KEEP (*(.fini)) + *(.fini) } .rel.sdata : { PROVIDE (__runtime_reloc_start = .); @@ -57,10 +55,6 @@ SECTIONS _etext = .; - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -98,13 +92,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -118,7 +112,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); PROVIDE (edata = .); @@ -126,15 +120,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -165,7 +155,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/idt64.ld b/libgloss/mips/idt64.ld index 4a400ae..751c0f1 100644 --- a/libgloss/mips/idt64.ld +++ b/libgloss/mips/idt64.ld @@ -25,8 +25,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -38,15 +36,15 @@ SECTIONS PROVIDE (eprol = .); *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) } .init : { - KEEP (*(.init)) + *(.init) } .fini : { - KEEP (*(.fini)) + *(.fini) } .rel.sdata : { PROVIDE (__runtime_reloc_start = .); @@ -56,10 +54,6 @@ SECTIONS PROVIDE (etext = .); _etext = .; - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -97,13 +91,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -117,7 +111,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); PROVIDE (edata = .); @@ -125,15 +119,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -164,7 +154,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/idtecoff.ld b/libgloss/mips/idtecoff.ld index 2788cc8..08534d2 100644 --- a/libgloss/mips/idtecoff.ld +++ b/libgloss/mips/idtecoff.ld @@ -25,8 +25,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -35,17 +33,17 @@ SECTIONS . = 0xA0020000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } @@ -54,13 +52,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) CONSTRUCTORS } . = ALIGN(8); @@ -75,7 +73,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -83,15 +81,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } end = .; diff --git a/libgloss/mips/jmr3904app-java.ld b/libgloss/mips/jmr3904app-java.ld index 98ce535..b23d8e3 100644 --- a/libgloss/mips/jmr3904app-java.ld +++ b/libgloss/mips/jmr3904app-java.ld @@ -1,7 +1,6 @@ /* Linker script forJMR 3904 board using Java + qthreads */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:3000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -ljmr3904 -lgcc -lgcjcoop) @@ -23,8 +22,6 @@ PROVIDE (_Jv_QthreadsStackSize = 0x10000); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -35,17 +32,17 @@ SECTIONS /* It fits the Cygmon ROMS */ .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } @@ -54,13 +51,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) CONSTRUCTORS } . = ALIGN(8); @@ -75,7 +72,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -83,15 +80,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) . += 0x2000 ; /* 8k bytes of stack. */ __stack = ALIGN(64) ; @@ -125,7 +118,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/jmr3904app.ld b/libgloss/mips/jmr3904app.ld index 3056a36..f5808fd 100644 --- a/libgloss/mips/jmr3904app.ld +++ b/libgloss/mips/jmr3904app.ld @@ -1,7 +1,6 @@ /* Linker script forJMR 3904 board */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:3000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -ljmr3904 -lgcc) @@ -20,8 +19,6 @@ PROVIDE (_mem_size = 0x100000); /* JMR3904 comes as standard with 512k of RAM */ * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -32,25 +29,21 @@ SECTIONS /* It fits the Cygmon ROMS */ .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -88,13 +81,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -108,7 +101,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -116,15 +109,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) . += 0x2000 ; /* 8k bytes of stack. */ __stack = ALIGN(64) ; @@ -158,7 +147,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/jmr3904dram-java.ld b/libgloss/mips/jmr3904dram-java.ld index 71e8403..ce9595d 100644 --- a/libgloss/mips/jmr3904dram-java.ld +++ b/libgloss/mips/jmr3904dram-java.ld @@ -1,7 +1,6 @@ /* Linker script forJMR 3904 board using Java + qthreads */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:3000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -ljmr3904 -lgcc -lgcjcoop) @@ -24,8 +23,6 @@ PROVIDE (_Jv_QthreadsStackSize = 0x10000); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -37,17 +34,17 @@ SECTIONS /* It fits the Cygmon ROMS */ .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } @@ -56,13 +53,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) CONSTRUCTORS } . = ALIGN(8); @@ -77,7 +74,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -85,15 +82,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -128,7 +121,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/jmr3904dram.ld b/libgloss/mips/jmr3904dram.ld index a2cb1ea..cf28364 100644 --- a/libgloss/mips/jmr3904dram.ld +++ b/libgloss/mips/jmr3904dram.ld @@ -1,7 +1,6 @@ /* Linker script forJMR 3904 board */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:3000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -ljmr3904 -lgcc) @@ -21,8 +20,6 @@ PROVIDE (_mem_size = 0x100000); /* JMR3904 comes as standard with 512k of RAM */ * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -34,17 +31,17 @@ SECTIONS /* It fits the Cygmon ROMS */ .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } @@ -53,13 +50,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) CONSTRUCTORS } . = ALIGN(8); @@ -74,7 +71,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -82,15 +79,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -125,7 +118,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/lsi.ld b/libgloss/mips/lsi.ld index 8393825..c567157 100644 --- a/libgloss/mips/lsi.ld +++ b/libgloss/mips/lsi.ld @@ -2,7 +2,6 @@ workspace. */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:4000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -llsi -lgcc) @@ -24,8 +23,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -34,23 +31,19 @@ SECTIONS . = 0xA0020000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -88,13 +81,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) CONSTRUCTORS } . = ALIGN(8); @@ -109,22 +102,18 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } edata = .; _edata = .; _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } end = .; diff --git a/libgloss/mips/nullmon.c b/libgloss/mips/nullmon.c index 0b519bf..12a157e 100644 --- a/libgloss/mips/nullmon.c +++ b/libgloss/mips/nullmon.c @@ -32,8 +32,8 @@ #if ! defined(BOARD_MEM_SIZE) #define BOARD_MEM_SIZE 0x100000 /* About a megabyte */ #endif -extern char _ftext[]; /* Defined in nullmon.ld */ -extern char _end[]; /* Defined in nullmon.ld */ +extern unsigned char _ftext ; /* Defined in nullmon.ld */ +extern unsigned char _end ; /* Defined in nullmon.ld */ #if defined(FIXME_WARNINGS) #warning("FIXME: struct s_mem belongs in a header file") @@ -47,8 +47,13 @@ struct s_mem void get_mem_info (mem) struct s_mem *mem; -{ - mem->size = BOARD_MEM_SIZE - (_end - _ftext); +{ char * t1, * t2 ; + unsigned long long tmp ; + t1 = & _ftext ; + t2 = & _end ; + tmp = (unsigned long long) (t2 - t1) ; + tmp = (unsigned long long) BOARD_MEM_SIZE - tmp ; + mem->size = tmp ; } /* SYSTEM INTERFACE diff --git a/libgloss/mips/nullmon.ld b/libgloss/mips/nullmon.ld index 1d93195..82d8016 100644 --- a/libgloss/mips/nullmon.ld +++ b/libgloss/mips/nullmon.ld @@ -2,7 +2,6 @@ workspace. */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:4000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -lnullmon -lgcc) @@ -24,8 +23,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -34,25 +31,21 @@ SECTIONS . = 0xA0020000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -90,13 +83,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -110,7 +103,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -118,15 +111,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } . = ALIGN(64) ; @@ -158,7 +147,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/pmon.S b/libgloss/mips/pmon.S index 5485979..a4496c9 100644 --- a/libgloss/mips/pmon.S +++ b/libgloss/mips/pmon.S @@ -1,7 +1,7 @@ /* * pmon.S -- low-level entry points into PMON monitor. * - * Copyright (c) 1996, 1997, 2002 Cygnus Support + * Copyright (c) 1996, 1997 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided @@ -19,7 +19,7 @@ .set nomips16 #endif -#if !defined(__mips64) +#if __mips < 3 /* This machine does not support 64-bit operations. */ #define ADDU addu #define SUBU subu diff --git a/libgloss/mips/pmon.ld b/libgloss/mips/pmon.ld index e9a20ae..f8dc54b 100644 --- a/libgloss/mips/pmon.ld +++ b/libgloss/mips/pmon.ld @@ -2,7 +2,6 @@ workspace. */ ENTRY(_start) -STARTUP(crt0.o) OUTPUT_ARCH("mips:4000") OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-littlemips") GROUP(-lc -lpmon -lgcc) @@ -24,8 +23,6 @@ PROVIDE (__stack = 0); * We have to initalize them twice, so we multiple object file * formats, as some prepend an underscore. */ -PROVIDE (hardware_exit_hook = 0); -PROVIDE (hardware_hazard_hook = 0); PROVIDE (hardware_init_hook = 0); PROVIDE (software_init_hook = 0); @@ -34,25 +31,21 @@ SECTIONS . = 0xA0020000; .text : { _ftext = . ; - KEEP (*(.init)) + *(.init) eprol = .; *(.text) *(.text.*) - *(.gnu.linkonce.t.*) + *(.gnu.linkonce.t*) *(.mips16.fn.*) *(.mips16.call.*) PROVIDE (__runtime_reloc_start = .); *(.rel.sdata) PROVIDE (__runtime_reloc_stop = .); - KEEP (*(.fini)) + *(.fini) etext = .; _etext = .; } - .eh_frame_hdr : { *(.eh_frame_hdr) } - .eh_frame : { KEEP (*(.eh_frame)) } - .gcc_except_table : { *(.gcc_except_table) } - .jcr : { KEEP (*(.jcr)) } .ctors : { /* gcc uses crtbegin.o to find the start of @@ -90,13 +83,13 @@ SECTIONS *(.rdata) *(.rodata) *(.rodata.*) - *(.gnu.linkonce.r.*) + *(.gnu.linkonce.r*) } _fdata = ALIGN(16); .data : { *(.data) *(.data.*) - *(.gnu.linkonce.d.*) + *(.gnu.linkonce.d*) } . = ALIGN(8); _gp = . + 0x8000; @@ -110,7 +103,7 @@ SECTIONS .sdata : { *(.sdata) *(.sdata.*) - *(.gnu.linkonce.s.*) + *(.gnu.linkonce.s*) } . = ALIGN(4); edata = .; @@ -118,15 +111,11 @@ SECTIONS _fbss = .; .sbss : { *(.sbss) - *(.sbss.*) - *(.gnu.linkonce.sb.*) *(.scommon) } .bss : { _bss_start = . ; *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) *(COMMON) } @@ -157,7 +146,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } diff --git a/libgloss/mips/regs.S b/libgloss/mips/regs.S index bdf933f..7ade6e8 100644 --- a/libgloss/mips/regs.S +++ b/libgloss/mips/regs.S @@ -53,21 +53,20 @@ #define fp1 $f1 /* Useful memory constants: */ +#define K0BASE 0x80000000 #ifndef __mips64 -#define K0BASE 0x80000000 #define K1BASE 0xA0000000 #define K0BASE_ADDR ((char *)K0BASE) #define K1BASE_ADDR ((char *)K1BASE) #else -#define K0BASE 0xFFFFFFFF80000000 -#define K1BASE 0xFFFFFFFFA0000000 +#define K1BASE 0xFFFFFFFFA0000000LL #define K0BASE_ADDR ((char *)0xFFFFFFFF80000000LL) -#define K1BASE_ADDR ((char *)0xFFFFFFFFA0000000LL) +#define K1BASE_ADDR ((char *)K1BASE) #endif #define PHYS_TO_K1(a) ((unsigned)(a) | K1BASE) -/* Standard Co-Processor 0 registers */ +/* Standard Co-Processor 0 register numbers: #define C0_COUNT $9 /* Count Register */ #define C0_SR $12 /* Status Register */ #define C0_CAUSE $13 /* last exception description */ diff --git a/libgloss/mips/vr4300.S b/libgloss/mips/vr4300.S index 9737ddc..2fc576e 100644 --- a/libgloss/mips/vr4300.S +++ b/libgloss/mips/vr4300.S @@ -47,7 +47,7 @@ __cpu_timer_poll: j ra nop # {DELAY SLOT} 1: - mfc0 v0, C0_COUNT # get current counter value + mfc0 v0, $9 # C0_COUNT: get current counter value nop nop # We cannot just do the simple test, of adding our delta onto @@ -66,7 +66,7 @@ __cpu_timer_poll: # sign-extended to fill the 64bit register value). 2: # get current counter value: - mfc0 v0, C0_COUNT + mfc0 v0, $9 # C0_COUNT nop nop # This is an unsigned 32bit subtraction: diff --git a/libgloss/mips/vr5xxx.S b/libgloss/mips/vr5xxx.S index f89e88a..4d2b38b 100644 --- a/libgloss/mips/vr5xxx.S +++ b/libgloss/mips/vr5xxx.S @@ -64,7 +64,7 @@ __cpu_timer_poll: j ra nop # {DELAY SLOT} 1: - mfc0 v0, C0_COUNT # get current counter value + mfc0 v0, $9 # C0_COUNT: get current counter value nop nop # We cannot just do the simple test, of adding our delta onto @@ -83,7 +83,7 @@ __cpu_timer_poll: # sign-extended to fill the 64bit register value). 2: # get current counter value: - mfc0 v0, C0_COUNT + mfc0 v0, $9 # C0_COUNT nop nop # This is an unsigned 32bit subtraction: diff --git a/libgloss/mn10200/Makefile.in b/libgloss/mn10200/Makefile.in index 5a6e10b..9ed0055 100644 --- a/libgloss/mn10200/Makefile.in +++ b/libgloss/mn10200/Makefile.in @@ -10,7 +10,6 @@ # the new terms are clearly indicated on the first page of each file where # they apply. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -122,12 +121,12 @@ distclean maintainer-clean realclean: clean .PHONY: install info install-info clean-info install: - $(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) + $(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) @for bsp in ${BSP}; do\ - $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ + $(INSTALL_PROGRAM) $${bsp} $(tooldir)/lib${MULTISUBDIR}; \ done @for script in ${SCRIPTS}; do\ - $(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ + $(INSTALL_DATA) ${srcdir}/$${script}.ld $(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ done info: diff --git a/libgloss/mn10200/eval.ld b/libgloss/mn10200/eval.ld index c5c958b..7c91ed7 100644 --- a/libgloss/mn10200/eval.ld +++ b/libgloss/mn10200/eval.ld @@ -144,7 +144,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/mn10200/sim.ld b/libgloss/mn10200/sim.ld index 4c75169..90c9e57 100644 --- a/libgloss/mn10200/sim.ld +++ b/libgloss/mn10200/sim.ld @@ -140,7 +140,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/mn10300/Makefile.in b/libgloss/mn10300/Makefile.in index 4153fd4..11cd3db 100644 --- a/libgloss/mn10300/Makefile.in +++ b/libgloss/mn10300/Makefile.in @@ -10,7 +10,6 @@ # the new terms are clearly indicated on the first page of each file where # they apply. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -129,13 +128,13 @@ distclean maintainer-clean realclean: clean .PHONY: install info install-info clean-info install: @for crt in ${CRT0}; do\ - $(INSTALL_PROGRAM) $${crt} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${crt}; \ + $(INSTALL_PROGRAM) $${crt} $(tooldir)/lib${MULTISUBDIR}/$${crt}; \ done @for bsp in ${BSP}; do\ - $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ + $(INSTALL_PROGRAM) $${bsp} $(tooldir)/lib${MULTISUBDIR}; \ done @for script in ${SCRIPTS}; do\ - $(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ + $(INSTALL_DATA) ${srcdir}/$${script}.ld $(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ done info: diff --git a/libgloss/mn10300/asb2303.ld b/libgloss/mn10300/asb2303.ld deleted file mode 100644 index 0fe2784..0000000 --- a/libgloss/mn10300/asb2303.ld +++ /dev/null @@ -1,151 +0,0 @@ -/* Linker script for the MN10300 AM33/2.00 Panasonic ASB2303 Evaluation Board. -*/ - -OUTPUT_FORMAT("elf32-mn10300", "elf32-mn10300", - "elf32-mn10300") -OUTPUT_ARCH(mn10300) -ENTRY(_start) -GROUP(-lc -lcygmon -lgcc) - SEARCH_DIR(.); -STARTUP(crt0_cygmon.o) - -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - /* Start of RAM (leaving room for Cygmon data) */ - . = 0x90080000; - - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.text : - { *(.rel.text) *(.rel.gnu.linkonce.t*) } - .rela.text : - { *(.rela.text) *(.rela.gnu.linkonce.t*) } - .rel.data : - { *(.rel.data) *(.rel.gnu.linkonce.d*) } - .rela.data : - { *(.rela.data) *(.rela.gnu.linkonce.d*) } - .rel.rodata : - { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } - .rela.rodata : - { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : { *(.init) } =0 - .plt : { *(.plt) } - .text : - { - *(.text) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t*) - *(.gcc_except_table) - } =0 - _etext = .; - PROVIDE (etext = .); - .fini : { *(.fini) } =0 - .rodata : { *(.rodata) *(.gnu.linkonce.r*) } - .rodata1 : { *(.rodata1) } - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(1) + (. & (1 - 1)); - .data : - { - *(.data) - *(.gnu.linkonce.d*) - CONSTRUCTORS - } - .data1 : { *(.data1) } - .ctors : - { - ___ctors = .; - KEEP(*crtbegin.o(.ctors)) - KEEP(*(SORT(.ctors.*))) - KEEP(*(.ctors)) - ___ctors_end = .; - } - .dtors : - { - ___dtors = .; - KEEP(*crtbegin.o(.dtors)) - KEEP(*(SORT(.dtors.*))) - KEEP(*(.dtors)) - ___dtors_end = .; - } - .got : { *(.got.plt) *(.got) } - .dynamic : { *(.dynamic) } - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : { *(.sdata) } - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .sbss : { *(.sbss) *(.scommon) } - .bss : - { - *(.dynbss) - *(.bss) - *(COMMON) - } - _end = . ; - PROVIDE (end = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - /* Top of RAM is 0x48100000, but Cygmon uses the top 4K for its stack. */ - .stack 0x480ff000 : { _stack = .; *(.stack) *(._stack) } - - /* These must appear regardless of . */ -} diff --git a/libgloss/mn10300/asb2305.ld b/libgloss/mn10300/asb2305.ld deleted file mode 100644 index b827469..0000000 --- a/libgloss/mn10300/asb2305.ld +++ /dev/null @@ -1,151 +0,0 @@ -/* Linker script for the MN10300 AM33/2.00 Panasonic ASB2305 Evaluation Board. -*/ - -OUTPUT_FORMAT("elf32-mn10300", "elf32-mn10300", - "elf32-mn10300") -OUTPUT_ARCH(am33-2) -ENTRY(_start) -GROUP(-lc -lcygmon -lgcc) - SEARCH_DIR(.); -STARTUP(crt0_redboot.o) - -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - /* Start of RAM (leaving room for RedBoot data) */ - . = 0x90700000; - - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.text : - { *(.rel.text) *(.rel.gnu.linkonce.t*) } - .rela.text : - { *(.rela.text) *(.rela.gnu.linkonce.t*) } - .rel.data : - { *(.rel.data) *(.rel.gnu.linkonce.d*) } - .rela.data : - { *(.rela.data) *(.rela.gnu.linkonce.d*) } - .rel.rodata : - { *(.rel.rodata) *(.rel.gnu.linkonce.r*) } - .rela.rodata : - { *(.rela.rodata) *(.rela.gnu.linkonce.r*) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : { *(.init) } =0 - .plt : { *(.plt) } - .text : - { - *(.text) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t*) - *(.gcc_except_table) - } =0 - _etext = .; - PROVIDE (etext = .); - .fini : { *(.fini) } =0 - .rodata : { *(.rodata) *(.gnu.linkonce.r*) } - .rodata1 : { *(.rodata1) } - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(1) + (. & (1 - 1)); - .data : - { - *(.data) - *(.gnu.linkonce.d*) - CONSTRUCTORS - } - .data1 : { *(.data1) } - .ctors : - { - ___ctors = .; - KEEP(*crtbegin.o(.ctors)) - KEEP(*(SORT(.ctors.*))) - KEEP(*(.ctors)) - ___ctors_end = .; - } - .dtors : - { - ___dtors = .; - KEEP(*crtbegin.o(.dtors)) - KEEP(*(SORT(.dtors.*))) - KEEP(*(.dtors)) - ___dtors_end = .; - } - .got : { *(.got.plt) *(.got) } - .dynamic : { *(.dynamic) } - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : { *(.sdata) } - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .sbss : { *(.sbss) *(.scommon) } - .bss : - { - *(.dynbss) - *(.bss) - *(COMMON) - } - _end = . ; - PROVIDE (end = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - /* Top of usable RAM is 0x91000000 */ - .stack 0x91000000 : { _stack = .; *(.stack) *(._stack) } - - /* These must appear regardless of . */ -} diff --git a/libgloss/mn10300/configure b/libgloss/mn10300/configure index b814eb1..6371dbf 100755 --- a/libgloss/mn10300/configure +++ b/libgloss/mn10300/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -583,7 +594,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 +echo "configure:598: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -604,7 +615,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 +echo "configure:619: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -622,7 +633,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 +echo "configure:637: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -676,7 +687,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 +echo "configure:691: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -740,7 +751,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:744: checking for $ac_word" >&5 +echo "configure:755: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -770,7 +781,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 +echo "configure:785: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -819,7 +830,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:823: checking whether we are using GNU C" >&5 +echo "configure:834: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -828,7 +839,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -843,7 +854,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -879,7 +890,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:883: checking for $ac_word" >&5 +echo "configure:894: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -908,11 +919,6 @@ fi case "${target}" in - mn10300-*elf) - part_specific_obj=vr4300.o - script_list="eval sim asb2303 asb2305" - bsp_list="libeval.a libcygmon.a" - ;; *) part_specific_obj=vr4300.o script_list="eval sim" @@ -1118,7 +1124,7 @@ cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. diff --git a/libgloss/mn10300/configure.in b/libgloss/mn10300/configure.in index 78d0b18..fd566f8 100644 --- a/libgloss/mn10300/configure.in +++ b/libgloss/mn10300/configure.in @@ -83,11 +83,6 @@ AC_SUBST(LD) AC_PROG_RANLIB case "${target}" in - mn10300-*elf) - part_specific_obj=vr4300.o - script_list="eval sim asb2303 asb2305" - bsp_list="libeval.a libcygmon.a" - ;; *) part_specific_obj=vr4300.o script_list="eval sim" diff --git a/libgloss/mn10300/eval.ld b/libgloss/mn10300/eval.ld index f26f582..ca54949 100644 --- a/libgloss/mn10300/eval.ld +++ b/libgloss/mn10300/eval.ld @@ -137,7 +137,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/mn10300/sim.ld b/libgloss/mn10300/sim.ld index 97fe454..6824cdd 100644 --- a/libgloss/mn10300/sim.ld +++ b/libgloss/mn10300/sim.ld @@ -13,7 +13,7 @@ SECTIONS { /* Read-only sections, merged into text segment: */ /* Start of RAM (leaving room for Cygmon data) */ - . = 4; + . = 0; .interp : { *(.interp) } .hash : { *(.hash) } @@ -135,7 +135,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/mt/16-002.ld b/libgloss/mt/16-002.ld deleted file mode 100644 index 9dfd62e..0000000 --- a/libgloss/mt/16-002.ld +++ /dev/null @@ -1,248 +0,0 @@ -OUTPUT_FORMAT("elf32-mt", "elf32-mt", "elf32-mt") -OUTPUT_ARCH(mt) -ENTRY(__boot_start) - -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -MEMORY -{ - ram (rwx) : ORIGIN = 0x0, LENGTH = 128K - frame-buffer (w) : ORIGIN = 0xde0000, LENGTH = 40K - ports (w) : ORIGIN = 0xfff000, LENGTH = 4K - dma-ram (w) : ORIGIN = 0x1000000, LENGTH = 16M-4K -} -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - . = 0x0; - PROVIDE(__executable_start = 0x0); - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } - .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } - .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) } - .rel.data.rel.ro : { *(.rel.data.rel.ro*) } - .rela.data.rel.ro : { *(.rela.data.rel.ro*) } - .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) } - .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) } - .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) } - .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) } - .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) } - .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.sdata : { *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) } - .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) } - .rel.sbss : { *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) } - .rela.sbss : { *(.rela.sbss .rela.sbss.* .rel.gnu.linkonce.sb.*) } - .rel.sdata2 : { *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) } - .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) } - .rel.sbss2 : { *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) } - .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) } - .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } - .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - - .startup : { *startup-16-002.o(.startup) } >ram =0 - . = 0x40 ; - - .init : { KEEP (*(.init)) } >ram =0 - .plt : { *(.plt) } >ram - .text : - { - *startup-16-002.o(.text) - *(.text .stub .text.* .gnu.linkonce.t.*) - KEEP (*(.text.*personality*)) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - } >ram =0 - .fini : { KEEP (*(.fini)) } >ram =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } >ram - .rodata1 : { *(.rodata1) } >ram - .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } >ram - .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } >ram - .eh_frame_hdr : { *(.eh_frame_hdr) } >ram - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } >ram - .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >ram - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(256) + (. & (256 - 1)); - /* Exception handling */ - .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } >ram - .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >ram - /* Thread Local Storage sections */ - .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } >ram - .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } >ram - /* Ensure the __preinit_array_start label is properly aligned. We - could instead move the label definition inside the section, but - the linker would then create the section even if it turns out to - be empty, which isn't pretty. */ - . = ALIGN(32 / 8); - PROVIDE (__preinit_array_start = .); - .preinit_array : { *(.preinit_array) } >ram - PROVIDE (__preinit_array_end = .); - PROVIDE (__init_array_start = .); - .init_array : { *(.init_array) } >ram - PROVIDE (__init_array_end = .); - PROVIDE (__fini_array_start = .); - .fini_array : { *(.fini_array) } >ram - PROVIDE (__fini_array_end = .); - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } >ram - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } >ram - .jcr : { KEEP (*(.jcr)) } >ram - .data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) } >ram - .dynamic : { *(.dynamic) } >ram - - /* DJK - Re-align the data section from the read-only section. */ - . = ALIGN(16) + (. & (16 - 1)); - PROVIDE (_data = .); - .data : - { - *(.data .data.* .gnu.linkonce.d.*) - SORT(CONSTRUCTORS) - } >ram - .data1 : { *(.data1) } >ram - .got : { *(.got.plt) *(.got) } >ram - - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : { *(.sdata .sdata.* .gnu.linkonce.s.*) } >ram - _edata = .; - PROVIDE ( edata = . ) ; - .sbss : - { - PROVIDE (__sbss_start = .); - PROVIDE (___sbss_start = .); - *(.dynsbss) - *(.sbss .sbss.* .gnu.linkonce.sb.*) - *(.scommon) - PROVIDE (__sbss_end = .); - PROVIDE (___sbss_end = .); - } >ram - .bss : - { - *(.dynbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); - } >ram - . = ALIGN(32 / 8); - __bss_start = ADDR ( .sbss ) ; - __bss_end = __bss_start + SIZEOF ( .sbss ) + SIZEOF ( .bss ) - 4 ; - _end = .; - PROVIDE (end = .); - - /* DJK - Initialized frame buffer data is copied from RAM to FB. */ - .auxbss : AT (ADDR(.bss) + SIZEOF(.bss)) { *(.auxbss) } >frame-buffer - .auxdata : AT (LOADADDR(.auxbss) + SIZEOF(.auxbss)) - { - *(.auxdata) - } >frame-buffer - - _fbbss_start = ADDR ( .auxbss ); - _fbbss_end = _fbbss_start + SIZEOF ( .auxbss ) - 4; - _fbdata_start = LOADADDR ( .auxdata ); - _fbdata_end = _fbdata_start + SIZEOF ( .auxdata ) ; - _fbdata_vma = ADDR ( .auxdata ); - - PROVIDE (__FRAME_BUFFER_START = ADDR(.auxbss) ); - PROVIDE (__FRAME_BUFFER_SIZE = 0xa000); - PROVIDE (__FRAME_BUFFER_END = __FRAME_BUFFER_START + __FRAME_BUFFER_SIZE); - - .dma : { _dma_start = .; *(.dma) _dma_end = .; } >dma-ram - .internal_io (NOLOAD) : { *(.internal_io) } >ports - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - /* In a multi-core environment, each core is given its own stack space - equal to __stack_size. */ - PROVIDE (__stack = 0x1fff0); - PROVIDE (__stack_size = 0x800); - - .stack (DEFINED(__stack) ? __stack : 0x007ffff0) : - { - __stack = .; - *(.stack) - LONG(0xdeaddead) - } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/libgloss/mt/16-003.ld b/libgloss/mt/16-003.ld deleted file mode 100644 index c837b75..0000000 --- a/libgloss/mt/16-003.ld +++ /dev/null @@ -1,258 +0,0 @@ -OUTPUT_FORMAT("elf32-mt", "elf32-mt", "elf32-mt") -OUTPUT_ARCH(mt) -ENTRY(__boot_start) - -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -MEMORY -{ - ram (rwx) : ORIGIN = 0x0, LENGTH = 608K - frame-buffer (w) : ORIGIN = 0xff000000, LENGTH = 80K - dma-ram (w) : ORIGIN = 0x1000000, LENGTH = 16M-4K - ports (w) : ORIGIN = 0xfffff000, LENGTH = 4K -} -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - . = 0x0; - PROVIDE(__executable_start = 0x0); - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } - .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } - .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) } - .rel.data.rel.ro : { *(.rel.data.rel.ro*) } - .rela.data.rel.ro : { *(.rela.data.rel.ro*) } - .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) } - .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) } - .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) } - .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) } - .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) } - .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.sdata : { *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) } - .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) } - .rel.sbss : { *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) } - .rela.sbss : { *(.rela.sbss .rela.sbss.* .rel.gnu.linkonce.sb.*) } - .rel.sdata2 : { *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) } - .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) } - .rel.sbss2 : { *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) } - .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) } - .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } - .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - - .startup : { *startup-16-003.o(.startup) } >ram =0 - . = 0x40; - - .init : { KEEP (*(.init)) } >ram =0 - .plt : { *(.plt) } >ram - .text : - { - *startup-16-003.o(.text); - *(.text .stub .text.* .gnu.linkonce.t.*) - KEEP (*(.text.*personality*)) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - } >ram =0 - .fini : { KEEP (*(.fini)) } >ram =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } >ram - .rodata1 : { *(.rodata1) } >ram - .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } >ram - .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } >ram - .eh_frame_hdr : { *(.eh_frame_hdr) } >ram - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } >ram - .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >ram - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(256) + (. & (256 - 1)); - /* Exception handling */ - .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } >ram - .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >ram - /* Thread Local Storage sections */ - .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } >ram - .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } >ram - /* Ensure the __preinit_array_start label is properly aligned. We - could instead move the label definition inside the section, but - the linker would then create the section even if it turns out to - be empty, which isn't pretty. */ - . = ALIGN(32 / 8); - PROVIDE (__preinit_array_start = .); - .preinit_array : { *(.preinit_array) } >ram - PROVIDE (__preinit_array_end = .); - PROVIDE (__init_array_start = .); - .init_array : { *(.init_array) } >ram - PROVIDE (__init_array_end = .); - PROVIDE (__fini_array_start = .); - .fini_array : { *(.fini_array) } >ram - PROVIDE (__fini_array_end = .); - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } >ram - .dtors : - { - KEEP (*crtbegin*.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } >ram - .jcr : { KEEP (*(.jcr)) } >ram - .data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) } >ram - .dynamic : { *(.dynamic) } >ram - - /* DJK - Re-align the data section from the read-only section. */ - . = ALIGN(16) + (. & (16 - 1)); - PROVIDE (_data = .); - .data : - { - *(.data .data.* .gnu.linkonce.d.*) - KEEP (*(.gnu.linkonce.d.*personality*)) - SORT(CONSTRUCTORS) - } >ram - .data1 : { *(.data1) } >ram - .got : { *(.got.plt) *(.got) } >ram - - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : { *(.sdata .sdata.* .gnu.linkonce.s.*) } >ram - _edata = .; - PROVIDE ( edata = . ); - .sbss : - { - PROVIDE (__sbss_start = .); - PROVIDE (___sbss_start = .); - *(.dynsbss) - *(.sbss .sbss.* .gnu.linkonce.sb.*) - *(.scommon) - PROVIDE (__sbss_end = .); - PROVIDE (___sbss_end = .); - } >ram - .bss : - { - *(.dynbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); - } >ram - . = ALIGN(32 / 8); - __bss_start = ADDR ( .sbss ) ; - __bss_end = __bss_start + SIZEOF ( .sbss ) + SIZEOF ( .bss ) - 4 ; - _end = .; - PROVIDE (end = .); - - /* DJK - Initialized frame buffer data is copied from RAM to FB. */ - .auxbss : AT (ADDR(.bss) + SIZEOF(.bss)) { *(.auxbss) } >frame-buffer - .auxdata : AT (LOADADDR(.auxbss) + SIZEOF(.auxbss)) - { - *(.auxdata.bank0) - . = ALIGN(0x4000); - *(.auxdata.bank1) - . = ALIGN(0x4000); - *(.auxdata.bank2) - . = ALIGN(0x4000); - *(.auxdata.bank3) - . = ALIGN(0x4000); - *(.auxdata.bank4) - *(.auxdata) - } >frame-buffer - - _fbbss_start = ADDR ( .auxbss ); - _fbbss_end = _fbbss_start + SIZEOF ( .auxbss ) - 4; - _fbdata_start = LOADADDR ( .auxdata ); - _fbdata_end = _fbdata_start + SIZEOF ( .auxdata ) ; - _fbdata_vma = ADDR ( .auxdata ); - - PROVIDE (__FRAME_BUFFER_START = ADDR(.auxbss) ); - PROVIDE (__FRAME_BUFFER_SIZE = 0x14000); - PROVIDE (__FRAME_BUFFER_END = __FRAME_BUFFER_START + __FRAME_BUFFER_SIZE); - - .dma : { _dma_start = .; *(.dma) _dma_end = .; } >dma-ram - .internal_io (NOLOAD) : { *(.internal_io) } >ports - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - /* In a multi-core environment, each core is given its own stack space - equal to __stack_size, growing downwards. */ - PROVIDE (__stack = 0x97ff0); - PROVIDE (__stack_size = 0x800); - - .stack (DEFINED(__stack) ? __stack : 0x007ffff0) : - { - __stack = .; - *(.stack) - LONG(0xdeaddead) - } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/libgloss/mt/64-001.ld b/libgloss/mt/64-001.ld deleted file mode 100644 index 501ec32..0000000 --- a/libgloss/mt/64-001.ld +++ /dev/null @@ -1,282 +0,0 @@ -OUTPUT_FORMAT("elf32-mt", "elf32-mt", "elf32-mt") -OUTPUT_ARCH(mt) -ENTRY(__boot_start) - -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -MEMORY -{ - rom (rx) : ORIGIN = 0x000000, LENGTH = 8M - frame-buffer (w) : ORIGIN = 0x800000, LENGTH = 64K - ram (w) : ORIGIN = 0xc00000, LENGTH = 4M - dma-ram (w) : ORIGIN = 0x1000000, LENGTH = 16M -} -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - PROVIDE (__executable_start = 0x0); . = 0x0; - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } - .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } - .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) } - .rel.data.rel.ro : { *(.rel.data.rel.ro*) } - .rela.data.rel.ro : { *(.rel.data.rel.ro*) } - .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) } - .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) } - .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) } - .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) } - .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) } - .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.sdata : { *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) } - .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) } - .rel.sbss : { *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) } - .rela.sbss : { *(.rela.sbss .rela.sbss.* .rel.gnu.linkonce.sb.*) } - .rel.sdata2 : { *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) } - .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) } - .rel.sbss2 : { *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) } - .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) } - .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } - .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - - .startup : { *startup-64-001.o(.startup) } >rom =0 - - .init : { KEEP (*(.init)) } >rom =0 - .plt : { *(.plt) } >rom - .text : - { - *startup-64-001.o(.text) - *(.text .stub .text.* .gnu.linkonce.t.*) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - } >rom =0 - .fini : - { - KEEP (*(.fini)) - } >rom =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } >rom - .rodata1 : { *(.rodata1) } >rom - - /* Data starting here needs to be copied from ROM to the frame buffer. */ - /* Section .sdata2 is used as the beginning marker of the frame buffer - address as well as the start of the data that needs to be copied. */ - .sdata2 : AT (ADDR(.rodata1) + SIZEOF(.rodata1)) - { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } >frame-buffer - .sbss2 : AT (LOADADDR(.sdata2) + SIZEOF(.sdata2)) - { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } >frame-buffer - .eh_frame_hdr : AT (LOADADDR(.sbss2) + SIZEOF(.sbss2)) - { *(.eh_frame_hdr) } >frame-buffer - .eh_frame : AT (LOADADDR(.eh_frame_hdr) + SIZEOF(.eh_frame_hdr)) - ONLY_IF_RO { KEEP (*(.eh_frame)) } >frame-buffer - .gcc_except_table : AT (LOADADDR(.eh_frame) + SIZEOF(.eh_frame)) - ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >frame-buffer - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(256) + (. & (256 - 1)); - /* Exception handling */ - .eh_frame : AT (LOADADDR(.eh_frame_hdr) + SIZEOF(.eh_frame_hdr)) - ONLY_IF_RW { KEEP (*(.eh_frame)) } >frame-buffer - .gcc_except_table : AT (LOADADDR(.eh_frame) + SIZEOF(.eh_frame)) - ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >frame-buffer - /* Thread Local Storage sections */ - .tdata : AT (LOADADDR(.gcc_except_table) + SIZEOF(.gcc_except_table)) - { *(.tdata .tdata.* .gnu.linkonce.td.*) } >frame-buffer - .tbss : AT (LOADADDR(.tdata) + SIZEOF(.tdata)) - { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } >frame-buffer - /* Ensure the __preinit_array_start label is properly aligned. We - could instead move the label definition inside the section, but - the linker would then create the section even if it turns out to - be empty, which isn't pretty. */ - . = ALIGN(32 / 8); - PROVIDE (__preinit_array_start = .); - .preinit_array : AT (LOADADDR(.tbss) + SIZEOF(.tbss)) - { *(.preinit_array) } >frame-buffer - PROVIDE (__preinit_array_end = .); - PROVIDE (__init_array_start = .); - .init_array : AT (LOADADDR(.preinit_array) + SIZEOF(.preinit_array)) - { *(.init_array) } >frame-buffer - PROVIDE (__init_array_end = .); - PROVIDE (__fini_array_start = .); - .fini_array : AT (LOADADDR(.init_array) + SIZEOF(.init_array)) - { *(.fini_array) } >frame-buffer - PROVIDE (__fini_array_end = .); - .ctors : AT (LOADADDR(.fini_array) + SIZEOF(.fini_array)) - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin*.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } >frame-buffer - .dtors : AT (LOADADDR(.ctors) + SIZEOF(.ctors)) - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } >frame-buffer - .jcr : AT (LOADADDR(.dtors) + SIZEOF(.dtors)) - { KEEP (*(.jcr)) } >frame-buffer - .data.rel.ro : AT (LOADADDR(.jcr) + SIZEOF(.jcr)) - { *(.data.rel.ro.local) *(.data.rel.ro*) } >frame-buffer - .dynamic : AT (LOADADDR(.data.rel.ro) + SIZEOF(.data.rel.ro)) - { *(.dynamic) } >frame-buffer - - /* DJK - Re-align the data section from the read-only section. */ - . = ALIGN(16) + (. & (16 - 1)); - PROVIDE (_data = .); - .data : AT (LOADADDR(.dynamic) + SIZEOF(.dynamic)) - { - *(.data .data.* .gnu.linkonce.d.*) - KEEP (*(.gnu.linkonce.d.*personality*)) - SORT(CONSTRUCTORS) - } >frame-buffer - .data1 : AT (LOADADDR(.data) + SIZEOF(.data)) - { *(.data1) } >frame-buffer - .got : AT (LOADADDR(.data1) + SIZEOF(.data1)) - { *(.got.plt) *(.got) } - - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : AT (LOADADDR(.got) + SIZEOF(.got)) - { *(.sdata .sdata.* .gnu.linkonce.s.*) } >frame-buffer - _edata = .; - PROVIDE ( edata = . ) ; - - _fbdata_start = LOADADDR(.sdata2) ; - _fbdata_end = LOADADDR(.sdata) + SIZEOF(.sdata) - 4 ; - - PROVIDE (__FRAME_BUFFER_START = ADDR(.sdata2)); - PROVIDE (__FRAME_BUFFER_SIZE = 0x10000); - PROVIDE (__FRAME_BUFFER_END = __FRAME_BUFFER_START + __FRAME_BUFFER_SIZE); - - .sbss : AT (LOADADDR(.sdata) + SIZEOF(.sdata)) - { - PROVIDE (__sbss_start = .); - PROVIDE (___sbss_start = .); - *(.dynsbss) - *(.sbss .sbss.* .gnu.linkonce.sb.*) - *(.scommon) - PROVIDE (__sbss_end = .); - PROVIDE (___sbss_end = .); - } >frame-buffer - .bss : AT (LOADADDR(.sbss) + SIZEOF(.sbss)) - { - *(.dynbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); - } >frame-buffer - . = ALIGN(32 / 8); - __bss_start = ADDR(.sbss) ; - __bss_end = __bss_start + SIZEOF(.sbss) + SIZEOF(.bss) - 4 ; - _end = .; - PROVIDE (end = .); - - PROVIDE ( _extdata_start = ADDR(.bss) + SIZEOF(.bss)); - .extdata : AT ( LOADADDR(.bss) + SIZEOF(.bss)) - { - *(.extdata) - } >ram - PROVIDE (_extdata_end = _extdata_start + SIZEOF(.extdata) - 4 ); - - .extbss : AT ( LOADADDR(.extdata) + SIZEOF(.extdata)) - { - _extbss_start = .; - *(.extbss); - . = ALIGN(4); - _extbss_end = .; - } >ram - . = ALIGN(4); - - PROVIDE (__EXTERNAL_MEMORY_START = 0xc00000); - - .dma : - { - _dma_start = .; - *(.dma) - _dma_end = .; - } >dma-ram - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - - PROVIDE (__stack = 0x80fff0); - - .stack (DEFINED(__stack) ? __stack : 0x7FFFF0) : - { - __stack = .; - *(.stack) - LONG(0xdeaddead) - } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/libgloss/mt/Makefile.in b/libgloss/mt/Makefile.in deleted file mode 100644 index 031c864..0000000 --- a/libgloss/mt/Makefile.in +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright (c) 2001, 2005 Red Hat, Inc. -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. - -# Makefile for libgloss/mt. This is the board support for the Morpho mt. - -VPATH = @srcdir@ @srcdir@/.. -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ -AR_FLAGS = rc - -OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ - then echo ${objroot}/../binutils/objdump ; \ - else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ - then echo ${objroot}/../binutils/objcopy ; \ - else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` - -SCRIPTS = 16-002.ld 16-003.ld 64-001.ld ms2.ld -CRT0 = crt0.o crt0-64-001.o crt0-16-002.o crt0-16-003.o crt0-ms2.o \ - startup-64-001.o startup-16-002.o startup-16-003.o startup-ms2.o \ - exit.o exit-64-001.o exit-16-002.o exit-16-003.o exit-ms2.o - -SIM_BSP = libsim.a -SIM_OBJS = access.o chmod.o close.o \ - fstat.o getpid.o gettime.o isatty.o kill.o lseek.o open.o \ - read.o sbrk.o stat.o time.o times.o trap.o unlink.o utime.o write.o - -#### Host specific Makefile fragment comes in here. -@host_makefile_frag@ - -all: $(CRT0) $(SIM_BSP) - -$(SIM_BSP): $(SIM_OBJS) - $(AR) $(ARFLAGS) $@ $? - $(RANLIB) $@ - -access.o: $(srcdir)/access.c -chmod.o: $(srcdir)/chmod.c -close.o: $(srcdir)/close.c -fstat.o: $(srcdir)/fstat.c -getpid.o: $(srcdir)/getpid.c -gettime.o: $(srcdir)/gettime.c -isatty.o: $(srcdir)/isatty.c -kill.o: $(srcdir)/kill.c -lseek.o: $(srcdir)/lseek.c -open.o: $(srcdir)/open.c -read.o: $(srcdir)/read.c -sbrk.o: $(srcdir)/sbrk.c -stat.o: $(srcdir)/stat.c -time.o: $(srcdir)/time.c -times.o: $(srcdir)/times.c -unlink.o: $(srcdir)/unlink.c -utime.o: $(srcdir)/utime.c -write.o: $(srcdir)/write.c -crt0.o: $(srcdir)/crt0.S -crt0-16-002.o: $(srcdir)/crt0-16-002.S -crt0-16-003.o: $(srcdir)/crt0-16-003.S -crt0-64-001.o: $(srcdir)/crt0-64-001.S -crt0-ms2.o: $(srcdir)/crt0-ms2.S - -trap.o: $(srcdir)/trap.S - -install: $($(CPU)_INSTALL) - for c in $(CRT0); do \ - $(INSTALL_DATA) $$c $(tooldir)/lib${MULTISUBDIR}/$$c ; \ - done; - $(INSTALL_DATA) $(SIM_BSP) $(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP) - for c in $(SCRIPTS); do \ - $(INSTALL_DATA) $(srcdir)/$$c $(tooldir)/lib/$$c ; \ - done; - -clean mostlyclean: - rm -f *.o *.a - -distclean maintainer-clean realclean: clean - rm -f Makefile config.cache config.log config.status - -.PHONY: info dvi doc install-info clean-info -info doc dvi: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/mt/access.c b/libgloss/mt/access.c deleted file mode 100644 index 8e08b3a..0000000 --- a/libgloss/mt/access.c +++ /dev/null @@ -1,33 +0,0 @@ -/* This is file ACCESS.C */ -/* - * Copyright (C) 1993 DJ Delorie - * All rights reserved. - * - * Redistribution and use in source and binary forms is permitted - * provided that the above copyright notice and following paragraph are - * duplicated in all such forms. - * - * This file is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - */ - -#include <fcntl.h> -#include <sys/stat.h> -#include <unistd.h> - -int access(const char *fn, int flags) -{ - struct stat s; - if (stat(fn, &s)) - return -1; - if (s.st_mode & S_IFDIR) - return 0; - if (flags & W_OK) - { - if (s.st_mode & S_IWRITE) - return 0; - return -1; - } - return 0; -} - diff --git a/libgloss/mt/chmod.c b/libgloss/mt/chmod.c deleted file mode 100644 index 8200506..0000000 --- a/libgloss/mt/chmod.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -chmod (const char *path, mode_t mode) -{ - return TRAP0 (SYS_chmod, path, mode, 0); -} diff --git a/libgloss/mt/close.c b/libgloss/mt/close.c deleted file mode 100644 index 02ee072..0000000 --- a/libgloss/mt/close.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -close (int file) -{ - return TRAP0 (SYS_close, file, 0, 0); -} diff --git a/libgloss/mt/configure b/libgloss/mt/configure deleted file mode 100755 index 5d272c9..0000000 --- a/libgloss/mt/configure +++ /dev/null @@ -1,1204 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=crt0.S - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -ac_aux_dir= -for ac_dir in $libgloss_topdir $srcdir/$libgloss_topdir; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $libgloss_topdir $srcdir/$libgloss_topdir" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:744: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:774: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:823: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:884: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} - -EOF -cat >> $CONFIG_STATUS <<\EOF -. ${libgloss_topdir}/config-ml.in -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/libgloss/mt/configure.in b/libgloss/mt/configure.in deleted file mode 100644 index 877f6a0..0000000 --- a/libgloss/mt/configure.in +++ /dev/null @@ -1,90 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(crt0.S) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC - -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) diff --git a/libgloss/mt/crt0-16-002.S b/libgloss/mt/crt0-16-002.S deleted file mode 100644 index ac2727e..0000000 --- a/libgloss/mt/crt0-16-002.S +++ /dev/null @@ -1,111 +0,0 @@ -; crt0_2.s - Startup code for the mrisc1. This code initializes the C -; run-time model. -; -; Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc. -; -; The authors hereby grant permission to use, copy, modify, distribute, -; and license this software and its documentation for any purpose, provided -; that existing copyright notices are retained in all copies and that this -; notice is included verbatim in any distributions. No written agreement, -; license, or royalty fee is required for any of the authorized uses. -; Modifications to this software may be copyrighted by their authors -; and need not follow the licensing terms described here, provided that -; the new terms are clearly indicated on the first page of each file where -; they apply. -; - - ; Create a label for the start of the eh_frame section. - .section .eh_frame -__eh_frame_begin: - - .text - .global _start -_start: - ;; Initialize the stack pointer - ldui sp, #%hi16(__stack) - addui sp, sp, #%lo16(__stack) - or fp, sp, sp - ;; Zero the bss space - ldui r9, #%hi16(__bss_start) - addui r9, r9, #%lo16(__bss_start) - ldui r10, #%hi16(__bss_end) - addui r10, r10, #%lo16(__bss_end) - or r0, r0, r0 - brle r10, r9, .Lnext1 - or r0, r0, r0 -.Lcpy0: - stw r0, r9, #0 - addi r9, r9, #4 - or r0, r0, r0 ; nop - brle r9, r10, .Lcpy0 - or r0, r0, r0 ; nop - -.Lnext1: - ;; Copy data from ROM to Frame Buffer (on-chip memory) - ldui r9, #%hi16(_fbdata_start) - ori r9, r9, #%lo16(_fbdata_start) - ldui r10, #%hi16(_fbdata_end) - ori r10, r10, #%lo16(_fbdata_end) - ldui r11, #%hi16(_fbdata_vma) - brle r10, r9, .Lnext2 - ori r11, r11, #%lo16(_fbdata_vma) -.Lcpy1: - ldw r5, r9, #$0 - addi r9, r9, #$4 - stw r5, r11, #$0 - brlt r9, r10, .Lcpy1 - addi r11, r11, #$4 - -.Lnext2: - ;; Zero the frame buffer bss section - ldui r9, #%hi16(_fbbss_start) - ori r9, r9, #%lo16(_fbbss_start) - ldui r10, #%hi16(_fbbss_end) - ori r10, r10, #%lo16(_fbbss_end) - or r0, r0, r0 - brle r10, r9, .Lnext3 - or r0, r0, r0 -.Lcpy2: - stw r0, r9, #$0 - addi r9, r9, #$4 - or r0, r0, r0 - brle r9, r10, .Lcpy2 - or r0, r0, r0 - -.Lnext3: - ;; Call global and static constructors - ldui r10, #%hi16(_init) - ori r10, r10, #%lo16(_init) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Call main - ldui r10, #%hi16(main) - ori r10, r10, #%lo16(main) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; DJK - Added 12Nov01. Pass main's return value to exit. - or r1, r11, r0 - - ;; Jump to exit - ldui r10, #%hi16(exit) - ori r10, r10, #%lo16(exit) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Exit does not return, however, this code is to catch an - ;; error if it does. Set the processor into sleep mode. - ori r1, r0, #$1 - stw r1, r0, #%lo16(_DEBUG_HALT_REG) - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 -.Lend: - jmp .Lend - or r0, r0, r0 diff --git a/libgloss/mt/crt0-16-003.S b/libgloss/mt/crt0-16-003.S deleted file mode 100644 index bd88bcc..0000000 --- a/libgloss/mt/crt0-16-003.S +++ /dev/null @@ -1,112 +0,0 @@ -; crt0.s - Startup code for the mrisc1. This code initializes the C -; run-time model. -; -; -; Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc. -; -; The authors hereby grant permission to use, copy, modify, distribute, -; and license this software and its documentation for any purpose, provided -; that existing copyright notices are retained in all copies and that this -; notice is included verbatim in any distributions. No written agreement, -; license, or royalty fee is required for any of the authorized uses. -; Modifications to this software may be copyrighted by their authors -; and need not follow the licensing terms described here, provided that -; the new terms are clearly indicated on the first page of each file where -; they apply. -; - - ; Create a label for the start of the eh_frame section. - .section .eh_frame -__eh_frame_begin: - - .text - .global _start -_start: - ;; Initialize the stack pointer - ldui sp, #%hi16(__stack) - addui sp, sp, #%lo16(__stack) - or fp, sp, sp - ;; Zero the bss space - ldui r9, #%hi16(__bss_start) - addui r9, r9, #%lo16(__bss_start) - ldui r10, #%hi16(__bss_end) - addui r10, r10, #%lo16(__bss_end) - or r0, r0, r0 - brle r10, r9, .Lnext1 - or r0, r0, r0 -.Lcpy0: - stw r0, r9, #0 - addi r9, r9, #4 - or r0, r0, r0 ; nop - brle r9, r10, .Lcpy0 - or r0, r0, r0 ; nop - -.Lnext1: - ;; Copy data from ROM to Frame Buffer (on-chip memory) - ldui r9, #%hi16(_fbdata_start) - ori r9, r9, #%lo16(_fbdata_start) - ldui r10, #%hi16(_fbdata_end) - ori r10, r10, #%lo16(_fbdata_end) - ldui r11, #%hi16(_fbdata_vma) - brle r10, r9, .Lnext2 - ori r11, r11, #%lo16(_fbdata_vma) -.Lcpy1: - ldw r5, r9, #$0 - addi r9, r9, #$4 - stw r5, r11, #$0 - brlt r9, r10, .Lcpy1 - addi r11, r11, #$4 - -.Lnext2: - ;; Zero the frame buffer bss section - ldui r9, #%hi16(_fbbss_start) - ori r9, r9, #%lo16(_fbbss_start) - ldui r10, #%hi16(_fbbss_end) - ori r10, r10, #%lo16(_fbbss_end) - or r0, r0, r0 - brle r10, r9, .Lnext3 - or r0, r0, r0 -.Lcpy2: - stw r0, r9, #$0 - addi r9, r9, #$4 - or r0, r0, r0 - brle r9, r10, .Lcpy2 - or r0, r0, r0 - -.Lnext3: - ;; Call global and static constructors - ldui r10, #%hi16(_init) - ori r10, r10, #%lo16(_init) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Call main - ldui r10, #%hi16(main) - ori r10, r10, #%lo16(main) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; DJK - Added 12Nov01. Pass main's return value to exit. - or r1, r11, r0 - - ;; Jump to exit - ldui r10, #%hi16(exit) - ori r10, r10, #%lo16(exit) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Exit does not return, however, this code is to catch an - ;; error if it does. Set the processor into sleep mode. - ori r1, r0, #$1 - stw r1, r0, #%lo16(_DEBUG_HALT_REG) - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 -.Lend: - jmp .Lend - or r0, r0, r0 diff --git a/libgloss/mt/crt0-64-001.S b/libgloss/mt/crt0-64-001.S deleted file mode 100644 index b78e780..0000000 --- a/libgloss/mt/crt0-64-001.S +++ /dev/null @@ -1,144 +0,0 @@ -; crt0_2.s - Startup code for the mrisc1. This code initializes the C -; run-time model. -; -; 12Nov01 (DJK) - The return code from main was not being passed to exit(). -; Now it is passed as a parameter in R1. -; -; 10Sep01 (DJK) - The function exit() does not return. However, in the -; the case of device error (if the halt bit does not -; function properly, for instance), then a catch loop -; has been added. -; -; -; Copyright 2001, 2002, 2003, 2004 Morpho Technologies, Inc. -; - - ; Create a label for the start of the eh_frame section. - .section .eh_frame -__eh_frame_begin: - - .equ HALT_REG, 0x300 - .section .text - .global _start -_start: - ;; Initialize the stack pointer - ldui sp, #%hi16(__stack) - addui sp, sp, #%lo16(__stack) - or fp, sp, sp - - ;; Copy data from ROM to Frame Buffer (on-chip memory) - ldui r9, #%hi16(_fbdata_start) - ori r9, r9, #%lo16(_fbdata_start) - ldui r10, #%hi16(_fbdata_end) - ori r10, r10, #%lo16(_fbdata_end) - ldui r11, #%hi16(__FRAME_BUFFER_START) - brle r10, r9, .Lnext1 - ori r11, r11, #%lo16(__FRAME_BUFFER_START) -.Lcpy0: - ldw r5, r9, #$0 - addi r9, r9, #$4 - stw r5, r11, #$0 - brlt r9, r10, .Lcpy0 - addi r11, r11, #$4 - -.Lnext1: - ;; Copy data from ROM to External Memory (off-chip memory) - ldui r9, #%hi16(_extdata_start) - ori r9, r9, #%lo16(_extdata_start) - ldui r10, #%hi16(_extdata_end) - ori r10, r10, #%lo16(_extdata_end) - ldui r11, #%hi16(__EXTERNAL_MEMORY_START) - brle r10, r9, .Lnext2 - ori r11, r11, #%lo16(__EXTERNAL_MEMORY_START) -.Lcpy1: - ldw r5, r9, #$0 - addi r9, r9, #$4 - stw r5, r11, #$0 - brlt r9, r10, .Lcpy1 - addi r11, r11, #$4 - - -.Lnext2: - ;; Zero the bss space - ldui r9, #%hi16(__bss_start) - addui r9, r9, #%lo16(__bss_start) - ldui r10, #%hi16(__bss_end) - addui r10, r10, #%lo16(__bss_end) - or r0, r0, r0 - brle r10, r9, .Lnext3 - or r0, r0, r0 -.Lcpy2: - stw r0, r9, #0 - addi r9, r9, #4 - or r0, r0, r0 ; nop - brle r9, r10, .Lcpy2 - or r0, r0, r0 ; nop - -.Lnext3: - ;; Zero the external memory bss section - ldui r9, #%hi16(_extbss_start) - ori r9, r9, #%lo16(_extbss_start) - ldui r10, #%hi16(_extbss_end) - ori r10, r10, #%lo16(_extbss_end) - or r0, r0, r0 - brle r10, r9, .Lnext4 - or r0, r0, r0 -.Lcpy3: - stw r0, r9, #$0 - addi r9, r9, #$4 - or r0, r0, r0 - brle r9, r10, .Lcpy3 - or r0, r0, r0 - -.Lnext4: - ;; Call global and static constructors - ldui r10, #%hi16(_init) - ori r10, r10, #%lo16(_init) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Setup destructors to be called from exit. - ;; (Just in case main never returns....) - ldui r10, #%hi16(atexit) - ori r10, r10, #%lo16(atexit) - ldui r1, #%hi16(_fini) - ori r1, r1, #%lo16(_fini) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Initialise argc, argv and envp to empty - addi r1, r0, #0 - addi r2, r0, #0 - addi r3, r0, #0 - - ;; Call main - ldui r10, #%hi16(main) - ori r10, r10, #%lo16(main) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; DJK - Added 12Nov01. Pass main's return value to exit. - or r1, r11, r0 - - ;; Jump to exit - ldui r10, #%hi16(exit) - ori r10, r10, #%lo16(exit) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Exit does not return, however, this code is to catch an - ;; error if it does. Set the processor into sleep mode. - ori r1, r0, #$1 - stw r1, r0, #HALT_REG - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 -.Lend: - jmp .Lend - or r0, r0, r0 diff --git a/libgloss/mt/crt0-ms2.S b/libgloss/mt/crt0-ms2.S deleted file mode 100644 index 2efaebd..0000000 --- a/libgloss/mt/crt0-ms2.S +++ /dev/null @@ -1,121 +0,0 @@ -; crt0.s - Startup code for the ms2. This code initializes the C -; run-time model. -; -; -; Copyright 2001, 2002, 2003, 2004 Morpho Technologies -; - - ; Create a label for the start of the eh_frame section. - .section .eh_frame -__eh_frame_begin: - - .text - .global _start -_start: - ;; Initialize the stack pointer - ldui sp, #%hi16(__stack) - addui sp, sp, #%lo16(__stack) - or fp, sp, sp - ;; Zero the bss space - ldui r9, #%hi16(__bss_start) - addui r9, r9, #%lo16(__bss_start) - ldui r10, #%hi16(__bss_end) - addui r10, r10, #%lo16(__bss_end) - or r0, r0, r0 - brle r10, r9, .Lnext1 - or r0, r0, r0 -.Lcpy0: - stw r0, r9, #0 - addi r9, r9, #4 - or r0, r0, r0 ; nop - brle r9, r10, .Lcpy0 - or r0, r0, r0 ; nop - -.Lnext1: - ;; Copy data from ROM to Frame Buffer (on-chip memory) - ldui r9, #%hi16(_fbdata_start) - ori r9, r9, #%lo16(_fbdata_start) - ldui r10, #%hi16(_fbdata_end) - ori r10, r10, #%lo16(_fbdata_end) - ldui r11, #%hi16(_fbdata_vma) - brle r10, r9, .Lnext2 - ori r11, r11, #%lo16(_fbdata_vma) -.Lcpy1: - ldw r5, r9, #$0 - addi r9, r9, #$4 - stw r5, r11, #$0 - brlt r9, r10, .Lcpy1 - addi r11, r11, #$4 - -.Lnext2: - ;; Zero the frame buffer bss section - ldui r9, #%hi16(_fbbss_start) - ori r9, r9, #%lo16(_fbbss_start) - ldui r10, #%hi16(_fbbss_end) - ori r10, r10, #%lo16(_fbbss_end) - or r0, r0, r0 - brle r10, r9, .Lnext3 - or r0, r0, r0 -.Lcpy2: - stw r0, r9, #$0 - addi r9, r9, #$4 - or r0, r0, r0 - brle r9, r10, .Lcpy2 - or r0, r0, r0 - -.Lnext3: - ;; Copy data from ROM to SRAM (another on-chip memory) - ldui r9, #%hi16(_sram_data_start) - ori r9, r9, #%lo16(_sram_data_start) - ldui r10, #%hi16(_sram_data_end) - ori r10, r10, #%lo16(_sram_data_end) - ldui r11, #%hi16(_sram_data_vma) - brle r10, r9, .Lnext4 - ori r11, r11, #%lo16(_sram_data_vma) -.Lcpy3: - ldw r5, r9, #$0 - addi r9, r9, #$4 - stw r5, r11, #$0 - brlt r9, r10, .Lcpy3 - addi r11, r11, #$4 - -.Lnext4: - ;; Call global and static constructors - ldui r10, #%hi16(_init) - ori r10, r10, #%lo16(_init) - or r0, r0, r0 ; nop - or r0, r0, r0 ; nop, added 06Sep05 - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Call main - ldui r10, #%hi16(main) - ori r10, r10, #%lo16(main) - or r0, r0, r0 ; nop - or r0, r0, r0 ; nop, added 06Sep05 - jal r14, r10 - or r0, r0, r0 ; nop - - ;; DJK - Added 12Nov01. Pass main's return value to exit. - or r1, r11, r0 - - ;; Jump to exit - ldui r10, #%hi16(exit) - ori r10, r10, #%lo16(exit) - or r0, r0, r0 ; nop - or r0, r0, r0 ; nop, added 06Sep05 - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Exit does not return, however, this code is to catch an - ;; error if it does. Set the processor into sleep mode. - ori r1, r0, #$1 - stw r1, r0, #%lo16(_DEBUG_HALT_REG) - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 -.Lend: - jmp .Lend - or r0, r0, r0 diff --git a/libgloss/mt/crt0.S b/libgloss/mt/crt0.S deleted file mode 100644 index ba5249e..0000000 --- a/libgloss/mt/crt0.S +++ /dev/null @@ -1,63 +0,0 @@ -# Startup Code for the Morpho mt - -# Create a label for the start of the eh_frame section. - .section .eh_frame -__eh_frame_begin: - - .section .text - .global _start -_start: - - ;; Initialise the stack pointer - ldui sp, #%hi16(__stack) - addui sp, sp, #%lo16(__stack) - or fp, sp, sp - - ;; Zero the data space - ldui r9, #%hi16(_edata) - addui r9, r9, #%lo16(_edata) - ldui r10, #%hi16(_end) - addui r10, r10, #%lo16(_end) - addi r5, r0, #0 - -.L0: - stw r5, r9, #0 - addi r9, r9, #4 - or r0, r0, r0 ; nop - brle r9, r10, .L0 - or r0, r0, r0 ; nop - - ;; Call global and static constructors - ldui r10, #%hi16(_init) - addui r10, r10, #%lo16(_init) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - ;; Setup destructors to be called from exit. - ;; (Just in case main never returns....) - ldui r10, #%hi16(atexit) - addui r10, r10, #%lo16(atexit) - ldui r1, #%hi16(_fini) - addui r1, r1, #%lo16(_fini) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Initialise argc, argv and envp to empty - addi r1, r0, #0 - addi r2, r0, #0 - addi r3, r0, #0 - - ;; Call main - ldui r10, #%hi16(main) - addui r10, r10, #%lo16(main) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop - - ;; Jump to exit - ldui r10, #%hi16(exit) - addui r10, r10, #%lo16(exit) - or r0, r0, r0 ; nop - jal r14, r10 - or r0, r0, r0 ; nop diff --git a/libgloss/mt/exit-16-002.c b/libgloss/mt/exit-16-002.c deleted file mode 100644 index ba048d9..0000000 --- a/libgloss/mt/exit-16-002.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> - - -void _exit (n) -{ - /* Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to - the simulator. (The simulator will return a SIGQUIT signal.) */ - asm("ori r1, r0, #$1\n"); - asm("stw r1, r0, #$fffff300\n"); -} diff --git a/libgloss/mt/exit-16-003.c b/libgloss/mt/exit-16-003.c deleted file mode 100644 index ba048d9..0000000 --- a/libgloss/mt/exit-16-003.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> - - -void _exit (n) -{ - /* Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to - the simulator. (The simulator will return a SIGQUIT signal.) */ - asm("ori r1, r0, #$1\n"); - asm("stw r1, r0, #$fffff300\n"); -} diff --git a/libgloss/mt/exit-64-001.c b/libgloss/mt/exit-64-001.c deleted file mode 100644 index 97c7b8c..0000000 --- a/libgloss/mt/exit-64-001.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> - - -void _exit (n) -{ - /* Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to - the simulator. (The simulator will return a SIGQUIT signal.) */ - asm("ori r1, r0, #$1\n"); - asm("stw r1, r0, #$300\n"); -} diff --git a/libgloss/mt/exit-ms2.c b/libgloss/mt/exit-ms2.c deleted file mode 100644 index 93a3f85..0000000 --- a/libgloss/mt/exit-ms2.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> - - -void _exit (n) -{ - // Set bit #0 in the _DEBUG_HALT_REG to trigger program exit to - // the simulator. (The simulator will return a SIGQUIT signal.) - asm("ori r1, r0, #$1\n"); - asm("stw r1, r0, #$fffff300\n"); -} // exit diff --git a/libgloss/mt/exit.c b/libgloss/mt/exit.c deleted file mode 100644 index cc7983b..0000000 --- a/libgloss/mt/exit.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -void _exit (n) -{ - TRAP0 (SYS_exit, n, 0, 0); -} diff --git a/libgloss/mt/fstat.c b/libgloss/mt/fstat.c deleted file mode 100644 index 1d7d2dc..0000000 --- a/libgloss/mt/fstat.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -fstat (int file, - struct stat *st) -{ - st->st_mode = S_IFCHR; - st->st_blksize = 4096; - return 0; -} diff --git a/libgloss/mt/getpid.c b/libgloss/mt/getpid.c deleted file mode 100644 index 8d686b8..0000000 --- a/libgloss/mt/getpid.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -getpid (n) -{ - return 1; -} diff --git a/libgloss/mt/gettime.c b/libgloss/mt/gettime.c deleted file mode 100644 index 1a04267..0000000 --- a/libgloss/mt/gettime.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" -#include "sys/time.h" - - -int -_gettimeofday (struct timeval *tp, void *tzp) -{ - return TRAP0 (SYS_gettimeofday, tp, tzp, 0); -} diff --git a/libgloss/mt/isatty.c b/libgloss/mt/isatty.c deleted file mode 100644 index 0930a53..0000000 --- a/libgloss/mt/isatty.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -isatty (fd) - int fd; -{ - return 1; -} diff --git a/libgloss/mt/kill.c b/libgloss/mt/kill.c deleted file mode 100644 index e8ea437..0000000 --- a/libgloss/mt/kill.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -kill (n, m) -{ - return TRAP0 (SYS_exit, 0xdead, 0, 0); -} - diff --git a/libgloss/mt/lseek.c b/libgloss/mt/lseek.c deleted file mode 100644 index 7839091..0000000 --- a/libgloss/mt/lseek.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/unistd.h> -#include "trap.h" - - -off_t -lseek (int file, - off_t ptr, - int dir) -{ - return TRAP0 (SYS_lseek, file, ptr, dir); -} diff --git a/libgloss/mt/ms2.ld b/libgloss/mt/ms2.ld deleted file mode 100644 index 3dac307..0000000 --- a/libgloss/mt/ms2.ld +++ /dev/null @@ -1,271 +0,0 @@ -OUTPUT_FORMAT("elf32-mt", "elf32-mt", "elf32-mt") -OUTPUT_ARCH(mt) -ENTRY(__boot_start) - -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -MEMORY -{ - ram (rwx) : ORIGIN = 0x0, LENGTH = 16M - sram (wx) : ORIGIN = 0xfef00000, LENGTH = 64K - frame-buffer (w) : ORIGIN = 0xff000000, LENGTH = 80K - dma-ram (w) : ORIGIN = 0x1000000, LENGTH = 32M - ports (w) : ORIGIN = 0xfffff000, LENGTH = 4K -} -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - . = 0x0; - PROVIDE(__executable_start = 0x0); - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .gnu.version : { *(.gnu.version) } - .gnu.version_d : { *(.gnu.version_d) } - .gnu.version_r : { *(.gnu.version_r) } - .rel.init : { *(.rel.init) } - .rela.init : { *(.rela.init) } - .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } - .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) } - .rel.fini : { *(.rel.fini) } - .rela.fini : { *(.rela.fini) } - .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } - .rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) } - .rel.data.rel.ro : { *(.rel.data.rel.ro*) } - .rela.data.rel.ro : { *(.rela.data.rel.ro*) } - .rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) } - .rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) } - .rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) } - .rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) } - .rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) } - .rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.sdata : { *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*) } - .rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) } - .rel.sbss : { *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*) } - .rela.sbss : { *(.rela.sbss .rela.sbss.* .rel.gnu.linkonce.sb.*) } - .rel.sdata2 : { *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*) } - .rela.sdata2 : { *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) } - .rel.sbss2 : { *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*) } - .rela.sbss2 : { *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) } - .rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } - .rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - - .startup : { *startup-16-003.o(.startup) } >ram =0 - . = 0x40; - - .init : { KEEP (*(.init)) } >ram =0 - .plt : { *(.plt) } >ram - .text : - { - *startup-16-004.o(.text); - *(.text .stub .text.* .gnu.linkonce.t.*) - KEEP (*(.text.*personality*)) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - } >ram =0 - .fini : { KEEP (*(.fini)) } >ram =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } >ram - .rodata1 : { *(.rodata1) } >ram - .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } >ram - .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } >ram - .eh_frame_hdr : { *(.eh_frame_hdr) } >ram - .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } >ram - .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >ram - /* Adjust the address for the data segment. We want to adjust up to - the same address within the page on the next page up. */ - . = ALIGN(256) + (. & (256 - 1)); - /* Exception handling */ - .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } >ram - .gcc_except_table : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) } >ram - /* Thread Local Storage sections */ - .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } >ram - .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } >ram - /* Ensure the __preinit_array_start label is properly aligned. We - could instead move the label definition inside the section, but - the linker would then create the section even if it turns out to - be empty, which isn't pretty. */ - . = ALIGN(32 / 8); - PROVIDE (__preinit_array_start = .); - .preinit_array : { *(.preinit_array) } >ram - PROVIDE (__preinit_array_end = .); - PROVIDE (__init_array_start = .); - .init_array : { *(.init_array) } >ram - PROVIDE (__init_array_end = .); - PROVIDE (__fini_array_start = .); - .fini_array : { *(.fini_array) } >ram - PROVIDE (__fini_array_end = .); - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } >ram - .dtors : - { - KEEP (*crtbegin*.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend*.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } >ram - .jcr : { KEEP (*(.jcr)) } >ram - .data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) } >ram - .dynamic : { *(.dynamic) } >ram - - /* DJK - Re-align the data section from the read-only section. */ - . = ALIGN(16) + (. & (16 - 1)); - PROVIDE (_data = .); - .data : - { - *(.data .data.* .gnu.linkonce.d.*) - KEEP (*(.gnu.linkonce.d.*personality*)) - SORT(CONSTRUCTORS) - } >ram - .data1 : { *(.data1) } >ram - .got : { *(.got.plt) *(.got) } >ram - - /* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata : { *(.sdata .sdata.* .gnu.linkonce.s.*) } >ram - _edata = .; - PROVIDE ( edata = . ); - .sbss : - { - PROVIDE (__sbss_start = .); - PROVIDE (___sbss_start = .); - *(.dynsbss) - *(.sbss .sbss.* .gnu.linkonce.sb.*) - *(.scommon) - PROVIDE (__sbss_end = .); - PROVIDE (___sbss_end = .); - } >ram - .bss : - { - *(.dynbss) - *(.bss .bss.* .gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(32 / 8); - } >ram - . = ALIGN(32 / 8); - __bss_start = ADDR ( .sbss ) ; - __bss_end = __bss_start + SIZEOF ( .sbss ) + SIZEOF ( .bss ) - 4 ; - _end = .; - PROVIDE (end = .); - - /* DJK - Initialized frame buffer data is copied from RAM to FB. */ - .auxbss : AT (ADDR(.bss) + SIZEOF(.bss)) { *(.auxbss) } >frame-buffer - .auxdata : AT (LOADADDR(.auxbss) + SIZEOF(.auxbss)) - { - *(.auxdata.bank0) - . = ALIGN(0x4000); - *(.auxdata.bank1) - . = ALIGN(0x4000); - *(.auxdata.bank2) - . = ALIGN(0x4000); - *(.auxdata.bank3) - . = ALIGN(0x4000); - *(.auxdata.bank4) - *(.auxdata) - } >frame-buffer - - _fbbss_start = ADDR ( .auxbss ); - _fbbss_end = _fbbss_start + SIZEOF ( .auxbss ) - 4; - _fbdata_start = LOADADDR ( .auxdata ); - _fbdata_end = _fbdata_start + SIZEOF ( .auxdata ) ; - _fbdata_vma = ADDR ( .auxdata ); - - PROVIDE (__FRAME_BUFFER_START = ADDR(.auxbss) ); - PROVIDE (__FRAME_BUFFER_SIZE = 0x14000); - PROVIDE (__FRAME_BUFFER_END = __FRAME_BUFFER_START + __FRAME_BUFFER_SIZE); - - /* For now, locate data ahead of code in onchip sram/memory. */ - .sram : AT (LOADADDR(.auxdata) + SIZEOF(.auxdata)) - { - *(.sram.data) - . = ALIGN(4) ; /* Make sure that instructions are aligned... */ - *(.sram.text) - } >sram - - _sram_data_start = LOADADDR ( .sram ); - _sram_data_end = _sram_data_start + SIZEOF ( .sram ) ; - _sram_data_vma = ADDR ( .sram ); - - .dma : { _dma_start = .; *(.dma) _dma_end = .; } >dma-ram - .internal_io (NOLOAD) : { *(.internal_io) } >ports - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - - /* In a multi-core environment, each core is given its own stack space - equal to __stack_size, growing downwards. */ - PROVIDE (__stack = 0x97ff0); - PROVIDE (__stack_size = 0x800); - - .stack (DEFINED(__stack) ? __stack : 0x007ffff0) : - { - __stack = .; - *(.stack) - LONG(0xdeaddead) - } - /DISCARD/ : { *(.note.GNU-stack) } -} diff --git a/libgloss/mt/open.c b/libgloss/mt/open.c deleted file mode 100644 index d727bdd..0000000 --- a/libgloss/mt/open.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -open (const char *path, int flags, int mode) -{ - return TRAP0 (SYS_open, path, flags, mode); -} diff --git a/libgloss/mt/read.c b/libgloss/mt/read.c deleted file mode 100644 index e7f37fa..0000000 --- a/libgloss/mt/read.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -read (int file, - char *ptr, - size_t len) -{ - return TRAP0 (SYS_read, file, ptr, len); -} diff --git a/libgloss/mt/sbrk.c b/libgloss/mt/sbrk.c deleted file mode 100644 index 1f959c0..0000000 --- a/libgloss/mt/sbrk.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -caddr_t -sbrk (size_t incr) -{ - extern char end; /* Defined by the linker */ - static char *heap_end; - char *prev_heap_end; - - char *sp = (char *) &sp; - - if (heap_end == 0) - { - heap_end = &end; - } - prev_heap_end = heap_end; - heap_end += incr; - - return (caddr_t) prev_heap_end; -} diff --git a/libgloss/mt/startup-16-002.S b/libgloss/mt/startup-16-002.S deleted file mode 100644 index d1732d6..0000000 --- a/libgloss/mt/startup-16-002.S +++ /dev/null @@ -1,628 +0,0 @@ -/* - * interrupt_vectors.s -- the interrupt handler jump table. - * - * - * There are a total of 32 interrupt vector possible, however, only - * 11 of those are currently used (the others are reserved). The - * order of vectors is as follows: - * - * 1. Boot Vector. Vector for power-on/reset. - * 2. Software Vector. Vector for handling the SI instruction (an - * explicit interrupt caused by software). - * 3. Break Vector. Vector for handling the Break instruction. - * 4. Device 0 Vector. Service vector for device zero. - * 5. Device 1 Vector. Service vector for device one. - * 6. Device 2 Vector. Service vector for device two. - * 7. Device 3 Vector. Service vector for device three. - * 8. Device 4 Vector. Service vector for device four. - * 9. Device 5 Vector. Service vector for device five. - * 10. Device 6 Vector. Service vector for device six. - * 11. Device 7 Vector. Service vector for device seven. - * - * The rest of the interrupt vectors are reserved for future use. - * - * - * Each jump table entry consists of the following two instructions: - * - * jmp Label ; Label as appropriate - * nop ; implemented as or r0,r0,r0 - * - * The following labels are reserved for the vectors named above, - * respectively: - * - * _BOOTIVEC, _SOFTIVEC, _BRKIVEC, _DEV0IVEC, _DEV1IVEC, _DEV2IVEC, - * _DEV3IVEC, _DEV4IVEC, _DEV5IVEC, _DEV6IVEC, _DEV7IVEC - * - * - * - * Copyright (c) 2001, 2002, 2003, 2004 Morpho Technologies - * - */ - - .section .startup, "a", @progbits - .global __boot_start -__boot_start: -_INTERRUPT_VECTOR_TABLE: - jmp _BOOTIVEC ; Boot vector - or r0, r0, r0 - jmp _SOFTIVEC ; Vector for SI instruction - or r0,r0,r0 - jmp _BRKIVEC ; Vector for Break instruction - or r0,r0,r0 - ; The illegal instruction trap is not implemented. -_RESERVED1_IVEC: - jmp _RESERVED1_IVEC ; Vector for illegal instruction - or r0,r0,r0 - jmp _OVFIVEC ; Vector for overflow exception - or r0,r0,r0 -_RESERVED2_IVEC: - jmp _RESERVED2_IVEC - or r0,r0,r0 -_RESERVED3_IVEC: - jmp _RESERVED3_IVEC - or r0,r0,r0 -_RESERVED4_IVEC: - jmp _RESERVED4_IVEC - or r0,r0,r0 - - .text - - .equ SI_IOPORT_ADR, _DEBUG_SW_SYSREQ_REG - .equ SI_IOPORT_BIT, 0x1 - .equ BRK_IOPORT_ADR, _DEBUG_BREAK_REG - .equ BRK_IOPORT_BIT, 0x1 - - .global _BOOTIVEC -_BOOTIVEC: - ; Initialize the interrupt controller's interrupt vector registers - ldui r1, #%hi16(_IVEC_DEFAULT) - ori r1, r1, #%lo16(_IVEC_DEFAULT) - stw r1, r0, #%lo16(_DEV0_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV1_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV2_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV3_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV4_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV5_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV6_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV7_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV8_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV9_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV10_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV11_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV12_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV13_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV14_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV15_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV16_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV17_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV18_INTERRUPT_REG) - - ; Statically initialized data must be copied from ROM to RAM. - ; This is done in the C run-time start-up code (crt0.o). - - ; Jump to the beginning of the application and enable interrupts. - jmp _start - ei - - - - ; Handler for the SI instruction. To perform a system call, the - ; C model uses a trapping mechanism which executes an SI instruction. - ; The Morpho Technologies simulator simply performs a branch to - ; this vector to simulate the SI instruction (this is as the hardware - ; behaves). In order to trigger the simulator that a system call - ; is needed a write into the I/O register at address $40005 to - ; set bit #2 (0x4) is necessary. - ; - ; The above address has been changed to 0x00031C and the bit number - ; is zero. (The manifest constants have been changed to reflect this.) - .global _SOFTIVEC -_SOFTIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(SI_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(SI_IOPORT_ADR) - ori r10, r0, #SI_IOPORT_BIT - stw r10, r9, #$0 - or r0, r0, r0 ; SYS_call is handled by simulator here... - ldw r10, sp, #$0 - or r0, r0, r0 - ldw r9, sp, #$4 - reti r14 - addi sp, sp, #$8 - - - - ; Handler for BREAK instruction. This handler triggers the simulator - ; to send a SIGTRAP signal to gdb by writing to the I/O register at - ; address $40005, setting bit #0 (0x1). - ; - ; The above address has been changed to 0x000304 and the bit number - ; is zero. (The manifest constants have been changed to reflect this.) - .global _BRKIVEC -_BRKIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(BRK_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(BRK_IOPORT_ADR) - ori r10, r0, #BRK_IOPORT_BIT - stw r10, r9, #$0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - ldw r10, sp, #$0 - ldw r9, sp, #$4 - reti r15 - addi sp, sp, #$8 - - - ; The documentation is lacking in the specification of the Overflow - ; Exception generation. The address of the instruction causing the - ; overflow is placed into R15 and the overflow exception interrupt - ; is triggered. So, to continue execution, return to the address - ; of the next instruction (i.e., R15 + one instruction). -_OVFIVEC: - addi r15, r15, #$4 - or r0, r0, r0 - reti r15 - or r0, r0, r0 - - - .global _IVEC_DEFAULT -_IVEC_DEFAULT: - reti r15 - or r0, r0, r0 - - - .section .internal_io, "a", @nobits - .fill 256 ; Fill the first page. - - ; This is the memory-mapped I/O region. - - ; Hardware Interrupt Registers - ;.org 0xfff100 - .global _DEV0_INTERRUPT_REG -_DEV0_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV1_INTERRUPT_REG -_DEV1_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV2_INTERRUPT_REG -_DEV2_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV3_INTERRUPT_REG -_DEV3_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV4_INTERRUPT_REG -_DEV4_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV5_INTERRUPT_REG -_DEV5_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV6_INTERRUPT_REG -_DEV6_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV7_INTERRUPT_REG -_DEV7_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV8_INTERRUPT_REG -_DEV8_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV9_INTERRUPT_REG -_DEV9_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV10_INTERRUPT_REG -_DEV10_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV11_INTERRUPT_REG -_DEV11_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV12_INTERRUPT_REG -_DEV12_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV13_INTERRUPT_REG -_DEV13_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV14_INTERRUPT_REG -_DEV14_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV15_INTERRUPT_REG -_DEV15_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV16_INTERRUPT_REG -_DEV16_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV17_INTERRUPT_REG -_DEV17_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV18_INTERRUPT_REG -_DEV18_INTERRUPT_REG: - .word 0x00000000 - - ; 128 bytes minus ten registers (four bytes per register) - .fill (128 - 19 * 4) - - .global _INTERRUPT_MASK_REG -_INTERRUPT_MASK_REG: - .word 0x00000000 - - ; 128 bytes minus one register (four bytes per register) - .fill (128 - 1 * 4) - - - ;.org 0xfff200 - ; MorphoSys Decoder Registers - .global _MS_DEC_CIRC_BUFF_SEL_REG -_MS_DEC_CIRC_BUFF_SEL_REG: - .word 0x00000000 - - .global _MS_DEC_SKIP_FACTOR_REG -_MS_DEC_SKIP_FACTOR_REG: - .word 0x00000000 - - .global _MS_DEC_CUSTOM_PERM_REG -_MS_DEC_CUSTOM_PERM_REG: - .word 0x00000000 - - .global _MS_DEC_CTXT_BASE_REG -_MS_DEC_CTXT_BASE_REG: - .word 0x00000000 - - .global _MS_DEC_LOOKUP_TBL_REG -_MS_DEC_LOOKUP_TBL_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF0_END_REG -_MS_CIRC_BUFF0_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF0_SIZE_REG -_MS_CIRC_BUFF0_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK0_END_REG -_MS_DATA_BLK0_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK0_SIZE_REG -_MS_DATA_BLK0_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF1_END_REG -_MS_CIRC_BUFF1_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF1_SIZE_REG -_MS_CIRC_BUFF1_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK1_END_REG -_MS_DATA_BLK1_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK1_SIZE_REG -_MS_DATA_BLK1_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF2_END_REG -_MS_CIRC_BUFF2_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF2_SIZE_REG -_MS_CIRC_BUFF2_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK2_END_REG -_MS_DATA_BLK2_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK2_SIZE_REG -_MS_DATA_BLK2_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF3_END_REG -_MS_CIRC_BUFF3_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF3_SIZE_REG -_MS_CIRC_BUFF3_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK3_END_REG -_MS_DATA_BLK3_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK3_SIZE_REG -_MS_DATA_BLK3_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF4_END_REG -_MS_CIRC_BUFF4_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF4_SIZE_REG -_MS_CIRC_BUFF4_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK4_END_REG -_MS_DATA_BLK4_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK4_SIZE_REG -_MS_DATA_BLK4_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF5_END_REG -_MS_CIRC_BUFF5_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF5_SIZE_REG -_MS_CIRC_BUFF5_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK5_END_REG -_MS_DATA_BLK5_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK5_SIZE_REG -_MS_DATA_BLK5_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF6_END_REG -_MS_CIRC_BUFF6_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF6_SIZE_REG -_MS_CIRC_BUFF6_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK6_END_REG -_MS_DATA_BLK6_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK6_SIZE_REG -_MS_DATA_BLK6_SIZE_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF7_END_REG -_MS_CIRC_BUFF7_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF7_SIZE_REG -_MS_CIRC_BUFF7_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLK7_END_REG -_MS_DATA_BLK7_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLK7_SIZE_REG -_MS_DATA_BLK7_SIZE_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC0_REG -_MS_DEC_AUTO_INC0_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC1_REG -_MS_DEC_AUTO_INC1_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC2_REG -_MS_DEC_AUTO_INC2_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC3_REG -_MS_DEC_AUTO_INC3_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC4_REG -_MS_DEC_AUTO_INC4_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC5_REG -_MS_DEC_AUTO_INC5_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC6_REG -_MS_DEC_AUTO_INC6_REG: - .word 0x00000000 - - .global _MS_DEC_AUTO_INC7_REG -_MS_DEC_AUTO_INC7_REG: - .word 0x00000000 - - - ; 256 bytes minus forty-five registers (four bytes per register) - .fill (256 - 45 * 4) - - - - ;.org 0xfff300 - ; Debug Registers - .global _DEBUG_HALT_REG -_DEBUG_HALT_REG: - .word 0x00000000 - - .global _DEBUG_BREAK_REG -_DEBUG_BREAK_REG: - .word 0x00000000 - - ; There are five reserved registers. - .fill (5 * 4) - - .global _DEBUG_SW_SYSREQ_REG -_DEBUG_SW_SYSREQ_REG: - .word 0x00000000 - - ; 256 bytes minus eight registers (four bytes per register) - .fill (256 - 8 * 4) - - - - ;.org 0xfff400 - ; Sequence Generator Registers - .global _SEQ_GEN_CTRL_REG -_SEQ_GEN_CTRL_REG: - .word 0x00000000 - - .global _SEQ_GEN_MASK_REGS -_SEQ_GEN_MASK_REGS: - ; The mask registers consume two pages (less one control register). - ; 512 bytes minus one register (four bytes per register). - .fill (256 + 256 - 1 * 4) - - - - ;.org 0xfff600 - ; Timer Registers - .global _TIMER0_VAL_REG -_TIMER0_VAL_REG: - .word 0x00000000 - - .global _TIMER1_VAL_REG -_TIMER1_VAL_REG: - .word 0x00000000 - - .global _TIMER2_VAL_REG -_TIMER2_VAL_REG: - .word 0x00000000 - - .global _TIMER3_VAL_REG -_TIMER3_VAL_REG: - .word 0x00000000 - - ; 256 bytes minus four registers (four bytes per register) - .fill (256 - 4 * 4) - - - - ;.org 0xfff700 - ; Output Line Control Registers - .global _OUTPUT0_CTRL -_OUTPUT0_CTRL: - .word 0x00000000 - - .global _OUTPUT1_CTRL -_OUTPUT1_CTRL: - .word 0x00000000 - - .global _OUTPUT2_CTRL -_OUTPUT2_CTRL: - .word 0x00000000 - - .global _OUTPUT3_CTRL -_OUTPUT3_CTRL: - .word 0x00000000 - - .global _OUTPUT4_CTRL -_OUTPUT4_CTRL: - .word 0x00000000 - - .global _OUTPUT5_CTRL -_OUTPUT5_CTRL: - .word 0x00000000 - - .global _OUTPUT6_CTRL -_OUTPUT6_CTRL: - .word 0x00000000 - - .global _OUTPUT7_CTRL -_OUTPUT7_CTRL: - .word 0x00000000 - - .global _OUTPUT8_CTRL -_OUTPUT8_CTRL: - .word 0x00000000 - - .global _OUTPUT9_CTRL -_OUTPUT9_CTRL: - .word 0x00000000 - - .global _OUTPUT10_CTRL -_OUTPUT10_CTRL: - .word 0x00000000 - - ;; 128 bytes minus eleven registers (four bytes per register) - ;.fill (128 - 11 * 4) - - .global _INPUT0_CTRL -_INPUT0_CTRL: - .word 0x00000000 - - ;; 128 bytes minus one register (four bytes per register) - ;.fill (128 - 1 * 4) - ; 256 bytes minus twelve registers (four bytes per register) - .fill (256 - 12 * 4) - - - - ;.org 0xfff800 - ; IQ Buffer Registers - .global _IQ_BUFF_CTRL_REG -_IQ_BUFF_CTRL_REG: - .word 0x00000000 - - .global _IQ_BUFF_PARAMETER1_REG -_IQ_BUFF_PARAMETER1_REG: - .word 0x00000000 - - .global _IQ_BUFF_DATA_SIZE1_REG -_IQ_BUFF_DATA_SIZE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_TRANSFER_SIZE1_REG -_IQ_BUFF_TRANSFER_SIZE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_ADDR1_REG -_IQ_BUFF_FB_ADDR1_REG: - .word 0x00000000 - - .global _IQ_BUFF_PARAMETER2_REG -_IQ_BUFF_PARAMETER2_REG: - .word 0x00000000 - - .global _IQ_BUFF_DATA_SIZE2_REG -_IQ_BUFF_DATA_SIZE2_REG: - .word 0x00000000 - - .global _IQ_BUFF_TRANSFER_SIZE2_REG -_IQ_BUFF_TRANSFER_SIZE2_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_ADDR2_REG -_IQ_BUFF_FB_ADDR2_REG: - .word 0x00000000 - - ; 256 bytes minus nine registers (four bytes per register) - .fill (256 - 9 * 4) - - - ;.org 0xfff900 - ; Reserved memory-mapped space. - .fill (0x1000 - 0x900) diff --git a/libgloss/mt/startup-16-003.S b/libgloss/mt/startup-16-003.S deleted file mode 100644 index 9fe23b9..0000000 --- a/libgloss/mt/startup-16-003.S +++ /dev/null @@ -1,838 +0,0 @@ -/* - * $Header$ - * - * interrupt_vectors.s -- the interrupt handler jump table. - * - * - * There are a total of 32 interrupt vector possible, however, only - * 11 of those are currently used (the others are reserved). The - * order of vectors is as follows: - * - * 1. Boot Vector. Vector for power-on/reset. - * 2. Software Vector. Vector for handling the SI instruction (an - * explicit interrupt caused by software). - * 3. Break Vector. Vector for handling the Break instruction. - * 4. Device 0 Vector. Service vector for device zero. - * 5. Device 1 Vector. Service vector for device one. - * 6. Device 2 Vector. Service vector for device two. - * 7. Device 3 Vector. Service vector for device three. - * 8. Device 4 Vector. Service vector for device four. - * 9. Device 5 Vector. Service vector for device five. - * 10. Device 6 Vector. Service vector for device six. - * 11. Device 7 Vector. Service vector for device seven. - * - * The rest of the interrupt vectors are reserved for future use. - * - * - * Each jump table entry consists of the following two instructions: - * - * jmp Label ; Label as appropriate - * nop ; implemented as or r0,r0,r0 - * - * The following labels are reserved for the vectors named above, - * respectively: - * - * _BOOTIVEC, _SOFTIVEC, _BRKIVEC, _DEV0IVEC, _DEV1IVEC, _DEV2IVEC, - * _DEV3IVEC, _DEV4IVEC, _DEV5IVEC, _DEV6IVEC, _DEV7IVEC - * - * 09Jan04 (DJK) Modified internal I/O port definitions for the - * MS1-16-003. - * - * 10Oct01 (DJK) The memory map is finalized and the first 4K of address - * space is now reserved for memory-mapped I/O devices. - * (There is over 2K unused, reserved space in this area.) - * - * 26Sep01 (DJK) The memory map is changed and the device interrupts are - * now memory-mapped. - * - * - * - * Copyright (c) 2001, 2002, 2003, 2004 Morpho Technologies - * - */ - - .section .startup, "a", @progbits - .global __boot_start -__boot_start: -_INTERRUPT_VECTOR_TABLE: - jmp _BOOTIVEC ; Boot vector - or r0, r0, r0 - jmp _SOFTIVEC ; Vector for SI instruction - or r0,r0,r0 - jmp _BRKIVEC ; Vector for Break instruction - or r0,r0,r0 - ; The illegal instruction trap is not implemented. - ;jmp _ILLIVEC ; Vector for illegal instruction - or r0,r0,r0 - or r0,r0,r0 -_RESERVED1_IVEC: - jmp _RESERVED1_IVEC - or r0,r0,r0 -_RESERVED2_IVEC: - jmp _RESERVED2_IVEC - or r0,r0,r0 -_RESERVED3_IVEC: - jmp _RESERVED3_IVEC - or r0,r0,r0 -_RESERVED4_IVEC: - jmp _RESERVED4_IVEC - or r0,r0,r0 - - - .text - - .equ SI_IOPORT_ADR, _DEBUG_SW_SYSREQ_REG - .equ SI_IOPORT_BIT, 0x1 - .equ BRK_IOPORT_ADR, _DEBUG_BREAK_REG - .equ BRK_IOPORT_BIT, 0x1 - - .global _BOOTIVEC -_BOOTIVEC: - ; Initialize the interrupt controller's interrupt vector registers - ldui r1, #%hi16(_IVEC_DEFAULT) - ori r1, r1, #%lo16(_IVEC_DEFAULT) - stw r1, r0, #%lo16(_DEV0_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV1_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV2_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV3_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV4_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV5_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV6_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV7_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV8_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV9_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV10_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV11_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV12_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV13_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV14_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV15_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV16_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV17_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV18_INTERRUPT_REG) - - ; Statically initialized data must be copied from ROM to RAM. - ; This is done in the C run-time start-up code (crt0.o). - - ; Jump to the beginning of the application and enable interrupts. - jmp _start - ei - - - ; Handler for the SI instruction. To perform a system call, the - ; C model uses a trapping mechanism which executes an SI instruction. - ; The Morpho Technologies simulator simply performs a branch to - ; this vector to simulate the SI instruction (this is as the hardware - ; behaves). In order to trigger the simulator that a system call - ; is needed a write into the I/O register at address $40005 to - ; set bit #2 (0x4) is necessary. - ; - ; The above address has been changed to 0x00031C and the bit number - ; is zero. (The manifest constants have been changed to reflect this.) - .global _SOFTIVEC -_SOFTIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(SI_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(SI_IOPORT_ADR) - ori r10, r0, #SI_IOPORT_BIT - stw r10, r9, #$0 - ; SYS_call is handled by simulator here... - or r0, r0, r0 - ldw r10, sp, #$0 - or r0, r0, r0 - ldw r9, sp, #$4 - reti r14 - addi sp, sp, #$8 - - - - .global _BRKIVEC -_BRKIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(BRK_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(BRK_IOPORT_ADR) - ori r10, r0, #BRK_IOPORT_BIT - stw r10, r9, #$0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - ldw r10, sp, #$0 - ldw r9, sp, #$4 - reti r15 - addi sp, sp, #$8 - - -.if 0 - ; Handler for illegal instruction. - .global _ILLIVEC -_ILLIVEC: - reti r15 - or r0, r0, r0 -.endif - - - .global _IVEC_DEFAULT -_IVEC_DEFAULT: - reti r15 - or r0, r0, r0 - - - .section .internal_io, "a", @nobits - .fill 256 ; Fill the first page. - - ; This is the memory-mapped I/O region. - - ; Hardware Interrupt Registers - ;.org 0xfffff100 - .global _DEV0_INTERRUPT_REG -_DEV0_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV1_INTERRUPT_REG -_DEV1_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV2_INTERRUPT_REG -_DEV2_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV3_INTERRUPT_REG -_DEV3_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV4_INTERRUPT_REG -_DEV4_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV5_INTERRUPT_REG -_DEV5_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV6_INTERRUPT_REG -_DEV6_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV7_INTERRUPT_REG -_DEV7_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV8_INTERRUPT_REG -_DEV8_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV9_INTERRUPT_REG -_DEV9_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV10_INTERRUPT_REG -_DEV10_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV11_INTERRUPT_REG -_DEV11_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV12_INTERRUPT_REG -_DEV12_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV13_INTERRUPT_REG -_DEV13_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV14_INTERRUPT_REG -_DEV14_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV15_INTERRUPT_REG -_DEV15_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV16_INTERRUPT_REG -_DEV16_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV17_INTERRUPT_REG -_DEV17_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV18_INTERRUPT_REG -_DEV18_INTERRUPT_REG: - .word 0x00000000 - - ; 128 bytes minus nineteen registers (four bytes per register) - .fill (128 - 19 * 4) - - .global _INTERRUPT_MASK_REG -_INTERRUPT_MASK_REG: - .word 0x00000000 - - .global _INTERRUPT_PENDING_REG -_INTERRUPT_PENDING_REG: - .word 0x00000000 - - ; 16 bytes minus two registers (four bytes per register) - .fill (16 - 2 * 4) - - .global _DEV0_INTERRUPT_LEVEL_REG -_DEV0_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV1_INTERRUPT_LEVEL_REG -_DEV1_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV2_INTERRUPT_LEVEL_REG -_DEV2_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV3_INTERRUPT_LEVEL_REG -_DEV3_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV4_INTERRUPT_LEVEL_REG -_DEV4_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV5_INTERRUPT_LEVEL_REG -_DEV5_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV6_INTERRUPT_LEVEL_REG -_DEV6_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV7_INTERRUPT_LEVEL_REG -_DEV7_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV8_INTERRUPT_LEVEL_REG -_DEV8_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV9_INTERRUPT_LEVEL_REG -_DEV9_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV10_INTERRUPT_LEVEL_REG -_DEV10_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV11_INTERRUPT_LEVEL_REG -_DEV11_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV12_INTERRUPT_LEVEL_REG -_DEV12_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV13_INTERRUPT_LEVEL_REG -_DEV13_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV14_INTERRUPT_LEVEL_REG -_DEV14_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV15_INTERRUPT_LEVEL_REG -_DEV15_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV16_INTERRUPT_LEVEL_REG -_DEV16_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV17_INTERRUPT_LEVEL_REG -_DEV17_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV18_INTERRUPT_LEVEL_REG -_DEV18_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - ; 128 bytes minus twenty-three registers (four bytes per register) - .fill (128 - 23 * 4) - - - ;.org 0xfffff200 - ; MorphoSys Decoder Registers - .global _MS_DEC_CIRC_BUFF_SEL_REG -_MS_DEC_CIRC_BUFF_SEL_REG: - .word 0x00000000 - - .global _MS_DEC_SKIP_FACTOR_REG -_MS_DEC_SKIP_FACTOR_REG: - .word 0x00000000 - - .global _MS_DEC_CUSTOM_PERM_REG -_MS_DEC_CUSTOM_PERM_REG: - .word 0x00000000 - - .global _MS_DEC_CTXT_BASE_REG -_MS_DEC_CTXT_BASE_REG: - .word 0x00000000 - - .global _MS_DEC_LOOKUP_TBL_REG -_MS_DEC_LOOKUP_TBL_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF0_I_REG -_MS_CIRC_BUFF0_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF0_P_REG -_MS_CIRC_BUFF0_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF0_B_REG -_MS_DATA_BUFF0_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF0_S_REG -_MS_DATA_BUFF0_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF1_I_REG -_MS_CIRC_BUFF1_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF1_P_REG -_MS_CIRC_BUFF1_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF1_B_REG -_MS_DATA_BUFF1_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF1_S_REG -_MS_DATA_BUFF1_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF2_I_REG -_MS_CIRC_BUFF2_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF2_P_REG -_MS_CIRC_BUFF2_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF2_B_REG -_MS_DATA_BUFF2_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF2_S_REG -_MS_DATA_BUFF2_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF3_I_REG -_MS_CIRC_BUFF3_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF3_P_REG -_MS_CIRC_BUFF3_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF3_B_REG -_MS_DATA_BUFF3_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF3_S_REG -_MS_DATA_BUFF3_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF4_I_REG -_MS_CIRC_BUFF4_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF4_P_REG -_MS_CIRC_BUFF4_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF4_B_REG -_MS_DATA_BUFF4_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF4_S_REG -_MS_DATA_BUFF4_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF5_I_REG -_MS_CIRC_BUFF5_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF5_P_REG -_MS_CIRC_BUFF5_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF5_B_REG -_MS_DATA_BUFF5_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF5_S_REG -_MS_DATA_BUFF5_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF6_I_REG -_MS_CIRC_BUFF6_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF6_P_REG -_MS_CIRC_BUFF6_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF6_B_REG -_MS_DATA_BUFF6_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF6_S_REG -_MS_DATA_BUFF6_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF7_I_REG -_MS_CIRC_BUFF7_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF7_P_REG -_MS_CIRC_BUFF7_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF7_B_REG -_MS_DATA_BUFF7_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF7_S_REG -_MS_DATA_BUFF7_S_REG: - .word 0x00000000 - - .global _MS_OMEGA_PERM1_REG -_MS_OMEGA_PERM1_REG: - .word 0x00000000 - - .global _MS_WRITE_FB_ADDR_REG -_MS_WRITE_FB_ADDR_REG: - .word 0x00000000 - - .global _MS_OMEGA_PERM2_REG -_MS_OMEGA_PERM2_REG: - .word 0x00000000 - - - ; 256 bytes minus forty registers (four bytes per register) - .fill (256 - 40 * 4) - - - - ;.org 0xfffff300 - ; Debug Registers - .global _DEBUG_HALT_REG -_DEBUG_HALT_REG: - .word 0x00000000 - - .global _DEBUG_BREAK_REG -_DEBUG_BREAK_REG: - .word 0x00000000 - - .global _DEBUG_CRITICAL_REG -_DEBUG_OWNERSHIP_REG: - .word 0x00000000 - - .global _DEBUG_KERNEL_ID_REG -_DEBUG_KERNEL_ID_REG: - .word 0x00000000 - - .global _DEBUG_IRQ_STATUS_REG -_DEBUG_IRQ_STATUS_REG: - .word 0x00000000 - - ; There are two reserved registers. - .fill (2 * 4) - - .global _DEBUG_SW_SYSREQ_REG -_DEBUG_SW_SYSREQ_REG: - .word 0x00000000 - - ; 128 bytes minus eight registers (four bytes per register) - .fill (128 - 8 * 4) - - .global _EXTENDED_GP0_REG -_EXTENDED_GP0_REG: - .word 0x00000000 - - .global _EXTENDED_GP1_REG -_EXTENDED_GP1_REG: - .word 0x00000000 - - .global _EXTENDED_GP2_REG -_EXTENDED_GP2_REG: - .word 0x00000000 - - .global _EXTENDED_GP3_REG -_EXTENDED_GP3_REG: - .word 0x00000000 - - .global _EXTENDED_GP4_REG -_EXTENDED_GP4_REG: - .word 0x00000000 - - .global _EXTENDED_GP5_REG -_EXTENDED_GP5_REG: - .word 0x00000000 - - .global _EXTENDED_GP6_REG -_EXTENDED_GP6_REG: - .word 0x00000000 - - .global _EXTENDED_GP7_REG -_EXTENDED_GP7_REG: - .word 0x00000000 - - .global _MEM_CTRL_EN_NC_MEM_REG -_MEM_CTRL_EN_NC_MEM_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE0_ADDR_REG -_MEM_CTRL_BASE0_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK0_ADDR_REG -_MEM_CTRL_MASK0_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE1_ADDR_REG -_MEM_CTRL_BASE1_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK1_ADDR_REG -_MEM_CTRL_MASK1_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE2_ADDR_REG -_MEM_CTRL_BASE2_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK2_ADDR_REG -_MEM_CTRL_MASK2_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE3_ADDR_REG -_MEM_CTRL_BASE3_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK3_ADDR_REG -_MEM_CTRL_MASK3_ADDR_REG: - .word 0x00000000 - - ; 128 bytes minus seventeen registers (four bytes per register) - .fill (128 - 17 * 4) - - - - ; Reserved memory-map space - .fill (256 + 256) - - - - ;.org 0xfffff600 - ; Timer Registers - .global _TIMER0_VAL_REG -_TIMER0_VAL_REG: - .word 0x00000000 - - .global _TIMER1_VAL_REG -_TIMER1_VAL_REG: - .word 0x00000000 - - .global _TIMER2_VAL_REG -_TIMER2_VAL_REG: - .word 0x00000000 - - .global _TIMER3_VAL_REG -_TIMER3_VAL_REG: - .word 0x00000000 - - ; 256 bytes minus four registers (four bytes per register) - .fill (256 - 4 * 4) - - - - ;.org 0xfffff700 - ; Output Line Control Registers - .global _OUTPUT0_CTRL -_OUTPUT0_CTRL: - .word 0x00000000 - - .global _OUTPUT1_CTRL -_OUTPUT1_CTRL: - .word 0x00000000 - - .global _OUTPUT2_CTRL -_OUTPUT2_CTRL: - .word 0x00000000 - - .global _OUTPUT3_CTRL -_OUTPUT3_CTRL: - .word 0x00000000 - - .global _OUTPUT4_CTRL -_OUTPUT4_CTRL: - .word 0x00000000 - - .global _OUTPUT5_CTRL -_OUTPUT5_CTRL: - .word 0x00000000 - - .global _OUTPUT6_CTRL -_OUTPUT6_CTRL: - .word 0x00000000 - - ; 128 bytes minus seven registers (four bytes per register) - .fill (128 - 7 * 4) - - .global _INPUT0_CTRL -_INPUT0_CTRL: - .word 0x00000000 - - ; 128 bytes minus one register (four bytes per register) - .fill (128 - 1 * 4) - - - - ;.org 0xfffff800 - ; IQ Buffer Registers - .global _IQ_BUFF_CTRL_REG -_IQ_BUFF_CTRL_REG: - .word 0x00000000 - - .global _IQ_BUFF_STATUS_REG -_IQ_BUFF_STATUS_REG: - .word 0x00000000 - - .global _IQ_BUFF_PARAMETER1_REG -_IQ_BUFF_PARAMETER1_REG: - .word 0x00000000 - - .global _IQ_BUFF_TRANSFER_SIZE1_REG -_IQ_BUFF_TRANSFER_SIZE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_BASE1_REG -_IQ_BUFF_FB_BASE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_SIZE1_REG -_IQ_BUFF_FB_SIZE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_PARAMETER2_REG -_IQ_BUFF_PARAMETER2_REG: - .word 0x00000000 - - .global _IQ_BUFF_TRANSFER_SIZE2_REG -_IQ_BUFF_TRANSFER_SIZE2_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_BASE2_REG -_IQ_BUFF_FB_BASE2_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_SIZE2_REG -_IQ_BUFF_FB_SIZE2_REG: - .word 0x00000000 - - ; 256 bytes minus ten registers (four bytes per register) - .fill (256 - 10 * 4) - - - - ;.org 0xfffff900 - ; DMA Controller - .global _DMA_CTRL_REG -_DMA_CTRL_REG: - .word 0x00000000 - - .global _DMA_STATUS_REG -_DMA_STATUS_REG: - .word 0x00000000 - - .global _DMA_CH0_EADDR_REG -_DMA_CH0_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH0_IADDR_REG -_DMA_CH0_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH0_SIZE_REG -_DMA_CH0_SIZE_REG: - .word 0x00000000 - - .global _DMA_CH1_EADDR_REG -_DMA_CH1_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH1_IADDR_REG -_DMA_CH1_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH1_SIZE_REG -_DMA_CH1_SIZE_REG: - .word 0x00000000 - - .global _DMA_CH2_EADDR_REG -_DMA_CH2_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH2_IADDR_REG -_DMA_CH2_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH2_SIZE_REG -_DMA_CH2_SIZE_REG: - .word 0x00000000 - - .global _DMA_CH3_EADDR_REG -_DMA_CH3_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH3_IADDR_REG -_DMA_CH3_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH3_SIZE_REG -_DMA_CH3_SIZE_REG: - .word 0x00000000 - - ; 256 bytes minus fourteen registers (four bytes per register) - .fill (256 - 14 * 4) - - - - ;.org 0xfffffa00 - ; Sequence Generator - .global _SEQ_GEN_CTRL_STATUS_REG -_SEQ_GEN_CTRL_STATUS_REG: - .word 0x00000000 - - .global _SEQ_GEN_MASK_REGS -_SEQ_GEN_MASK_REGS: - .fill (302 * 4) - - .global _SEQ_GEN_SHIFT_REG -_SEQ_GEN_SHIFT_REG: - .word 0x00000000 - - ; 256 bytes minus seven registers (four bytes per register) - .fill (256 - 48 * 4) - - - - ; Reserved memory-map space - .fill (0x1000 - 0xf00) diff --git a/libgloss/mt/startup-64-001.S b/libgloss/mt/startup-64-001.S deleted file mode 100644 index 5ceb42b..0000000 --- a/libgloss/mt/startup-64-001.S +++ /dev/null @@ -1,378 +0,0 @@ -/* - * $Header$ - * - * interrupt_vectors.s -- the interrupt handler jump table. - * - * - * There are a total of 32 interrupt vector possible, however, only - * 11 of those are currently used (the others are reserved). The - * order of vectors is as follows: - * - * 1. Boot Vector. Vector for power-on/reset. - * 2. Software Vector. Vector for handling the SI instruction (an - * explicit interrupt caused by software). - * 3. Break Vector. Vector for handling the Break instruction. - * 4. Device 0 Vector. Service vector for device zero. - * 5. Device 1 Vector. Service vector for device one. - * 6. Device 2 Vector. Service vector for device two. - * 7. Device 3 Vector. Service vector for device three. - * 8. Device 4 Vector. Service vector for device four. - * 9. Device 5 Vector. Service vector for device five. - * 10. Device 6 Vector. Service vector for device six. - * 11. Device 7 Vector. Service vector for device seven. - * - * The rest of the interrupt vectors are reserved for future use. - * - * - * Each jump table entry consists of the following two instructions: - * - * jmp Label ; Label as appropriate - * nop ; implemented as or r0,r0,r0 - * - * The following labels are reserved for the vectors named above, - * respectively: - * - * _BOOTIVEC, _SOFTIVEC, _BRKIVEC, _DEV0IVEC, _DEV1IVEC, _DEV2IVEC, - * _DEV3IVEC, _DEV4IVEC, _DEV5IVEC, _DEV6IVEC, _DEV7IVEC - * - * - * 26Sep01 (DJK) The memory map is changed and the device interrupts are - * now memory-mapped. - * - * 10Oct01 (DJK) The memory map is finalized and the first 4K of address - * space is now reserved for memory-mapped I/O devices. - * (There is over 2K unused, reserved space in this area.) - * - * 27Jul02 (DJK) Fixed the address for the interrupt mask register. Old - * documentation stated the port address as 0x140, but - * the implementation uses 0x13c. - * - * 30Jul02 (DJK) Added support for printf. This only supports output to - * stderr and stdout. Using the message box interface, - * a (newly defined) message or series of messages is - * passed to the controller to output bytes as text to - * the debug console. These messages are constructed in - * the interrupt handler for the SI instruction. - * With this implementation, the user is unable to - * utilize the message box interface in applications as - * specialized interrupt handlers for the external - * interrupts are necessary. - * - * - * - * Copyright (c) 2001, 2002, 2003, 2004 Morpho Technologies, Inc. - * - */ - - .section .startup, "a", @progbits - .global __boot_start -_INTERRUPT_VECTOR_TABLE: -__boot_start: - jmp _BOOTIVEC ; Boot vector - or r0, r0, r0 - jmp _SOFTIVEC ; Vector for SI instruction - or r0,r0,r0 - jmp _BRKIVEC ; Vector for Break instruction - or r0,r0,r0 - - - ; This is the memory-mapped I/O region. - - ; Hardware Interrupt Registers - .org 0x100 - .global _DEV0_INTERRUPT_REG -_DEV0_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV1_INTERRUPT_REG -_DEV1_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV2_INTERRUPT_REG -_DEV2_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV3_INTERRUPT_REG -_DEV3_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV4_INTERRUPT_REG -_DEV4_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV5_INTERRUPT_REG -_DEV5_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV6_INTERRUPT_REG -_DEV6_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV7_INTERRUPT_REG -_DEV7_INTERRUPT_REG: - .word 0x00000000 - - ; 60 bytes minus eight registers (four bytes per register) - .fill (60 - 8 * 4) - - .global _INTERRUPT_MASK_REG -_INTERRUPT_MASK_REG: - .word 0x00000000 - - ; 256 bytes minus sixteen registers (four bytes per register) - .fill (256 - 16 * 4) - - - - .org 0x200 - ; MorphoSys Decoder Registers - .global _MS_DEC_AUTO_INCREMENT_REG -_MS_DEC_AUTO_INCREMENT_REG: - .word 0x00000000 - - .global _MS_DEC_SKIP_FACTOR_REG -_MS_DEC_SKIP_FACTOR_REG: - .word 0x00000000 - - .global _MS_DEC_CUSTOM_PERMUTATION_REG -_MS_DEC_CUSTOM_PERMUTATION_REG: - .word 0x00000000 - - .global _MS_DEC_CONTEXT_BASE_REG -_MS_DEC_CONTEXT_BASE_REG: - .word 0x00000000 - - .global _MS_DEC_LOOKUP_TABLE_BASE_REG -_MS_DEC_LOOKUP_TABLE_BASE_REG: - .word 0x00000000 - - .global _MS_CIRCULAR_BUFFER_END_REG -_MS_CIRCULAR_BUFFER_END_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRCULAR_BUFFER_SIZE_REG -_MS_CIRCULAR_BUFFER_SIZE_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BLOCK_END_REG -_MS_DATA_BLOCK_END_REG: - .word 0x00000000 - - .global _MS_DATA_BLOCK_SIZE_REG -_MS_DATA_BLOCK_SIZE_REG: - .word 0x00000000 - - ; 256 bytes minus nine registers (four bytes per register) - .fill (256 - 9 * 4) - - - - .org 0x300 - ; Debug Registers - .global _DEBUG_HALT_REG -_DEBUG_HALT_REG: - .word 0x00000000 - - .global _DEBUG_BREAK_REG -_DEBUG_BREAK_REG: - .word 0x00000000 - - .global _DEBUG_HW_RESERVED0_REG -_DEBUG_HW_RESERVED0_REG: - .word 0x00000000 - - .global _DEBUG_HW_RESERVED1_REG -_DEBUG_HW_RESERVED1_REG: - .word 0x00000000 - - .global _DEBUG_HW_RESERVED2_REG -_DEBUG_HW_RESERVED2_REG: - .word 0x00000000 - - .global _DEBUG_HW_RESERVED3_REG -_DEBUG_HW_RESERVED3_REG: - .word 0x00000000 - - .global _DEBUG_HW_RESERVED4_REG -_DEBUG_HW_RESERVED4_REG: - .word 0x00000000 - - .global _DEBUG_SW_SYSREQ_REG -_DEBUG_SW_SYSREQ_REG: - .word 0x00000000 - - ; 256 bytes minus eight registers (four bytes per register) - .fill (256 - 8 * 4) - - - - .org 0x400 - ; Sequence Generator Registers -_SEQ_GEN_REGS: - .fill 256 - - - - .org 0x500 -_RESERVED_SEQ_GEN_REGS: - .fill 256 - - - - .org 0x600 - .global _TIMER0_VAL_REG -_TIMER0_VAL_REG: - .word 0x00000000 - - .global _TIMER0_CTRL_REG -_TIMER0_CTRL_REG: - .word 0x00000000 - - .global _TIMER1_VAL_REG -_TIMER1_VAL_REG: - .word 0x00000000 - - .global _TIMER1_CTRL_REG -_TIMER1_CTRL_REG: - .word 0x00000000 - - .global _TIMER2_VAL_REG -_TIMER2_VAL_REG: - .word 0x00000000 - - .global _TIMER2_CTRL_REG -_TIMER2_CTRL_REG: - .word 0x00000000 - - ; 256 bytes minus six registers (four bytes per register) - .fill (256 - 6 * 4) - - - - .org 0x700 - .global _OUTPUT0_CONTROL -_OUTPUT0_CONTROL: - .word 0x00000000 - - .global _OUTPUT1_CONTROL -_OUTPUT1_CONTROL: - .word 0x00000000 - - .global _OUTPUT2_CONTROL -_OUTPUT2_CONTROL: - .word 0x00000000 - - .global _OUTPUT3_CONTROL -_OUTPUT3_CONTROL: - .word 0x00000000 - - .global _OUTPUT4_CONTROL -_OUTPUT4_CONTROL: - .word 0x00000000 - - .global _OUTPUT5_CONTROL -_OUTPUT5_CONTROL: - .word 0x00000000 - - .global _OUTPUT6_CONTROL -_OUTPUT6_CONTROL: - .word 0x00000000 - - .global _OUTPUT7_CONTROL -_OUTPUT7_CONTROL: - .word 0x00000000 - - ; 256 bytes minus eight registers (four bytes per register) - .fill (256 - 8 * 4) - - - - .org 0x800 - ; Reserved memory-mapped space. - .fill (0x1000 - 0x800) - - - - .text - - .equ SI_IOPORT_ADR, _DEBUG_SW_SYSREQ_REG - .equ SI_IOPORT_BIT, 0x1 - .equ BRK_IOPORT_ADR, _DEBUG_BREAK_REG - .equ BRK_IOPORT_BIT, 0x1 - - .global _BOOTIVEC -_BOOTIVEC: - - ; Initialize the interrupt controller's interrupt vector registers - ; for devices zero through seven. - ldui r1, #%hi16(_IVEC_DEFAULT) - ori r1, r1, #%lo16(_IVEC_DEFAULT) - stw r1, r0, #%lo16(_DEV0_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV1_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV2_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV3_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV4_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV5_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV6_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV7_INTERRUPT_REG) - - ; Jump to the beginning of the application and enable interrupts. - jmp _start - ei - - - - ; Handler for the SI instruction. To perform a system call, the - ; C model uses a trapping mechanism which executes an SI instruction. - ; The Morpho Technologies simulator simply performs a branch to - ; this vector to simulate the SI instruction (this is as the hardware - ; behaves). In order to trigger the simulator that a system call - ; is needed, a write into the I/O register at address $40005 to - ; set bit #2 (0x4) is necessary. - ; - ; The above address has been changed to 0x31C and the bit number - ; is zero. (The manifest constants have been changed to reflect this.) - ; - .global _SOFTIVEC -_SOFTIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(SI_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(SI_IOPORT_ADR) - ori r10, r0, #SI_IOPORT_BIT - stw r10, r9, #$0 - ; SYS_call is handled by simulator here... - or r0, r0, r0 - ldw r10, sp, #$0 - or r0, r0, r0 - ldw r9, sp, #$4 - reti r14 - addi sp, sp, #$8 - - - - .global _BRKIVEC -_BRKIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(BRK_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(BRK_IOPORT_ADR) - ori r10, r0, #BRK_IOPORT_BIT - stw r10, r9, #$0 - or r0, r0, r0 - ldw r10, sp, #$0 - subi r15, r15, #$4 ; Backup to address of break - ldw r9, sp, #$4 - reti r15 - addi sp, sp, #$8 - - - - .global _IVEC_DEFAULT -_IVEC_DEFAULT: - reti r15 - or r0, r0, r0 diff --git a/libgloss/mt/startup-ms2.S b/libgloss/mt/startup-ms2.S deleted file mode 100644 index 846c72c..0000000 --- a/libgloss/mt/startup-ms2.S +++ /dev/null @@ -1,840 +0,0 @@ -/* - * - * interrupt_vectors.s -- the interrupt handler jump table. - * - * - * There are a total of 32 interrupt vector possible, however, only - * 11 of those are currently used (the others are reserved). The - * order of vectors is as follows: - * - * 1. Boot Vector. Vector for power-on/reset. - * 2. Software Vector. Vector for handling the SI instruction (an - * explicit interrupt caused by software). - * 3. Break Vector. Vector for handling the Break instruction. - * 4. Device 0 Vector. Service vector for device zero. - * 5. Device 1 Vector. Service vector for device one. - * 6. Device 2 Vector. Service vector for device two. - * 7. Device 3 Vector. Service vector for device three. - * 8. Device 4 Vector. Service vector for device four. - * 9. Device 5 Vector. Service vector for device five. - * 10. Device 6 Vector. Service vector for device six. - * 11. Device 7 Vector. Service vector for device seven. - * - * The rest of the interrupt vectors are reserved for future use. - * - * - * Each jump table entry consists of the following two instructions: - * - * jmp Label ; Label as appropriate - * nop ; implemented as or r0,r0,r0 - * - * The following labels are reserved for the vectors named above, - * respectively: - * - * _BOOTIVEC, _SOFTIVEC, _BRKIVEC, _DEV0IVEC, _DEV1IVEC, _DEV2IVEC, - * _DEV3IVEC, _DEV4IVEC, _DEV5IVEC, _DEV6IVEC, _DEV7IVEC - * - * 28Apr05 (DJK) Added support for the overflow vector. - * - * XXXXXXX (DJK) Modified for the MS2 target - * - * 09Jan04 (DJK) Modified internal I/O port definitions for the - * MS1-16-003. - * - * 10Oct01 (DJK) The memory map is finalized and the first 4K of address - * space is now reserved for memory-mapped I/O devices. - * (There is over 2K unused, reserved space in this area.) - * - * 26Sep01 (DJK) The memory map is changed and the device interrupts are - * now memory-mapped. - * - * - * - * Copyright (c) 2001, 2002, 2003, 2004 Morpho Technologies - * - */ - - .section .startup, "a", @progbits - .global __boot_start -__boot_start: -_INTERRUPT_VECTOR_TABLE: - jmp _BOOTIVEC ; Boot vector - or r0, r0, r0 - jmp _SOFTIVEC ; Vector for SI instruction - or r0, r0, r0 - jmp _BRKIVEC ; Vector for Break instruction - or r0, r0, r0 - ; The illegal instruction trap is not implemented. -_RESERVED1_IVEC: - jmp _RESERVED1_IVEC - or r0, r0, r0 - jmp _OVFIVEC - or r0, r0, r0 -_RESERVED2_IVEC: - jmp _RESERVED2_IVEC - or r0, r0, r0 -_RESERVED3_IVEC: - jmp _RESERVED3_IVEC - or r0, r0, r0 -_RESERVED4_IVEC: - jmp _RESERVED4_IVEC - or r0, r0, r0 - - - .text - - .equ SI_IOPORT_ADR, _DEBUG_SW_SYSREQ_REG - .equ SI_IOPORT_BIT, 0x1 - .equ BRK_IOPORT_ADR, _DEBUG_BREAK_REG - .equ BRK_IOPORT_BIT, 0x1 - - .global _BOOTIVEC -_BOOTIVEC: - ; Initialize the interrupt controller's interrupt vector registers - ldui r1, #%hi16(_IVEC_DEFAULT) - ori r1, r1, #%lo16(_IVEC_DEFAULT) - stw r1, r0, #%lo16(_DEV0_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV1_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV2_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV3_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV4_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV5_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV6_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV7_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV8_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV9_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV10_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV11_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV12_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV13_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV14_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV15_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV16_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV17_INTERRUPT_REG) - stw r1, r0, #%lo16(_DEV18_INTERRUPT_REG) - - ; Statically initialized data must be copied from ROM to RAM. - ; This is done in the C run-time start-up code (crt0.o). - - ; Jump to the beginning of the application and enable interrupts. - jmp _start - ei - - - ; Handler for the SI instruction. To perform a system call, the - ; C model uses a trapping mechanism which executes an SI instruction. - ; The Morpho Technologies simulator simply performs a branch to - ; this vector to simulate the SI instruction (this is as the hardware - ; behaves). In order to trigger the simulator that a system call - ; is needed a write into the I/O register at address $40005 to - ; set bit #2 (0x4) is necessary. - ; - ; The above address has been changed to 0x00031C and the bit number - ; is zero. (The manifest constants have been changed to reflect this.) - .global _SOFTIVEC -_SOFTIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(SI_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(SI_IOPORT_ADR) - ori r10, r0, #SI_IOPORT_BIT - stw r10, r9, #$0 - ; SYS_call is handled by simulator here... - or r0, r0, r0 - ldw r10, sp, #$0 - or r0, r0, r0 - ldw r9, sp, #$4 - reti r14 - addi sp, sp, #$8 - - - - .global _BRKIVEC -_BRKIVEC: - ; Build a frame to save registers. - subi sp, sp, #$8 - stw r9, sp, #$4 - ldui r9, #%hi16(BRK_IOPORT_ADR) - stw r10, sp, #$0 - ori r9, r9, #%lo16(BRK_IOPORT_ADR) - ori r10, r0, #BRK_IOPORT_BIT - stw r10, r9, #$0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - or r0, r0, r0 - ldw r10, sp, #$0 - ldw r9, sp, #$4 - reti r15 - addi sp, sp, #$8 - - - .global _OVFIVEC -_OVFIVEC: - addi r15, r15, #$4 - or r0, r0, r0 - or r0, r0, r0 ; added 06Sep05 - reti r15 - or r0, r0, r0 - - - .global _IVEC_DEFAULT -_IVEC_DEFAULT: - reti r15 - or r0, r0, r0 - - - .section .internal_io, "a", @nobits - .fill 256 ; Fill the first page. - - ; This is the memory-mapped I/O region. - - ; Hardware Interrupt Registers - ;.org 0xfffff100 - .global _DEV0_INTERRUPT_REG -_DEV0_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV1_INTERRUPT_REG -_DEV1_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV2_INTERRUPT_REG -_DEV2_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV3_INTERRUPT_REG -_DEV3_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV4_INTERRUPT_REG -_DEV4_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV5_INTERRUPT_REG -_DEV5_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV6_INTERRUPT_REG -_DEV6_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV7_INTERRUPT_REG -_DEV7_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV8_INTERRUPT_REG -_DEV8_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV9_INTERRUPT_REG -_DEV9_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV10_INTERRUPT_REG -_DEV10_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV11_INTERRUPT_REG -_DEV11_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV12_INTERRUPT_REG -_DEV12_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV13_INTERRUPT_REG -_DEV13_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV14_INTERRUPT_REG -_DEV14_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV15_INTERRUPT_REG -_DEV15_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV16_INTERRUPT_REG -_DEV16_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV17_INTERRUPT_REG -_DEV17_INTERRUPT_REG: - .word 0x00000000 - - .global _DEV18_INTERRUPT_REG -_DEV18_INTERRUPT_REG: - .word 0x00000000 - - ; 128 bytes minus nineteen registers (four bytes per register) - .fill (128 - 19 * 4) - - .global _INTERRUPT_MASK_REG -_INTERRUPT_MASK_REG: - .word 0x00000000 - - .global _INTERRUPT_PENDING_REG -_INTERRUPT_PENDING_REG: - .word 0x00000000 - - ; 16 bytes minus two registers (four bytes per register) - .fill (16 - 2 * 4) - - .global _DEV0_INTERRUPT_LEVEL_REG -_DEV0_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV1_INTERRUPT_LEVEL_REG -_DEV1_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV2_INTERRUPT_LEVEL_REG -_DEV2_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV3_INTERRUPT_LEVEL_REG -_DEV3_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV4_INTERRUPT_LEVEL_REG -_DEV4_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV5_INTERRUPT_LEVEL_REG -_DEV5_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV6_INTERRUPT_LEVEL_REG -_DEV6_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV7_INTERRUPT_LEVEL_REG -_DEV7_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV8_INTERRUPT_LEVEL_REG -_DEV8_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV9_INTERRUPT_LEVEL_REG -_DEV9_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV10_INTERRUPT_LEVEL_REG -_DEV10_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV11_INTERRUPT_LEVEL_REG -_DEV11_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV12_INTERRUPT_LEVEL_REG -_DEV12_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV13_INTERRUPT_LEVEL_REG -_DEV13_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV14_INTERRUPT_LEVEL_REG -_DEV14_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV15_INTERRUPT_LEVEL_REG -_DEV15_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV16_INTERRUPT_LEVEL_REG -_DEV16_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV17_INTERRUPT_LEVEL_REG -_DEV17_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - .global _DEV18_INTERRUPT_LEVEL_REG -_DEV18_INTERRUPT_LEVEL_REG: - .word 0x00000000 - - ; 128 bytes minus twenty-three registers (four bytes per register) - .fill (128 - 23 * 4) - - - ;.org 0xfffff200 - ; MorphoSys Decoder Registers - .global _MS_DEC_CIRC_BUFF_SEL_REG -_MS_DEC_CIRC_BUFF_SEL_REG: - .word 0x00000000 - - .global _MS_DEC_SKIP_FACTOR_REG -_MS_DEC_SKIP_FACTOR_REG: - .word 0x00000000 - - .global _MS_DEC_CUSTOM_PERM_REG -_MS_DEC_CUSTOM_PERM_REG: - .word 0x00000000 - - .global _MS_DEC_CTXT_BASE_REG -_MS_DEC_CTXT_BASE_REG: - .word 0x00000000 - - .global _MS_DEC_LOOKUP_TBL_REG -_MS_DEC_LOOKUP_TBL_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF0_I_REG -_MS_CIRC_BUFF0_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF0_P_REG -_MS_CIRC_BUFF0_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF0_B_REG -_MS_DATA_BUFF0_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF0_S_REG -_MS_DATA_BUFF0_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF1_I_REG -_MS_CIRC_BUFF1_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF1_P_REG -_MS_CIRC_BUFF1_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF1_B_REG -_MS_DATA_BUFF1_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF1_S_REG -_MS_DATA_BUFF1_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF2_I_REG -_MS_CIRC_BUFF2_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF2_P_REG -_MS_CIRC_BUFF2_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF2_B_REG -_MS_DATA_BUFF2_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF2_S_REG -_MS_DATA_BUFF2_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF3_I_REG -_MS_CIRC_BUFF3_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF3_P_REG -_MS_CIRC_BUFF3_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF3_B_REG -_MS_DATA_BUFF3_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF3_S_REG -_MS_DATA_BUFF3_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF4_I_REG -_MS_CIRC_BUFF4_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF4_P_REG -_MS_CIRC_BUFF4_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF4_B_REG -_MS_DATA_BUFF4_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF4_S_REG -_MS_DATA_BUFF4_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF5_I_REG -_MS_CIRC_BUFF5_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF5_P_REG -_MS_CIRC_BUFF5_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF5_B_REG -_MS_DATA_BUFF5_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF5_S_REG -_MS_DATA_BUFF5_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF6_I_REG -_MS_CIRC_BUFF6_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF6_P_REG -_MS_CIRC_BUFF6_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF6_B_REG -_MS_DATA_BUFF6_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF6_S_REG -_MS_DATA_BUFF6_S_REG: - .word 0x00000000 - - .global _MS_CIRC_BUFF7_I_REG -_MS_CIRC_BUFF7_I_REG: - .word (__FRAME_BUFFER_END) - - .global _MS_CIRC_BUFF7_P_REG -_MS_CIRC_BUFF7_P_REG: - .word __FRAME_BUFFER_SIZE - - .global _MS_DATA_BUFF7_B_REG -_MS_DATA_BUFF7_B_REG: - .word 0x00000000 - - .global _MS_DATA_BUFF7_S_REG -_MS_DATA_BUFF7_S_REG: - .word 0x00000000 - - .global _MS_OMEGA_PERM1_REG -_MS_OMEGA_PERM1_REG: - .word 0x00000000 - - .global _MS_WRITE_FB_ADDR_REG -_MS_WRITE_FB_ADDR_REG: - .word 0x00000000 - - .global _MS_OMEGA_PERM2_REG -_MS_OMEGA_PERM2_REG: - .word 0x00000000 - - - ; 256 bytes minus forty registers (four bytes per register) - .fill (256 - 40 * 4) - - - - ;.org 0xfffff300 - ; Debug Registers - .global _DEBUG_HALT_REG -_DEBUG_HALT_REG: - .word 0x00000000 - - .global _DEBUG_BREAK_REG -_DEBUG_BREAK_REG: - .word 0x00000000 - - .global _DEBUG_CRITICAL_REG -_DEBUG_OWNERSHIP_REG: - .word 0x00000000 - - .global _DEBUG_KERNEL_ID_REG -_DEBUG_KERNEL_ID_REG: - .word 0x00000000 - - .global _DEBUG_IRQ_STATUS_REG -_DEBUG_IRQ_STATUS_REG: - .word 0x00000000 - - ; There are two reserved registers. - .fill (2 * 4) - - .global _DEBUG_SW_SYSREQ_REG -_DEBUG_SW_SYSREQ_REG: - .word 0x00000000 - - ; 128 bytes minus eight registers (four bytes per register) - .fill (128 - 8 * 4) - - .global _EXTENDED_GP0_REG -_EXTENDED_GP0_REG: - .word 0x00000000 - - .global _EXTENDED_GP1_REG -_EXTENDED_GP1_REG: - .word 0x00000000 - - .global _EXTENDED_GP2_REG -_EXTENDED_GP2_REG: - .word 0x00000000 - - .global _EXTENDED_GP3_REG -_EXTENDED_GP3_REG: - .word 0x00000000 - - .global _EXTENDED_GP4_REG -_EXTENDED_GP4_REG: - .word 0x00000000 - - .global _EXTENDED_GP5_REG -_EXTENDED_GP5_REG: - .word 0x00000000 - - .global _EXTENDED_GP6_REG -_EXTENDED_GP6_REG: - .word 0x00000000 - - .global _EXTENDED_GP7_REG -_EXTENDED_GP7_REG: - .word 0x00000000 - - .global _MEM_CTRL_EN_NC_MEM_REG -_MEM_CTRL_EN_NC_MEM_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE0_ADDR_REG -_MEM_CTRL_BASE0_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK0_ADDR_REG -_MEM_CTRL_MASK0_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE1_ADDR_REG -_MEM_CTRL_BASE1_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK1_ADDR_REG -_MEM_CTRL_MASK1_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE2_ADDR_REG -_MEM_CTRL_BASE2_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK2_ADDR_REG -_MEM_CTRL_MASK2_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_BASE3_ADDR_REG -_MEM_CTRL_BASE3_ADDR_REG: - .word 0x00000000 - - .global _MEM_CTRL_MASK3_ADDR_REG -_MEM_CTRL_MASK3_ADDR_REG: - .word 0x00000000 - - ; 128 bytes minus seventeen registers (four bytes per register) - .fill (128 - 17 * 4) - - - - ; Reserved memory-map space - .fill (256 + 256) - - - - ;.org 0xfffff600 - ; Timer Registers - .global _TIMER0_VAL_REG -_TIMER0_VAL_REG: - .word 0x00000000 - - .global _TIMER1_VAL_REG -_TIMER1_VAL_REG: - .word 0x00000000 - - .global _TIMER2_VAL_REG -_TIMER2_VAL_REG: - .word 0x00000000 - - .global _TIMER3_VAL_REG -_TIMER3_VAL_REG: - .word 0x00000000 - - ; 256 bytes minus four registers (four bytes per register) - .fill (256 - 4 * 4) - - - - ;.org 0xfffff700 - ; Output Line Control Registers - .global _OUTPUT0_CTRL -_OUTPUT0_CTRL: - .word 0x00000000 - - .global _OUTPUT1_CTRL -_OUTPUT1_CTRL: - .word 0x00000000 - - .global _OUTPUT2_CTRL -_OUTPUT2_CTRL: - .word 0x00000000 - - .global _OUTPUT3_CTRL -_OUTPUT3_CTRL: - .word 0x00000000 - - .global _OUTPUT4_CTRL -_OUTPUT4_CTRL: - .word 0x00000000 - - .global _OUTPUT5_CTRL -_OUTPUT5_CTRL: - .word 0x00000000 - - .global _OUTPUT6_CTRL -_OUTPUT6_CTRL: - .word 0x00000000 - - ; 128 bytes minus seven registers (four bytes per register) - .fill (128 - 7 * 4) - - .global _INPUT0_CTRL -_INPUT0_CTRL: - .word 0x00000000 - - ; 128 bytes minus one register (four bytes per register) - .fill (128 - 1 * 4) - - - - ;.org 0xfffff800 - ; IQ Buffer Registers - .global _IQ_BUFF_CTRL_REG -_IQ_BUFF_CTRL_REG: - .word 0x00000000 - - .global _IQ_BUFF_STATUS_REG -_IQ_BUFF_STATUS_REG: - .word 0x00000000 - - .global _IQ_BUFF_PARAMETER1_REG -_IQ_BUFF_PARAMETER1_REG: - .word 0x00000000 - - .global _IQ_BUFF_TRANSFER_SIZE1_REG -_IQ_BUFF_TRANSFER_SIZE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_BASE1_REG -_IQ_BUFF_FB_BASE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_SIZE1_REG -_IQ_BUFF_FB_SIZE1_REG: - .word 0x00000000 - - .global _IQ_BUFF_PARAMETER2_REG -_IQ_BUFF_PARAMETER2_REG: - .word 0x00000000 - - .global _IQ_BUFF_TRANSFER_SIZE2_REG -_IQ_BUFF_TRANSFER_SIZE2_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_BASE2_REG -_IQ_BUFF_FB_BASE2_REG: - .word 0x00000000 - - .global _IQ_BUFF_FB_SIZE2_REG -_IQ_BUFF_FB_SIZE2_REG: - .word 0x00000000 - - ; 256 bytes minus ten registers (four bytes per register) - .fill (256 - 10 * 4) - - - - ;.org 0xfffff900 - ; DMA Controller - .global _DMA_CTRL_REG -_DMA_CTRL_REG: - .word 0x00000000 - - .global _DMA_STATUS_REG -_DMA_STATUS_REG: - .word 0x00000000 - - .global _DMA_CH0_EADDR_REG -_DMA_CH0_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH0_IADDR_REG -_DMA_CH0_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH0_SIZE_REG -_DMA_CH0_SIZE_REG: - .word 0x00000000 - - .global _DMA_CH1_EADDR_REG -_DMA_CH1_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH1_IADDR_REG -_DMA_CH1_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH1_SIZE_REG -_DMA_CH1_SIZE_REG: - .word 0x00000000 - - .global _DMA_CH2_EADDR_REG -_DMA_CH2_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH2_IADDR_REG -_DMA_CH2_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH2_SIZE_REG -_DMA_CH2_SIZE_REG: - .word 0x00000000 - - .global _DMA_CH3_EADDR_REG -_DMA_CH3_EADDR_REG: - .word 0x00000000 - - .global _DMA_CH3_IADDR_REG -_DMA_CH3_IADDR_REG: - .word 0x00000000 - - .global _DMA_CH3_SIZE_REG -_DMA_CH3_SIZE_REG: - .word 0x00000000 - - ; 256 bytes minus fourteen registers (four bytes per register) - .fill (256 - 14 * 4) - - - - ;.org 0xfffffa00 - ; Sequence Generator - .global _SEQ_GEN_CTRL_STATUS_REG -_SEQ_GEN_CTRL_STATUS_REG: - .word 0x00000000 - - .global _SEQ_GEN_MASK_REGS -_SEQ_GEN_MASK_REGS: - .fill (302 * 4) - - .global _SEQ_GEN_SHIFT_REG -_SEQ_GEN_SHIFT_REG: - .word 0x00000000 - - ; 256 bytes minus seven registers (four bytes per register) - .fill (256 - 48 * 4) - - - - ; Reserved memory-map space - .fill (0x1000 - 0xf00) diff --git a/libgloss/mt/stat.c b/libgloss/mt/stat.c deleted file mode 100644 index 9a6ca7c..0000000 --- a/libgloss/mt/stat.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -stat (const char *path, struct stat *st) - -{ - return TRAP0 (SYS_stat, path, st, 0); -} diff --git a/libgloss/mt/time.c b/libgloss/mt/time.c deleted file mode 100644 index 2df8d48..0000000 --- a/libgloss/mt/time.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -time_t -time (time_t *tloc) -{ - return TRAP0 (SYS_time, tloc, 0, 0); -} diff --git a/libgloss/mt/times.c b/libgloss/mt/times.c deleted file mode 100644 index b804be4..0000000 --- a/libgloss/mt/times.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" -#include "sys/times.h" - - -clock_t -times (struct tms *buffer) -{ - return TRAP0 (SYS_times, buffer, 0, 0); -} diff --git a/libgloss/mt/trap.S b/libgloss/mt/trap.S deleted file mode 100644 index 9fca720..0000000 --- a/libgloss/mt/trap.S +++ /dev/null @@ -1,34 +0,0 @@ -;; -;; The errno will be in r5 if r11 is -1. -;; - .text - .global __trap0 -__trap0: - ;; non-leaf function so need to create stack frame to - ;; store ra and fp - subi sp, sp, #16 - stw ra, sp, #12 - or r0, r0, r0 ;; nop - stw fp, sp, #8 - or fp, sp, sp - stw r5, sp, #4 - or r0, r0, r0 ;; nop - stw r6, sp, #0 - addi r6, r0, #$-1 - si r14 - or r0, r0, r0 ;; nop - brne r11, r6, .L0 - ldui r6, #%hi16(errno) - addui r6, r6, #%lo16(errno) - stw r5, r6, #0 - or r0, r0, r0 ;; nop -.L0: - ldw r6, sp, #0 - or r0, r0, r0 ;; nop - ldw r5, sp, #4 - or r0, r0, r0 ;; nop - ldw ra, sp, #12 - or r0, r0, r0 ;; nop - ldw fp, sp, #8 - jal r0, r14 - addi sp, sp, #16 diff --git a/libgloss/mt/trap.h b/libgloss/mt/trap.h deleted file mode 100644 index 27636c0..0000000 --- a/libgloss/mt/trap.h +++ /dev/null @@ -1,5 +0,0 @@ -#include "syscall.h" - -int __trap0 (); - -#define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3)) diff --git a/libgloss/mt/unlink.c b/libgloss/mt/unlink.c deleted file mode 100644 index a620e89..0000000 --- a/libgloss/mt/unlink.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -unlink () -{ - return -1; -} diff --git a/libgloss/mt/utime.c b/libgloss/mt/utime.c deleted file mode 100644 index 3fce7e3..0000000 --- a/libgloss/mt/utime.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -utime (path, times) - const char *path; - char *times; -{ - return TRAP0 (SYS_utime, path, times, 0); -} diff --git a/libgloss/mt/write.c b/libgloss/mt/write.c deleted file mode 100644 index 88b5ff8..0000000 --- a/libgloss/mt/write.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <_ansi.h> -#include <sys/types.h> -#include <sys/stat.h> -#include "trap.h" - - -int -write ( int file, - char *ptr, - size_t len) -{ - return TRAP0 (SYS_write, file, ptr, len); -} diff --git a/libgloss/pa/Makefile.in b/libgloss/pa/Makefile.in index 03323c3..f33c15a 100644 --- a/libgloss/pa/Makefile.in +++ b/libgloss/pa/Makefile.in @@ -10,7 +10,6 @@ # the new terms are clearly indicated on the first page of each file where # they apply. # -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -129,13 +128,13 @@ distclean maintainer-clean realclean: clean .PHONY: install info install-info clean-info install: - $(INSTALL_PROGRAM) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) + $(INSTALL_PROGRAM) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) # install Oki stuff - $(INSTALL_PROGRAM) $(OKI_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(OKI_BSP) - $(INSTALL_DATA) ${srcdir}/op50n.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/op50n.ld + $(INSTALL_PROGRAM) $(OKI_BSP) $(tooldir)/lib${MULTISUBDIR}/$(OKI_BSP) + $(INSTALL_DATA) ${srcdir}/op50n.ld $(tooldir)/lib${MULTISUBDIR}/op50n.ld # install WinBond stuff - $(INSTALL_PROGRAM) $(WEC_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(WEC_BSP) - $(INSTALL_DATA) ${srcdir}/w89k.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/w89k.ld + $(INSTALL_PROGRAM) $(WEC_BSP) $(tooldir)/lib${MULTISUBDIR}/$(WEC_BSP) + $(INSTALL_DATA) ${srcdir}/w89k.ld $(tooldir)/lib${MULTISUBDIR}/w89k.ld info: install-info: diff --git a/libgloss/pa/configure b/libgloss/pa/configure index 702c6b2..8d0bb3c 100755 --- a/libgloss/pa/configure +++ b/libgloss/pa/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -583,7 +594,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:587: checking host system type" >&5 +echo "configure:598: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -604,7 +615,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:608: checking target system type" >&5 +echo "configure:619: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -622,7 +633,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:626: checking build system type" >&5 +echo "configure:637: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -676,7 +687,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:680: checking for a BSD compatible install" >&5 +echo "configure:691: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -732,7 +743,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:736: checking for $ac_word" >&5 +echo "configure:747: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -762,7 +773,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:766: checking for $ac_word" >&5 +echo "configure:777: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -813,7 +824,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:817: checking for $ac_word" >&5 +echo "configure:828: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -845,7 +856,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:849: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -856,12 +867,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 860 "configure" +#line 871 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -887,12 +898,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:896: checking whether we are using GNU C" >&5 +echo "configure:907: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -901,7 +912,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -920,7 +931,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:924: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:935: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -960,7 +971,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:964: checking for $ac_word" >&5 +echo "configure:975: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/libgloss/read.c b/libgloss/read.c index 419a8ed..eb86ea3 100644 --- a/libgloss/read.c +++ b/libgloss/read.c @@ -31,7 +31,7 @@ _DEFUN (read, (fd, buf, nbytes), for (i = 0; i < nbytes; i++) { *(buf + i) = inbyte(); if ((*(buf + i) == '\n') || (*(buf + i) == '\r')) { - i++; + (*(buf + i + 1)) = 0; break; } } diff --git a/libgloss/rs6000/Makefile.in b/libgloss/rs6000/Makefile.in index 3c41ef0..6f1deae 100644 --- a/libgloss/rs6000/Makefile.in +++ b/libgloss/rs6000/Makefile.in @@ -15,8 +15,7 @@ # This currently works with the PPC simulator. # -DESTDIR = -VPATH = @srcdir@:@srcdir@/.. +VPATH = @srcdir@ @srcdir@/.. srcdir = @srcdir@ objdir = . srcroot = $(srcdir)/../.. @@ -68,7 +67,7 @@ SIM_SCRIPTS = SIM_LDFLAGS = SIM_BSP = libsim.a SIM_CRT0 = sim-crt0.o -SIM_OBJS = sim-print.o sim-inbyte.o sim-sbrk.o sim-abort.o sim-errno.o simulator.o sim-getrusage.o +SIM_OBJS = sim-print.o sim-inbyte.o sim-sbrk.o sim-abort.o sim-errno.o simulator.o SIM_TEST = sim-test SIM_INSTALL = install-sim @@ -270,7 +269,6 @@ mbx-test.srec: mbx-test.x crt0.o: crt0.S simulator.o: simulator.S -sim-getrusage.o: sim-getrusage.S sim-crt0.o: sim-crt0.S mount.o: mount.S @@ -317,28 +315,28 @@ distclean maintainer-clean realclean: clean install: ${SIM_INSTALL} ${MVME_INSTALL} ${SOLARIS_INSTALL} ${LINUX_INSTALL} ${YELLOWKNIFE_INSTALL} ${ADS_INSTALL} ${MBX_INSTALL} install-sim: - set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-mvme: - set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-solaris: - set -e; for x in ${SOLARIS_CRT0} ${SOLARIS_BSP} ${SOLARIS_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${SOLARIS_CRT0} ${SOLARIS_BSP} ${SOLARIS_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-linux: - set -e; for x in ${LINUX_CRT0} ${LINUX_BSP} ${LINUX_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${LINUX_CRT0} ${LINUX_BSP} ${LINUX_SCRIPTS}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-yellowknife: - set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${YELLOWKNIFE_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${YELLOWKNIFE_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-ads: - set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${ADS_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${ADS_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done install-mbx: - set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done - set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x ${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x ${tooldir}/lib${MULTISUBDIR}/$$x; done doc: info: diff --git a/libgloss/rs6000/ads.ld b/libgloss/rs6000/ads.ld index ef5038e..1fe80d8 100644 --- a/libgloss/rs6000/ads.ld +++ b/libgloss/rs6000/ads.ld @@ -145,7 +145,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/rs6000/mbx.ld b/libgloss/rs6000/mbx.ld index cedf4e8..7ba3db9 100644 --- a/libgloss/rs6000/mbx.ld +++ b/libgloss/rs6000/mbx.ld @@ -125,7 +125,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/rs6000/sim-getrusage.S b/libgloss/rs6000/sim-getrusage.S deleted file mode 100644 index 20f1c62..0000000 --- a/libgloss/rs6000/sim-getrusage.S +++ /dev/null @@ -1,25 +0,0 @@ -/* - * sim-getrusage.S -- PowerPC simulator getrusage call. - * - * Copyright (c) 1995, 2000, 2001 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ - -#include "ppc-asm.h" - -FUNC_START(getrusage) - li r0,117 - sc - bns+ 0f - b FUNC_NAME(_cerror) -0: blr -FUNC_END(getrusage) diff --git a/libgloss/rs6000/simulator.S b/libgloss/rs6000/simulator.S index 914a761..e8c1838 100644 --- a/libgloss/rs6000/simulator.S +++ b/libgloss/rs6000/simulator.S @@ -79,14 +79,6 @@ FUNC_START(dup) b FUNC_NAME(_cerror) FUNC_END(dup) -FUNC_START(gettimeofday) - li r0,116 - sc - bns+ 0f - b FUNC_NAME(_cerror) -0: blr -FUNC_END(gettimeofday) - FUNC_START(lseek) li r0,199 sc diff --git a/libgloss/rs6000/yellowknife.ld b/libgloss/rs6000/yellowknife.ld index 36c3009..96c4260 100644 --- a/libgloss/rs6000/yellowknife.ld +++ b/libgloss/rs6000/yellowknife.ld @@ -137,7 +137,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sh/sh1lcevb.ld b/libgloss/sh/sh1lcevb.ld index b2979d7..efe9ab3 100644 --- a/libgloss/sh/sh1lcevb.ld +++ b/libgloss/sh/sh1lcevb.ld @@ -105,7 +105,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sh/sh2lcevb.ld b/libgloss/sh/sh2lcevb.ld index 06a85ad..8ae7f31 100644 --- a/libgloss/sh/sh2lcevb.ld +++ b/libgloss/sh/sh2lcevb.ld @@ -101,7 +101,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sh/sh3bb.ld b/libgloss/sh/sh3bb.ld index f2a3319..c3fc657 100644 --- a/libgloss/sh/sh3bb.ld +++ b/libgloss/sh/sh3bb.ld @@ -103,7 +103,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sh/sh3lcevb.ld b/libgloss/sh/sh3lcevb.ld index d41c65f..0129921 100644 --- a/libgloss/sh/sh3lcevb.ld +++ b/libgloss/sh/sh3lcevb.ld @@ -101,7 +101,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sparc/Makefile.in b/libgloss/sparc/Makefile.in index 67f19ac..fcf5448 100644 --- a/libgloss/sparc/Makefile.in +++ b/libgloss/sparc/Makefile.in @@ -13,7 +13,6 @@ # Makefile for libgloss/sparc. This is the board support # code for the various sparc targets. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -172,36 +171,36 @@ $(objdir)/cygmon.ld: @CYGMONLDSCRIPTTEMPL@ sed 's/TARGET_OBJ_FORMAT/$($(CPU)_OBJ_FORMAT)/g;s/TARGET_RAM_START/$($(CPU)_RAM_START)/g;' < $(<) > $(objdir)/cygmon.ld install: $($(CPU)_INSTALL) - $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) + $(INSTALL_DATA) $(CRT0) $(tooldir)/lib${MULTISUBDIR}/$(CRT0) sparc-install: - $(INSTALL_DATA) $(CYGMON_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(CYGMON_OBJS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(objdir)/cygmon.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(CYGMON_CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(CYGMON_BSP) $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(CYGMON_OBJS) $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(objdir)/cygmon.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(CYGMON_CRT0) $(tooldir)/lib${MULTISUBDIR} slite-install: - $(INSTALL_DATA) $(930_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(930_BSP) - $(INSTALL_DATA) $(931_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(931_BSP) - $(INSTALL_DATA) $(934_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(934_BSP) - $(INSTALL_DATA) $(86X_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(86X_BSP) - $(INSTALL_DATA) $(srcdir)/ex930.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(srcdir)/ex931.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(srcdir)/ex934.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(srcdir)/sparc86x.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(srcdir)/elfsim.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(ERC32_CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(ERC32_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(objdir)/traps.o $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(CYGMON_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(CYGMON_OBJS) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(objdir)/cygmon.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} - $(INSTALL_DATA) $(CYGMON_CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(930_BSP) $(tooldir)/lib${MULTISUBDIR}/$(930_BSP) + $(INSTALL_DATA) $(931_BSP) $(tooldir)/lib${MULTISUBDIR}/$(931_BSP) + $(INSTALL_DATA) $(934_BSP) $(tooldir)/lib${MULTISUBDIR}/$(934_BSP) + $(INSTALL_DATA) $(86X_BSP) $(tooldir)/lib${MULTISUBDIR}/$(86X_BSP) + $(INSTALL_DATA) $(srcdir)/ex930.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(srcdir)/ex931.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(srcdir)/ex934.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(srcdir)/sparc86x.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(srcdir)/elfsim.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(ERC32_CRT0) $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(ERC32_BSP) $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(objdir)/traps.o $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(CYGMON_BSP) $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(CYGMON_OBJS) $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(objdir)/cygmon.ld $(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(CYGMON_CRT0) $(tooldir)/lib${MULTISUBDIR} splet-install: - $(INSTALL_DATA) $(701_CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(701_CRT0) - $(INSTALL_DATA) $(701_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(701_BSP) - $(INSTALL_DATA) $(srcdir)/tsc701.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR} + $(INSTALL_DATA) $(701_CRT0) $(tooldir)/lib${MULTISUBDIR}/$(701_CRT0) + $(INSTALL_DATA) $(701_BSP) $(tooldir)/lib${MULTISUBDIR}/$(701_BSP) + $(INSTALL_DATA) $(srcdir)/tsc701.ld $(tooldir)/lib${MULTISUBDIR} # Make a simple test case to test the linker script, startup code, and # I/O code diff --git a/libgloss/sparc/configure b/libgloss/sparc/configure index 2e499c4..c507e7a 100755 --- a/libgloss/sparc/configure +++ b/libgloss/sparc/configure @@ -28,6 +28,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +143,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +314,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -477,12 +484,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -568,7 +579,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:572: checking for a BSD compatible install" >&5 +echo "configure:583: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -649,7 +660,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:653: checking host system type" >&5 +echo "configure:664: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -670,7 +681,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:674: checking target system type" >&5 +echo "configure:685: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -688,7 +699,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:692: checking build system type" >&5 +echo "configure:703: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -722,7 +733,7 @@ test "$host_alias" != "$target_alias" && # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:726: checking for $ac_word" >&5 +echo "configure:737: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -752,7 +763,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:756: checking for $ac_word" >&5 +echo "configure:767: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -801,7 +812,7 @@ fi fi echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:805: checking whether we are using GNU C" >&5 +echo "configure:816: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -810,7 +821,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -825,7 +836,7 @@ if test $ac_cv_prog_gcc = yes; then ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:829: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:840: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -861,7 +872,7 @@ LD=${LD-ld} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:865: checking for $ac_word" >&5 +echo "configure:876: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/libgloss/sparc/cygmon-salib.c b/libgloss/sparc/cygmon-salib.c index 395e16f..4f65c0f 100644 --- a/libgloss/sparc/cygmon-salib.c +++ b/libgloss/sparc/cygmon-salib.c @@ -7,9 +7,9 @@ void putTtyChar(int c) { /* 2 is fork under solaris; bad juju */ - asm(" mov %i0,%o0 \n\ - or %g0,2,%g1 \n\ - ta 8 \n\ + asm(" mov %i0,%o0 + or %g0,2,%g1 + ta 8 nop"); } @@ -20,8 +20,8 @@ write(int fd,char *ptr,int amt) { return -1; } - asm(" or %g0, 4, %g1 \n\ - ta 8 \n\ + asm(" or %g0, 4, %g1 + ta 8 nop"); return amt; } @@ -33,8 +33,8 @@ read(int fd,char *ptr,int amt) { return -1; } - asm(" or %g0, 3, %g1 \n\ - ta 8 \n\ + asm(" or %g0, 3, %g1 + ta 8 nop"); return amt; } @@ -43,19 +43,19 @@ void _exit(int code) { while(1) { - asm(" or %g0,1,%g1 \n\ - ta 8 \n\ - nop \n\ - ta 1 \n\ - nop"); + asm(" or %g0,1,%g1 + ta 8 + nop + ta 1 + nop"); } } int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue) { - asm(" or %g0, 158, %g1 \n\ - ta 8 \n\ + asm(" or %g0, 158, %g1 + ta 8 nop"); } @@ -138,8 +138,8 @@ isatty(int fd) int kill (int pid, int signal) { - asm ("or %g0, 37, %g1 \n\ - ta 8 \n\ + asm ("or %g0, 37, %g1 + ta 8 nop"); } @@ -152,50 +152,50 @@ getpid () int getitimer (int which, struct itimerval *value) { - asm ("or %g0, 157, %g1 \n\ - ta 8 \n\ + asm ("or %g0, 157, %g1 + ta 8 nop"); } void __install_signal_handler (void *func) { - asm ("mov %o0, %o1 \n\ - mov %g0, %o0 \n\ - or %g0, 48, %g1 \n\ - ta 8 \n\ + asm ("mov %o0, %o1 + mov %g0, %o0 + or %g0, 48, %g1 + ta 8 nop"); } int gettimeofday (struct timeval *tp, struct timezone *tzp) { - asm ("or %g0, 156, %g1 \n\ - ta 8 \n\ + asm ("or %g0, 156, %g1 + ta 8 nop"); } int stime (long *seconds) { - asm ("or %g0, 25, %g1 \n\ - ta 8 \n\ + asm ("or %g0, 25, %g1 + ta 8 nop"); } int add_mapping (long vma, long pma, long size) { - asm ("or %g0, 115, %g1 \n\ - ta 8 \n\ + asm ("or %g0, 115, %g1 + ta 8 nop"); } int remove_mapping (long vma, long vma_end) { - asm ("or %g0, 117, %g1 \n\ - ta 8 \n\ + asm ("or %g0, 117, %g1 + ta 8 nop"); } @@ -211,10 +211,10 @@ __getProgramArgs (int *argv) int *res; /* 184 is tsolsys under solaris; bad juju */ - asm ("mov %1, %%o0 \n\ - or %%g0, 184, %%g1 \n\ - ta 8 \n\ - nop \n\ + asm ("mov %1, %%o0 + or %%g0, 184, %%g1 + ta 8 + nop mov %%o0, %0" : "=r" (res) : "r" (argv): "g1"); return res; } diff --git a/libgloss/sparc/elfsim.ld b/libgloss/sparc/elfsim.ld index a047a05..d1831be 100644 --- a/libgloss/sparc/elfsim.ld +++ b/libgloss/sparc/elfsim.ld @@ -95,6 +95,7 @@ SECTIONS { _stext = .; PROVIDE (stext = .); + __EH_FRAME_BEGIN__ = .; *(.text) _etext = .; PROVIDE (etext = .); @@ -122,7 +123,6 @@ SECTIONS *(.lit) *(.rodata) *(.shdata) - __EH_FRAME_BEGIN__ = .; *(.eh_frame) *(.gnu.linkonce.t*) *(.gnu.linkonce.r*) @@ -193,7 +193,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sparc/erc32-stub.c b/libgloss/sparc/erc32-stub.c index 98866e3..71a65b2 100644 --- a/libgloss/sparc/erc32-stub.c +++ b/libgloss/sparc/erc32-stub.c @@ -136,22 +136,22 @@ handle_exception (registers) DEBUG (1, "Entering handle_exception()"); /* asm("mov %g0, %wim ; nop; nop; nop"); */ - asm(" save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - save %sp, -64, %sp \n\ - restore \n\ - restore \n\ - restore \n\ - restore \n\ - restore \n\ - restore \n\ - restore \n\ - restore \n\ + asm(" save %sp, -64, %sp + save %sp, -64, %sp + save %sp, -64, %sp + save %sp, -64, %sp + save %sp, -64, %sp + save %sp, -64, %sp + save %sp, -64, %sp + save %sp, -64, %sp + restore + restore + restore + restore + restore + restore + restore + restore "); if (registers[PC] == (unsigned long)breakinst) { @@ -180,10 +180,10 @@ breakpoint() if (!initialized) return; - asm(" .globl " STRINGSYM(breakinst) " \n\ - " STRINGSYM(breakinst) ": ta 128+1 \n\ - nop \n\ - nop \n\ + asm(" .globl " STRINGSYM(breakinst) " + " STRINGSYM(breakinst) ": ta 128+1 + nop + nop "); } @@ -197,9 +197,9 @@ int tt; print ("Got a bad trap #"); outbyte (tt); outbyte ('\n'); - asm("ta 0 \n\ - nop \n\ - nop \n\ + asm("ta 0 + nop + nop "); } @@ -213,9 +213,9 @@ int tt; print ("Got a soft trap #"); outbyte (tt); outbyte ('\n'); - asm("ta 0 \n\ - nop \n\ - nop \n\ + asm("ta 0 + nop + nop "); } @@ -239,7 +239,7 @@ flush_i_cache () void target_reset() { - asm ("call 0 \n\ + asm ("call 0 nop "); } diff --git a/libgloss/sparc/ex930.ld b/libgloss/sparc/ex930.ld index 9822dca..b501b2e 100644 --- a/libgloss/sparc/ex930.ld +++ b/libgloss/sparc/ex930.ld @@ -151,7 +151,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sparc/ex931.ld b/libgloss/sparc/ex931.ld index b3e6107..26ffb4d 100644 --- a/libgloss/sparc/ex931.ld +++ b/libgloss/sparc/ex931.ld @@ -151,7 +151,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sparc/ex934.ld b/libgloss/sparc/ex934.ld index ff2f91b..7d1d5ed 100644 --- a/libgloss/sparc/ex934.ld +++ b/libgloss/sparc/ex934.ld @@ -151,7 +151,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/sparc/libsys/Makefile.in b/libgloss/sparc/libsys/Makefile.in index b4c4be6..f3a036f 100644 --- a/libgloss/sparc/libsys/Makefile.in +++ b/libgloss/sparc/libsys/Makefile.in @@ -14,7 +14,6 @@ # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -DESTDIR = VPATH = @srcdir@ srcdir = @srcdir@ objdir = . @@ -92,8 +91,8 @@ libsys.a: $(OFILES) $(AR) $(AR_FLAGS) $@ $(OFILES) install: - $(INSTALL_DATA) libsys-crt0.o $(DESTDIR)$(tooldir)/lib/libsys-crt0.o - $(INSTALL_DATA) libsys.a $(DESTDIR)$(tooldir)/lib/libsys.a + $(INSTALL_DATA) libsys-crt0.o $(tooldir)/lib/libsys-crt0.o + $(INSTALL_DATA) libsys.a $(tooldir)/lib/libsys.a doc: diff --git a/libgloss/sparc/sparc86x.ld b/libgloss/sparc/sparc86x.ld index 585b16c..e7cf27e 100644 --- a/libgloss/sparc/sparc86x.ld +++ b/libgloss/sparc/sparc86x.ld @@ -82,6 +82,7 @@ SECTIONS .text : { stext = .; _stext = .; + __EH_FRAME_BEGIN__ = .; CREATE_OBJECT_SYMBOLS *(.text) @@ -107,7 +108,6 @@ SECTIONS *(.lit) *(.rodata) *(.shdata) - __EH_FRAME_BEGIN__ = .; *(.eh_frame) *(.gnu.linkonce.t*) *(.gnu.linkonce.r*) @@ -168,7 +168,6 @@ SECTIONS .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } diff --git a/libgloss/xstormy16/Makefile.in b/libgloss/xstormy16/Makefile.in deleted file mode 100644 index b33e1ac..0000000 --- a/libgloss/xstormy16/Makefile.in +++ /dev/null @@ -1,131 +0,0 @@ -# -# - -DESTDIR = -VPATH = @srcdir@ @srcdir@/.. -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = - -SHELL = /bin/sh - -CC = @CC@ - -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ - -# Yuk. -OBJCOPY = $(subst ranlib,objcopy,$(RANLIB)) - -OBJS = isatty.o -CFLAGS = -g -O2 -ASFLAGS = --gdwarf2 -SCRIPTS = -CRT = crt0.o crti.o crtn.o - -# Here is all of the simulator stuff -SIM_SCRIPTS = sim_high.ld sim_rom.ld -SIM_LDFLAGS = -SIM_BSP = libsim.a -SIM_OBJS = syscalls.o sim_malloc_start.o - -# Here is stuff for building apps for GDB on the EVA board -EVA_APP_BSP = libeva_app.a -EVA_APP_OBJS = close.o fstat.o getpid.o kill.o lseek.o open.o \ - stat.o unlink.o eva_app.o -EVA_APP_SCRIPTS = eva_app.ld - -# Stub stuff -EVA_STUB_HEX = eva_stub.hex -EVA_STUB = eva_stub.elf -EVA_STUB_OBJS = xstormy16_stub.o crt0_stub.o - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -# -# build a test program for each target board. Just trying to get -# it to link is a good test, so we ignore all the errors for now. -# -# all: ${MON_CRT0} ${MON_BSP} -all: ${CRT} ${SIM_BSP} ${EVA_APP_BSP} ${EVA_STUB_HEX} - -# -# here's where we build the board support packages for each target -# -${SIM_BSP}: ${OBJS} ${SIM_OBJS} - ${AR} ${ARFLAGS} ${SIM_BSP} ${SIM_OBJS} ${OBJS} - ${RANLIB} ${SIM_BSP} - -${EVA_APP_BSP}: ${OBJS} ${EVA_APP_OBJS} - ${AR} ${ARFLAGS} ${EVA_APP_BSP} ${EVA_APP_OBJS} ${OBJS} - ${RANLIB} ${EVA_APP_BSP} - -${EVA_STUB_HEX}: ${EVA_STUB} - ${OBJCOPY} -O ihex $< $@ - -${EVA_STUB}: ${EVA_STUB_OBJS} ${srcdir}/eva_stub.ld - ${CC} -g -Os -nostartfiles -T${srcdir}/eva_stub.ld ${EVA_STUB_OBJS} -o $@ - - -# -# here's where we build the test programs for each target -# -.PHONY: test -test: - true - -# -# -# -.c.S: - ${CC} ${CFLAGS_FOR_TARGET} -c $< - -clean mostlyclean: - rm -f a.out core *.i *.o *-test *.srec *.dis *.x *.hex $(SIM_BSP) $(EVA_APP_BSP) $(EVA_STUB} - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status *~ - -.PHONY: install info install-info clean-info -install: - set -e; for x in ${SIM_BSP} ${CRT} ${EVA_APP_BSP} ${EVA_STUB_HEX} ${EVA_STUB} ; do\ - ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \ - done - @for script in ${SCRIPTS} ${SIM_SCRIPTS} ${EVA_APP_SCRIPTS}; do\ - ${INSTALL_DATA} ${srcdir}/$${script} $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$${script}; \ - done - - -doc: -info: -install-info: -clean-info: - -Makefile: Makefile.in config.status @host_makefile_frag_path@ - $(SHELL) config.status - -config.status: configure - $(SHELL) config.status --recheck diff --git a/libgloss/xstormy16/close.c b/libgloss/xstormy16/close.c deleted file mode 100644 index 5fcfbf5..0000000 --- a/libgloss/xstormy16/close.c +++ /dev/null @@ -1,25 +0,0 @@ -/* close.c -- close a file descriptor. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * close -- We don't need to do anything, but pretend we did. - */ -int -_DEFUN (_close ,(fd), - int fd) -{ - return (0); -} diff --git a/libgloss/xstormy16/configure b/libgloss/xstormy16/configure deleted file mode 100755 index d0e7f7c..0000000 --- a/libgloss/xstormy16/configure +++ /dev/null @@ -1,1219 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.1 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.1" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=crt0.s - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:571: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:592: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:610: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - - -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([^/][^/]*\),..,g' -e 's,^/$,,'` - ac_aux_dir= -for ac_dir in ${mdir}../../.. $srcdir/${mdir}../../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${mdir}../../.. $srcdir/${mdir}../../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -else - ac_aux_dir= -for ac_dir in ${srcdir}/../.. $srcdir/${srcdir}/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/../.. $srcdir/${srcdir}/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -fi - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:708: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:770: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:799: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:847: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:871: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - -AS=${AS-as} - -AR=${AR-ar} - -LD=${LD-ld} - -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:907: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - -host_makefile_frag=${srcdir}/../config/default.mh - -host_makefile_frag_path=$host_makefile_frag - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.1" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@CC@%$CC%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@RANLIB@%$RANLIB%g -s%@host_makefile_frag_path@%$host_makefile_frag_path%g -/@host_makefile_frag@/r $host_makefile_frag -s%@host_makefile_frag@%%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF - -EOF -cat >> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/libgloss/xstormy16/configure.in b/libgloss/xstormy16/configure.in deleted file mode 100644 index 5824402..0000000 --- a/libgloss/xstormy16/configure.in +++ /dev/null @@ -1,75 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(crt0.s) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'` - AC_CONFIG_AUX_DIR(${mdir}../../..) -else - AC_CONFIG_AUX_DIR(${srcdir}/../..) -fi - -AC_PROG_INSTALL - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. - -AC_DEFUN(LIB_AC_PROG_CC, -[AC_BEFORE([$0], [AC_PROG_CPP])dnl -AC_CHECK_PROG(CC, gcc, gcc) -if test -z "$CC"; then - AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) - test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) -fi - -AC_PROG_CC_GNU - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -dnl Check whether -g works, even if CFLAGS is set, in case the package -dnl plays around with CFLAGS (such as to build both debugging and -dnl normal versions of a library), tasteless as that idea is. - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - AC_PROG_CC_G - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi -]) - -LIB_AC_PROG_CC -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile) diff --git a/libgloss/xstormy16/crt0.s b/libgloss/xstormy16/crt0.s deleted file mode 100644 index 39e00d2..0000000 --- a/libgloss/xstormy16/crt0.s +++ /dev/null @@ -1,114 +0,0 @@ -# XSTORMY16 startup code - -# Interrupt vectors at 0x8000. - .section .int_vec,"ax" - .global _start - .align 1 -_start: - ;; Reset, watchdog timer interrupt - jmpf _int_reset - ;; base timer interrupt - jmpf _int_basetimer - ;; timer 0 - jmpf _int_timer0 - ;; timer 1 - jmpf _int_timer1 - ;; SIO0 interrupt - jmpf _int_sio0 - ;; SIO1 interrupt - jmpf _int_sio1 - ;; port0 interrupt - jmpf _int_port0 - ;; port1 interrupt - jmpf _int_port1 - -# Reset code, set up memory and call main. - .section .rodata -2: .word __rdata - .text -_int_reset: - ;; Set up the stack pointer. - mov r0,#__stack - bz r0,#0,0f - mov sp,r0 -0: - ;; Zero the data space - mov r0,#_edata - mov r1,#_end - mov r2,#0 -0: mov.w (r0++),r2 - blt r0,r1,0b - - ;; Copy data from ROM into RAM. ROM area may be above 64k, - ;; but RAM may not. - mov r1,#__data - mov r3,#_edata - mov r4,#2b - mov.w r0,(r4++) - mov.w r2,(r4) - mov r8,r2 - ;; If _data == _rdata there's no need to copy anything. - bnz r0,r1,0f - bz r2,#0,1f -0: movf.w r2,(r0++) - bnz r0,#0,2f - add r8,#1 -2: mov.w (r1++),r2 - blt r1,r3,0b -1: - ;; Call hardware init routine - callf _hwinit - ;; Call initialization routines - callf _init - ;; Set up fini routines to be called from exit - mov r2,#@fptr(_fini) - callf atexit - ;; Call main() with empty argc/argv/envp - mov r2,#0 - mov r3,#0 - mov r4,#0 - callf main - ;; Exit. - callf exit - ;; Should never reach this code. - halt -1: .size _int_reset,1b-_int_reset - -# Stub interrupt routines. - .globl _int_timer0 - .weak _int_timer0 - .globl _int_timer1 - .weak _int_timer1 - .globl _int_sio0 - .weak _int_sio0 - .globl _int_sio1 - .weak _int_sio1 - .globl _int_port0 - .weak _int_port0 - .globl _int_port1 - .weak _int_port1 - .globl _int_basetimer - .weak _int_basetimer -_int_timer0: -_int_timer1: -_int_sio0: -_int_sio1: -_int_port0: -_int_port1: -_int_basetimer: - iret -1: .size _int_timer0,1b-_int_timer0 - -# Stub hardware init - .globl _hwinit - .weak _hwinit -_hwinit: - ret -1: .size _int_hwinit,1b-_int_hwinit - -# The first word in .data has address 0, so it's not a good -# idea to use it as its address conflicts with NULL. -# Place a HALT instruction there to try to catch NULL pointer -# dereferences. - .data - halt diff --git a/libgloss/xstormy16/crt0_stub.s b/libgloss/xstormy16/crt0_stub.s deleted file mode 100644 index 14ec471..0000000 --- a/libgloss/xstormy16/crt0_stub.s +++ /dev/null @@ -1,151 +0,0 @@ -# XSTORMY16 startup code for GDB stub. - -# CPU Data for Sanyo EVA debugger at 0x7F00 - .section .cpudata,"ax" - .byte 0x00,0x02,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x44,0x35,0x39,0x52,0x30,0x30,0x30,0x30,0x2E,0x4F,0x50,0x54,0x00,0x00,0x00,0x00 - .byte 0x4c,0x43,0x35,0x39,0x52,0x30,0x30,0x30,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x80,0x00,0x20,0x48,0x00,0x00,0x00 - .byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x20,0x01,0x12,0x31,0x23,0x59 - -# Interrupt vectors at 0x8000. - .section .int_vec,"ax" - .global _start - .align 1 -_start: - ;; Reset, watchdog timer interrupt - jmpf _int_reset - ;; base timer interrupt - jmpf _int_basetimer - ;; timer 0 - jmpf _int_timer0 - ;; timer 1 - jmpf _int_timer1 - ;; SIO0 interrupt - jmpf _int_sio0 - ;; SIO1 interrupt - jmpf _int_sio1 - ;; port0 interrupt - jmpf _int_port0 - ;; port1 interrupt - jmpf _int_port1 - - .org 0x80 - ;; sys interrupt (0x8080) - jmpf _int_sys - - ;; Application void write(char *buf, int nbytes) - ;; This jmps to a stub function to packetize the buf for GDB - jmpf gdb_write - ;; Application int read(char *buf, int nbytes) - jmpf gdb_read - - .text -# Reset code, set up memory and call main. -_int_reset: - ;; Set up the application stack pointer. - mov sp,#0x002 - - ;; Zero the data space - mov r0,#_edata - mov r1,#_end - mov r2,#0 -0: mov.w (r0++),r2 - blt r0,r1,0b - - ;; Init the UART - callf uart_init - - ;; Turn on illegal insn trap - mov r0,r14 - set1 r0,#11 - mov r14,r0 - mov.b 0x7f08,#0x11 - mov.b 0x7f09,#0x10 - - ;; "breakpoint" sends us into stub. -0: - .hword 0x0006 - br 0b - -_int_sys: - push r13 - mov r13,#registers - mov.w (r13++),r0 - mov.w (r13++),r1 - mov.w (r13++),r2 - mov.w (r13++),r3 - mov.w (r13++),r4 - mov.w (r13++),r5 - mov.w (r13++),r6 - mov.w (r13++),r7 - mov r0,r8 - mov.w (r13++),r0 - mov r0,r9 - mov.w (r13++),r0 - mov r0,r10 - mov.w (r13++),r0 - mov r0,r11 - mov.w (r13++),r0 - mov r0,r12 - mov.w (r13++),r0 - pop r0 - mov.w (r13++),r0 ; R13 - pop r0 - mov.w (r13++),r0 ; PSW - mov r0,r15 - sub r0,#4 - mov.w (r13++),r0 ; SP - pop r0 - pop r1 - mov.w (r13++),r1 ; PCL - mov.w (r13++),r0 ; PCH - - ;; switch to stub stack and invoke stub - mov sp,#0x700 - callf handle_exception - - mov r0,#registers+34 - mov.w r1,(r0) ; PCH - mov.w r2,(--r0) ; PCL - mov.w r3,(--r0) ; SP - mov r15,r3 - push r2 - push r1 - mov.w r1,(--r0) ; PSW - push r1 - mov.w r1,(--r0) - mov r13,r1 - mov.w r1,(--r0) - mov r12,r1 - mov.w r1,(--r0) - mov r11,r1 - mov.w r1,(--r0) - mov r10,r1 - mov.w r1,(--r0) - mov r9,r1 - mov.w r1,(--r0) - mov r8,r1 - mov.w r7,(--r0) - mov.w r6,(--r0) - mov.w r5,(--r0) - mov.w r4,(--r0) - mov.w r3,(--r0) - mov.w r2,(--r0) - mov.w r1,(--r0) - mov.w r0,(--r0) - iret -1: .size _int_sys,1b-_int_sys - - diff --git a/libgloss/xstormy16/crti.s b/libgloss/xstormy16/crti.s deleted file mode 100644 index 3713ba3..0000000 --- a/libgloss/xstormy16/crti.s +++ /dev/null @@ -1,9 +0,0 @@ - .section .init,"ax" - .align 1 - .globl _init -_init: - - .section .fini,"ax" - .align 1 - .globl _fini -_fini: diff --git a/libgloss/xstormy16/crtn.s b/libgloss/xstormy16/crtn.s deleted file mode 100644 index 22d71b8..0000000 --- a/libgloss/xstormy16/crtn.s +++ /dev/null @@ -1,5 +0,0 @@ - .section .init,"ax" - ret - - .section .fini,"ax" - ret diff --git a/libgloss/xstormy16/eva_app.c b/libgloss/xstormy16/eva_app.c deleted file mode 100644 index f6069fc..0000000 --- a/libgloss/xstormy16/eva_app.c +++ /dev/null @@ -1,78 +0,0 @@ -/* eva_app.c -- Glue code for linking apps to run under GDB debugger control. - * - * Copyright (c) 2001 Red Hat, Inc. - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -typedef void (*write_proc_t)(char *buf, int nbytes); -typedef int (*read_proc_t)(char *buf, int nbytes); - -/* There is no "syscall", so we just call directly into the stub code - at fixed addresses. */ -#define STUB_WRITE(p,n) ((write_proc_t)0x8084)((p),(n)) -#define STUB_READ(p,n) ((read_proc_t)0x8088)((p),(n)) - -/* - * print -- do a raw print of a string - */ -void -print(char *ptr) -{ - STUB_WRITE(ptr, strlen(ptr)); -} - -/* - * write -- write bytes to the serial port. Ignore fd, since - * stdout and stderr are the same. Since we have no filesystem, - * open will only return an error. - */ -int -_write (int fd, char *buf, int nbytes) -{ - STUB_WRITE(buf, nbytes); - return (nbytes); -} - -int -_read (int fd, char *buf, int nbytes) -{ - return STUB_READ(buf, nbytes); -} - -extern char _end[]; -#define HEAP_LIMIT ((char *)0xffff) - -void * -_sbrk(int inc) -{ - static char *heap_ptr = _end; - void *base; - - if (inc > (HEAP_LIMIT - heap_ptr)) - return (void *)-1; - - base = heap_ptr; - heap_ptr += inc; - - return base; -} - -void -_exit(int n) -{ - while (1) - { - asm volatile ("nop"); - asm volatile (".hword 0x0006"); /* breakpoint (special illegal insn) */ - } -} diff --git a/libgloss/xstormy16/eva_app.ld b/libgloss/xstormy16/eva_app.ld deleted file mode 100644 index 6699b05..0000000 --- a/libgloss/xstormy16/eva_app.ld +++ /dev/null @@ -1,133 +0,0 @@ -OUTPUT_FORMAT("elf32-xstormy16", "elf32-xstormy16", - "elf32-xstormy16") -OUTPUT_ARCH(xstormy16) -ENTRY(_start) -GROUP(-lc -leva_app -lgcc) - -MEMORY -{ - RAM (w) : ORIGIN = 0x9000, LENGTH = 0x7000 - ROM (!w) : ORIGIN = 0x10000, LENGTH = 0x70000 -} - -SECTIONS -{ - __stack = 2 ; - __malloc_start = 0x800; - .data : - { - __rdata = .; - __data = .; - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) - } > RAM - /* Read-only sections */ - .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } > RAM - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } > RAM - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } > RAM - .eh_frame : { KEEP (*(.eh_frame)) } > RAM - .gcc_except_table : { *(.gcc_except_table) } > RAM - .jcr : { *(.jcr) } > RAM - .plt : { *(.plt) } > RAM - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .bss : - { - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(2); - } > RAM - . = ALIGN(2); - _end = .; - PROVIDE (end = .); - .text : - { - *(.int_vec) - *(.text) - *(.text.*) - *(.stub) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - } > ROM =0 - .init : - { - KEEP (*(.init)) - } > ROM =0 - .fini : - { - KEEP (*(.fini)) - } > ROM =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - /* These must appear regardless of . */ -} diff --git a/libgloss/xstormy16/eva_stub.ld b/libgloss/xstormy16/eva_stub.ld deleted file mode 100644 index 34f3b91..0000000 --- a/libgloss/xstormy16/eva_stub.ld +++ /dev/null @@ -1,142 +0,0 @@ -OUTPUT_FORMAT("elf32-xstormy16", "elf32-xstormy16", - "elf32-xstormy16") -OUTPUT_ARCH(xstormy16) -ENTRY(_start) - -MEMORY -{ - CPUDATA (!w) : ORIGIN = 0x7F00, LENGTH = 0x100 - ROM (w) : ORIGIN = 0x8000, LENGTH = 0x1000 -} - -/* Point interrupt vectors to user application. */ -PROVIDE (_int_basetimer = 0x10004); -PROVIDE (_int_timer0 = 0x10008); -PROVIDE (_int_timer1 = 0x1000C); -PROVIDE (_int_sio0 = 0x10010); -PROVIDE (_int_sio1 = 0x10014); -PROVIDE (_int_port0 = 0x10018); -PROVIDE (_int_port1 = 0x1001C); - -SECTIONS -{ - /* CPU data for Sanyo debugger */ - .cpudata : { KEEP (*(.cpudata)) } > CPUDATA - /* Read-only sections in ROM. */ - .int_vec : { *(.int_vec) } > ROM - .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } > ROM - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } > ROM - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } > ROM - .eh_frame : { KEEP (*(.eh_frame)) } > ROM - .gcc_except_table : { *(.gcc_except_table) } > ROM - .jcr : { *(.jcr) } > ROM - .plt : { *(.plt) } > ROM - .text : - { - *(.text) - *(.text.*) - *(.stub) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - } > ROM =0 - .init : - { - KEEP (*(.init)) - } > ROM =0 - .fini : - { - KEEP (*(.fini)) - } > ROM =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - .data : - { - __data = .; - __rdata = .; - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) - } > ROM - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .bss : - { - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(2); - } > ROM - . = ALIGN(2); - _end = .; - PROVIDE (end = .); - - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - /* These must appear regardless of . */ -} diff --git a/libgloss/xstormy16/fstat.c b/libgloss/xstormy16/fstat.c deleted file mode 100644 index 982d578..0000000 --- a/libgloss/xstormy16/fstat.c +++ /dev/null @@ -1,30 +0,0 @@ -/* fstat.c -- get status of a file. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <sys/stat.h> -#include "glue.h" - -/* - * fstat -- Since we have no file system, we just return an error. - */ -int -_DEFUN (_fstat, (fd, buf), - int fd _AND - struct stat *buf) -{ - buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ - buf->st_blksize = 0; - - return (0); -} diff --git a/libgloss/xstormy16/getpid.c b/libgloss/xstormy16/getpid.c deleted file mode 100644 index 0f081a1..0000000 --- a/libgloss/xstormy16/getpid.c +++ /dev/null @@ -1,25 +0,0 @@ -/* getpid.c -- get the current process id. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * getpid -- only one process, so just return 1. - */ -int -_DEFUN (_getpid, (), - ) -{ - return __MYPID; -} diff --git a/libgloss/xstormy16/kill.c b/libgloss/xstormy16/kill.c deleted file mode 100644 index 0bbc014..0000000 --- a/libgloss/xstormy16/kill.c +++ /dev/null @@ -1,28 +0,0 @@ -/* kill.c -- remove a process. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include "glue.h" - -/* - * kill -- go out via exit... - */ -int -_DEFUN (_kill, (pid, sig), - int pid _AND - int sig) -{ - if(pid == __MYPID) - _exit(sig); - return 0; -} diff --git a/libgloss/xstormy16/lseek.c b/libgloss/xstormy16/lseek.c deleted file mode 100644 index 640a96e..0000000 --- a/libgloss/xstormy16/lseek.c +++ /dev/null @@ -1,31 +0,0 @@ -/* lseek.c -- move read/write pointer. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <sys/types.h> -#include <errno.h> -#include "glue.h" - -/* - * lseek -- Since a serial port is non-seekable, we return an error. - */ -off_t -_DEFUN (_lseek, (fd, offset, whence), - int fd _AND - off_t offset _AND - int whence) -{ - errno = ESPIPE; - return ((off_t)-1); -} - diff --git a/libgloss/xstormy16/open.c b/libgloss/xstormy16/open.c deleted file mode 100644 index a2c318e..0000000 --- a/libgloss/xstormy16/open.c +++ /dev/null @@ -1,31 +0,0 @@ -/* open.c -- open a file. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <errno.h> -#include "glue.h" - -/* - * open -- open a file descriptor. We don't have a filesystem, so - * we return an error. - */ -int -_DEFUN (_open, (buf, flags, mode), - const char *buf _AND - int flags _AND - int mode) -{ - errno = EIO; - return (-1); -} - diff --git a/libgloss/xstormy16/sim_high.ld b/libgloss/xstormy16/sim_high.ld deleted file mode 100644 index a7f4aa0..0000000 --- a/libgloss/xstormy16/sim_high.ld +++ /dev/null @@ -1,135 +0,0 @@ -/* A modified version of the basic linker script, for testing purposes, - which puts all code above 0x10000. */ -OUTPUT_FORMAT("elf32-xstormy16", "elf32-xstormy16", - "elf32-xstormy16") -OUTPUT_ARCH(xstormy16) -ENTRY(_start) - SEARCH_DIR(/es/scratch/geoffk/objs/mainline-sX/H-i686-pc-linux-gnulibc2.2/xstormy16-elf/lib); -/* There are two memory regions we care about, one from 0 through 0x7F00 - that is RAM and one from 0x8000 up which is ROM. */ -MEMORY -{ - RAM (w) : ORIGIN = 0, LENGTH = 0x7F00 - LOROM (!w) : ORIGIN = 0x8000, LENGTH = 0x8000 - HIROM (!w) : ORIGIN = 0x10000, LENGTH = 0xFF0000 -} -SECTIONS -{ - .data : - { - __data = .; - __rdata = .; - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) - } > RAM - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .bss : - { - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(2); - } > RAM - . = ALIGN(2); - __stack = .; - _end = .; - PROVIDE (end = .); - /* Read-only sections in ROM. */ - .int_vec : { *(.int_vec) } > LOROM - .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } > LOROM - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } > LOROM - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } > LOROM - .eh_frame : { KEEP (*(.eh_frame)) } > LOROM - .gcc_except_table : { *(.gcc_except_table) } > LOROM - .jcr : { *(.jcr) } > LOROM - .plt : { *(.plt) } > LOROM - .text : - { - *(.text) - *(.text.*) - *(.stub) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - } > HIROM =0 - .init : - { - KEEP (*(.init)) - } > HIROM =0 - .fini : - { - KEEP (*(.fini)) - } > HIROM =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - /* These must appear regardless of . */ -} diff --git a/libgloss/xstormy16/sim_malloc_start.s b/libgloss/xstormy16/sim_malloc_start.s deleted file mode 100644 index 143053f..0000000 --- a/libgloss/xstormy16/sim_malloc_start.s +++ /dev/null @@ -1,5 +0,0 @@ -# This file just defines __malloc_start for newlib for the simulator. -# The simulator has RAM up to the I/O area at 0x7F00. - .globl __malloc_start - .set __malloc_start,0x7F00 - diff --git a/libgloss/xstormy16/sim_rom.ld b/libgloss/xstormy16/sim_rom.ld deleted file mode 100644 index e7ef6fb..0000000 --- a/libgloss/xstormy16/sim_rom.ld +++ /dev/null @@ -1,139 +0,0 @@ -/* Test xstormy16 programs that have initial data in ROM and copy it - to RAM. */ - -OUTPUT_FORMAT("elf32-xstormy16", "elf32-xstormy16", - "elf32-xstormy16") -OUTPUT_ARCH(xstormy16) -ENTRY(_start) - SEARCH_DIR(/cuddles/aph/sanyo-011113-branch/install/xstormy16-elf/lib); -/* There are two memory regions we care about, one from 0 through 0x7F00 - that is RAM and one from 0x8000 up which is ROM. */ -MEMORY -{ - RAM (w) : ORIGIN = 0, LENGTH = 0x7F00 - ROM (!w) : ORIGIN = 0x8000, LENGTH = 0xFF8000 -} -SECTIONS -{ - /* Read-only sections in ROM. */ - .int_vec : { *(.int_vec) } > ROM - .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) } > ROM - .ctors : - { - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - KEEP (*crtbegin.o(.ctors)) - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - } > ROM - .dtors : - { - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - } > ROM - .jcr : { KEEP (*(.jcr)) } > ROM - .eh_frame : { KEEP (*(.eh_frame)) } > ROM - .gcc_except_table : { *(.gcc_except_table) } > ROM - .plt : { *(.plt) } > ROM - .text : - { - *(.text) - *(.text.*) - *(.stub) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t.*) - } > ROM =0 - .init : - { - KEEP (*(.init)) - } > ROM =0 - .fini : - { - KEEP (*(.fini)) - } > ROM =0 - PROVIDE (__etext = .); - PROVIDE (_etext = .); - PROVIDE (etext = .); - . = ALIGN(2); - __rdata = .; - .data : AT (__rdata) - { - __data = .; - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) - } > RAM - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - /* Why do we need to give bss an AT address at all? Because if we - don't, ld will generate another program header for it rather than - using the one for .data. */ - .bss : AT (LOADADDR(.data) + SIZEOF(.data)) - { - *(.dynbss) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - *(COMMON) - /* Align here to ensure that the .bss section occupies space up to - _end. Align after .bss to ensure correct alignment even if the - .bss section disappears because there are no input sections. */ - . = ALIGN(2); - } > RAM - . = ALIGN(2); - _end = .; - __stack = .; - PROVIDE (end = .); - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - .comment 0 : { *(.comment) } - /* DWARF debug sections. - Symbols in the DWARF debugging sections are relative to the beginning - of the section so we begin them at 0. */ - /* DWARF 1 */ - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* GNU DWARF 1 extensions */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* DWARF 1.1 and DWARF 2 */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* DWARF 2 */ - .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* SGI/MIPS DWARF 2 extensions */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - /* These must appear regardless of . */ -} diff --git a/libgloss/xstormy16/stat.c b/libgloss/xstormy16/stat.c deleted file mode 100644 index c766a34..0000000 --- a/libgloss/xstormy16/stat.c +++ /dev/null @@ -1,30 +0,0 @@ -/* stat.c -- Get the status of a file. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <sys/stat.h> -#include <errno.h> -#include "glue.h" - -/* - * stat -- Since we have no file system, we just return an error. - */ -int -_DEFUN (_stat, (path, buf), - const char *path _AND - struct stat *buf) -{ - errno = EIO; - return (-1); -} - diff --git a/libgloss/xstormy16/syscalls.S b/libgloss/xstormy16/syscalls.S deleted file mode 100644 index 8f4175f..0000000 --- a/libgloss/xstormy16/syscalls.S +++ /dev/null @@ -1,162 +0,0 @@ -# xstormy16 system calls for the simulator - -#include <syscall.h> - - .text - - .globl _exit -_exit: - mov r1,#SYS_exit - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size exit,0b-_exit - - .globl _open -_open: - mov r1,#SYS_open - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size open,0b-_open - - .globl _close -_close: - mov r1,#SYS_close - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size close,0b-_close - - .globl _read -_read: - mov r1,#SYS_read - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size read,0b-_read - - .globl _write -_write: - mov r1,#SYS_write - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size write,0b-_write - - .globl _lseek -_lseek: - mov r1,#SYS_lseek - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size lseek,0b-_lseek - - .globl _unlink -_unlink: - mov r1,#SYS_unlink - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size unlink,0b-_unlink - - .globl _getpid -_getpid: - mov r1,#SYS_getpid - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size getpid,0b-_getpid - - .globl _kill -_kill: - mov r1,#SYS_kill - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size kill,0b-_kill - - .globl _fstat -_fstat: - mov r1,#SYS_fstat - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size fstat,0b-_fstat - - .globl _chdir -_chdir: - mov r1,#SYS_chdir - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size chdir,0b-_chdir - - .globl _stat -_stat: - mov r1,#SYS_stat - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size stat,0b-_stat - - .globl _chmod -_chmod: - mov r1,#SYS_chmod - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size chmod,0b-_chmod - - .globl _utime -_utime: - mov r1,#SYS_utime - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size utime,0b-_utime - - .globl _time -_time: - mov r1,#SYS_time - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size time,0b-_time - - .globl _gettimeofday -_gettimeofday: - mov r1,#SYS_gettimeofday - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size gettimeofday,0b-_gettimeofday - - .globl _times -_times: - mov r1,#SYS_times - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size times,0b-_times - - .globl _link -_link: - mov r1,#SYS_link - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size link,0b-_link - -syscall_error: -# Return value for the syscall is in r2. Save it here, as -# _errno will overwrite it with the address of the errno -# variable. r0 is the errno. - push r2 - push r0 - callf __errno - pop r0 - mov.w (r2),r0 - pop r2 - ret -0: .size syscall_error,0b-syscall_error diff --git a/libgloss/xstormy16/syscalls.m4 b/libgloss/xstormy16/syscalls.m4 deleted file mode 100644 index ab71fc6..0000000 --- a/libgloss/xstormy16/syscalls.m4 +++ /dev/null @@ -1,40 +0,0 @@ -# xstormy16 system calls for the simulator - -#include <syscall.h> - - .text - -define(`syscall',`.globl _`'$1 -_`'$1`': - mov r1,#SYS_$1 - .hword 0x0001 - bnz r1,#0,syscall_error - ret -0: .size $1,0b-_$1 -')dnl - syscall(exit) - syscall(open) - syscall(close) - syscall(read) - syscall(write) - syscall(lseek) - syscall(unlink) - syscall(getpid) - syscall(kill) - syscall(fstat) - syscall(chdir) - syscall(stat) - syscall(chmod) - syscall(utime) - syscall(time) - syscall(gettimeofday) - syscall(times) - syscall(link) -dnl -syscall_error: - push r0 - callf __errno - pop r0 - mov.w (r2),r0 - ret -0: .size syscall_error,0b-syscall_error diff --git a/libgloss/xstormy16/unlink.c b/libgloss/xstormy16/unlink.c deleted file mode 100644 index 1c56663..0000000 --- a/libgloss/xstormy16/unlink.c +++ /dev/null @@ -1,28 +0,0 @@ -/* unlink.c -- remove a file. - * - * Copyright (c) 1995 Cygnus Support - * - * The authors hereby grant permission to use, copy, modify, distribute, - * and license this software and its documentation for any purpose, provided - * that existing copyright notices are retained in all copies and that this - * notice is included verbatim in any distributions. No written agreement, - * license, or royalty fee is required for any of the authorized uses. - * Modifications to this software may be copyrighted by their authors - * and need not follow the licensing terms described here, provided that - * the new terms are clearly indicated on the first page of each file where - * they apply. - */ -#include <errno.h> -#include "glue.h" - -/* - * unlink -- since we have no file system, - * we just return an error. - */ -int -_DEFUN (_unlink, (path), - char * path) -{ - errno = EIO; - return (-1); -} diff --git a/libgloss/xstormy16/xstormy16_stub.c b/libgloss/xstormy16/xstormy16_stub.c deleted file mode 100644 index 7706031..0000000 --- a/libgloss/xstormy16/xstormy16_stub.c +++ /dev/null @@ -1,837 +0,0 @@ -/**************************************************************************** - - THIS SOFTWARE IS NOT COPYRIGHTED - - HP offers the following for use in the public domain. HP makes no - warranty with regard to the software or it's performance and the - user accepts the software "AS IS" with all faults. - - HP DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD - TO THIS SOFTWARE INCLUDING BUT NOT LIMITED TO THE WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. - -****************************************************************************/ - -/**************************************************************************** - * Header: remcom.c,v 1.34 91/03/09 12:29:49 glenne Exp $ - * - * Module name: remcom.c $ - * Revision: 1.34 $ - * Date: 91/03/09 12:29:49 $ - * Contributor: Lake Stevens Instrument Division$ - * - * Description: low level support for gdb debugger. $ - * - * Considerations: only works on target hardware $ - * - * Written by: Glenn Engel $ - * ModuleState: Experimental $ - * - * NOTES: See Below $ - * - * Heavily modified for XStormy16 by Mark Salter, Red Hat. - * Optimisations and 'X' support by Geoff Keating, Red Hat. - * - * To enable debugger support, two things need to happen. One, a - * call to set_debug_traps() is necessary in order to allow any breakpoints - * or error conditions to be properly intercepted and reported to gdb. - * Two, a breakpoint needs to be generated to begin communication. This - * is most easily accomplished by a call to breakpoint(). Breakpoint() - * simulates a breakpoint by executing a trap #1. - * - * Because gdb will sometimes write to the stack area to execute function - * calls, this program cannot rely on using the inferior stack so it uses - * it's own stack area. - * - ************* - * - * The following gdb commands are supported: - * - * command function Return value - * - * g return the value of the CPU registers hex data or ENN - * G set the value of the CPU registers OK or ENN - * - * mAA..AA,LLLL Read LLLL bytes at address AA..AA hex data or ENN - * MAA..AA,LLLL: Write LLLL bytes at address AA.AA OK or ENN - * XAA..AA,LLLL: Write LLLL binary bytes at address OK or ENN - * AA..AA - * - * c Resume at current address SNN ( signal NN) - * cAA..AA Continue at address AA..AA SNN - * - * s Step one instruction SNN - * sAA..AA Step one instruction from AA..AA SNN - * - * k kill - * - * ? What was the last sigval ? SNN (signal NN) - * - * All commands and responses are sent with a packet which includes a - * checksum. A packet consists of - * - * $<packet info>#<checksum>. - * - * where - * <packet info> :: <characters representing the command or response> - * <checksum> :: <two hex digits computed as modulo 256 sum of <packetinfo>> - * - * When a packet is received, it is first acknowledged with either '+' or '-'. - * '+' indicates a successful transfer. '-' indicates a failed transfer. - * - * Example: - * - * Host: Reply: - * $m0,10#2a +$00010203040506070809101112131415#42 - * - ****************************************************************************/ - -/* Local functions: - */ -static void putDebugChar(unsigned ch); -static unsigned char getDebugChar(void); -static void putPacket(unsigned char *); -static void putHex (char c, unsigned long mem_arg, int count); -static unsigned char *getpacket(void); -static void hex2mem(unsigned char *, unsigned long, int); -static int valid_addr_range (unsigned long mem, int count); -static int hexToInt(unsigned char **, long *); -static void prepare_to_step(void); -static void finish_from_step(void); - -/* breakpoint opcode */ -#define BREAKPOINT_OPCODE 0x0006 - -/* Error Detection Register */ -#define ERR_DETECT_REG (*(volatile unsigned *)0x7f08) -#define UNDEF_INSN_ENA 0x01 -#define UNDEF_INSN_FLAG 0x02 -#define ODD_ADDR_ENA 0x04 -#define ODD_ADDR_FLAG 0x08 -#define BAD_ADDR_ENA 0x10 -#define BAD_ADDR_FLAG 0x20 -#define SER0_IRQ_ENA 0x1000 -#define SER0_IRQ_FLAG 0x2000 - -/***************************************************************************** - * BUFMAX defines the maximum number of characters in inbound/outbound buffers - * at least NUMREGBYTES*2 are needed for register packets - */ -#define BUFMAX 80 - -static const unsigned char hexchars[]="0123456789abcdef"; - -#define NUMREGS 17 - -/* Number of bytes of registers (extra 2 bytes is for 4 byte PC). */ -#define NUMREGBYTES ((NUMREGS * 2) + 2) -enum regnames { R0, R1, R2, R3, R4, R5, R6, R7, - R8, R9, R10, R11, R12, R13, R14, R15, - PC }; - -#define FP R13 -#define PSW R14 -#define SP R15 - -struct regs { - int r[16]; - long pc; -} registers; - -static struct regs orig_registers; - -static unsigned char remcomBuffer[BUFMAX]; - -/* Indicate whether inferior is running. Used to decide whether or not to - send T packet when stub is entered. */ -static char is_running; - -static inline unsigned char -get_char(unsigned long addr) -{ - unsigned int msw, lsw; - unsigned char ret; - - msw = addr >> 16; - lsw = addr & 0xffff; - - asm("movf.b %0,(%2)\n" - : "=e"(ret) : "d"(msw), "r"(lsw) : "memory"); - - return ret; -} - -static inline void -set_char(unsigned long addr, unsigned int val) -{ - unsigned int msw, lsw; - - msw = addr >> 16; - lsw = addr & 0xffff; - - asm("movf.b (%1),%2\n" - : /* none */ : "d"(msw), "r"(lsw), "e"(val) : "memory" ); -} - -static inline unsigned int -get_word(unsigned long addr) -{ - unsigned int ret, msw, lsw; - - msw = addr >> 16; - lsw = addr & 0xffff; - - asm("movf.w %0,(%2)\n" - : "=e"(ret) : "d"(msw), "r"(lsw) : "memory" ); - - return ret; -} - -static inline void -set_word(unsigned long addr, unsigned int val) -{ - unsigned int msw, lsw; - - msw = addr >> 16; - lsw = addr & 0xffff; - - asm("movf.w (%1),%2\n" - : /* none */ : "d"(msw), "r"(lsw), "e"(val) : "memory" ); -} - -static void -assign_regs (struct regs *dest, const struct regs *src) -{ - int i; - char *d = (char *)dest, *s = (char *)src; - for (i = 0; i < sizeof (struct regs); i++) - *d++ = *s++; -} - -/* Write out a register for a 'T' packet. */ - -static unsigned char * -putreg (unsigned char *buf, int regnum, void *mem_p, int count) -{ - int i; - unsigned char ch; - char *mem = (char *)mem_p; - - *buf++ = hexchars[regnum >> 4]; - *buf++ = hexchars[regnum % 16]; - *buf++ = ':'; - - for (i=0;i<count;i++) - { - ch = *mem++; - *buf++ = hexchars[ch >> 4]; - *buf++ = hexchars[ch % 16]; - } - *buf++ = ';'; - return(buf); -} - -/* - * This function does all command procesing for interfacing to gdb. - */ -void -handle_exception(void) -{ - char sigval; - unsigned char *ptr; - long addr, length; - - /* reply to host that an exception has occurred */ - sigval = 5; /* SIGTRAP is default */ - if (ERR_DETECT_REG & UNDEF_INSN_FLAG) - { - ERR_DETECT_REG &= ~UNDEF_INSN_FLAG; - registers.pc -= 2; - if (get_word(registers.pc) != BREAKPOINT_OPCODE) - sigval = 4; /* SIGILL */ - } - if (ERR_DETECT_REG & BAD_ADDR_FLAG) - { - ERR_DETECT_REG &= ~BAD_ADDR_FLAG; - sigval = 11; /* SIGSEGV */ - } - if (ERR_DETECT_REG & SER0_IRQ_FLAG) - { - unsigned char ch; - - ch = getDebugChar(); - ERR_DETECT_REG &= ~SER0_IRQ_FLAG; - if (ch != 0x03) - return; - sigval = 2; /* SIGINT */ - } - - finish_from_step(); - - /* save original context so it can be restored as a result of - a kill packet. */ - if (orig_registers.pc == 0L) - assign_regs (&orig_registers, ®isters); - - if (is_running) - { - ptr = remcomBuffer; - - *ptr++ = 'T'; /* notify gdb with signo, PC, FP and SP */ - *ptr++ = hexchars[sigval >> 4]; - *ptr++ = hexchars[sigval & 0xf]; - - ptr = putreg (ptr, PC, ®isters.pc, 4); - ptr = putreg (ptr, FP, ®isters.r[FP], 2); - ptr = putreg (ptr, SP, ®isters.r[SP], 2); - - *ptr++ = 0; - - putPacket(remcomBuffer); - } - - while (1) { - char kind; - - ptr = getpacket(); - kind = *ptr++; - if (kind == 'M' || kind == 'X') - { - /* MAA..AA,LLLL: Write LLLL bytes at address AA.AA return OK */ - /* TRY TO READ '%x,%x:'. IF SUCCEED, SET PTR = 0 */ - if (hexToInt(&ptr,&addr) - && *(ptr++) == ',' - && hexToInt(&ptr,&length) - && *(ptr++) == ':') - { - if (valid_addr_range (addr, length)) - { - if (kind == 'M') - hex2mem(ptr, addr, length); - else - { - int i; - for (i = 0; i < length; i++) - if (*ptr++ == 0x7d) - set_char (addr++, *ptr++ ^ 0x20); - else - set_char (addr++, ptr[-1]); - - } - putPacket ("OK"); - } - else - putPacket ("E03"); - } - else - putPacket ("E02"); - } - else if (kind == 'm') - { - /* mAA..AA,LLLL Read LLLL bytes at address AA..AA */ - /* TRY TO READ %x,%x. IF SUCCEED, SET PTR = 0 */ - if (hexToInt(&ptr,&addr) - && *(ptr++) == ',' - && hexToInt (&ptr,&length)) - { - if (valid_addr_range (addr, length)) - putHex (0, addr, length); - else - putPacket ("E03"); - } - else - putPacket ("E02"); - } - else if (kind == 'R') - { - if (hexToInt (&ptr, &addr)) - registers.pc = addr; - putPacket ("OK"); - } - else if (kind == '!') - putPacket ("OK"); - else if (kind == '?') - putHex ('S', (unsigned long)(unsigned int)&sigval, 1); - else if (kind == 'g') - putHex (0, (unsigned long)(unsigned int)®isters, NUMREGBYTES); - else if (kind == 'P') - { - /* set the value of a single CPU register - return OK */ - unsigned long regno; - - if (hexToInt (&ptr, ®no) - && *ptr++ == '=' - && regno < NUMREGS) - { - hex2mem (ptr, (unsigned long)(unsigned int)(registers.r + regno), - regno == PC ? 4 : 2); - putPacket ("OK"); - } - else - putPacket ("E01"); - } - else if (kind == 'G') - { - /* set the value of the CPU registers - return OK */ - hex2mem(ptr, (unsigned long)(unsigned int)®isters, NUMREGBYTES); - putPacket ("OK"); - } - else if (kind == 's' || kind == 'c') - { - /* sAA..AA Step one instruction from AA..AA(optional) */ - /* cAA..AA Continue from address AA..AA(optional) */ - /* try to read optional parameter, pc unchanged if no parm */ - - is_running = 1; - - if (hexToInt(&ptr,&addr)) - registers.pc = addr; - - if (kind == 's') /* single-stepping */ - prepare_to_step(); - return; - } - else if (kind == 'k') - { - /* kill the program */ - assign_regs (®isters, &orig_registers); - is_running = 0; - putPacket (""); - } - else - /* Unknown code. Return an empty reply message. */ - putPacket (""); - } -} - -static int -hex (int ch) -{ - if ((ch >= '0') && (ch <= '9')) return (ch-'0'); - if ((ch >= 'a') && (ch <= 'f')) return (ch-'a'+10); - if ((ch >= 'A') && (ch <= 'F')) return (ch-'A'+10); - return (-1); -} - -/* scan for the sequence $<data>#<checksum> */ - -static unsigned char * -getpacket (void) -{ - unsigned char *buffer = &remcomBuffer[0]; - unsigned checksum; - int count; - char ch; - - while (1) - { - /* wait around for the start character, ignore all other characters */ - while (getDebugChar () != '$') - ; - - checksum = 0; - count = 0; - while ((ch = getDebugChar ()) == '$') - ; - - /* now, read until a # or end of buffer is found */ - while (ch != '#' && count < BUFMAX - 1) - { - checksum = checksum + ch; - buffer[count] = ch; - count = count + 1; - ch = getDebugChar (); - } - buffer[count] = 0; - - if (ch == '#') - { - unsigned xmitcsum; - ch = getDebugChar (); - xmitcsum = hex (ch) << 4; - ch = getDebugChar (); - xmitcsum += hex (ch); - - /* If one of the above 'hex' calls returns -1, xmitcsum will - have high bits set, and so the test below will fail. */ - - if ((checksum & 0xFF) != xmitcsum) - putDebugChar ('-'); /* failed checksum */ - else - { - putDebugChar ('+'); /* successful transfer */ - return &buffer[0]; - } - } - } -} - -/* send the packet in buffer. */ - -static void -putPacket (unsigned char *buffer_p) -{ - /* $<packet info>#<checksum>. */ - do { - unsigned checksum; - unsigned char *buffer = buffer_p; - - putDebugChar('$'); - checksum = 0; - - while (*buffer) { - putDebugChar(*buffer); - checksum += *buffer; - buffer++; - } - putDebugChar('#'); - putDebugChar(hexchars[(checksum >> 4) % 16]); - putDebugChar(hexchars[checksum % 16]); - } while (getDebugChar() != '+'); -} - -/* Convert the memory pointed to by mem into hex, and return it as a packet. */ - -static void -putHex (char c, unsigned long mem_arg, int count) -{ - do { - unsigned long mem = mem_arg; - int i; - unsigned checksum; - - putDebugChar('$'); - checksum = 0; - - if (c) - { - checksum = c; - putDebugChar(c); - } - - for (i = 0; i < count; i++) - { - unsigned char c = get_char (mem); - char ch = hexchars[c >> 4]; - putDebugChar(ch); - checksum += ch; - ch = hexchars[c % 16]; - putDebugChar(ch); - checksum += ch; - mem++; - } - putDebugChar('#'); - putDebugChar(hexchars[(checksum >> 4) % 16]); - putDebugChar(hexchars[checksum % 16]); - } while (getDebugChar() != '+'); -} - -/* Function: gdb_write(char *, int) - Make gdb write n bytes to stdout (not assumed to be null-terminated). */ - -void -gdb_write (char *data, int len) -{ - ERR_DETECT_REG &= ~SER0_IRQ_ENA; - putHex ('O', (unsigned long)(unsigned int)data, len); - ERR_DETECT_REG |= SER0_IRQ_ENA; -} - -int -gdb_read (char *buf, int nbytes) -{ - int i = 0; - - ERR_DETECT_REG &= ~SER0_IRQ_ENA; - for (i = 0; i < nbytes; i++) - { - *(buf + i) = getDebugChar(); - if ((*(buf + i) == '\n') || (*(buf + i) == '\r')) - { - (*(buf + i + 1)) = 0; - break; - } - } - ERR_DETECT_REG |= SER0_IRQ_ENA; - return (i); -} - -static int -valid_addr_range (unsigned long mem, int count) -{ - unsigned long last = mem + count - 1; - - if (last < 0x800L) - return 1; - - if (mem < 0x7f00L) - return 0; - - if (last > 0x7ffffL) - return 0; - - return 1; -} - -/* Convert the hex array pointed to by buf into binary to be placed in mem. - Return a pointer to the character AFTER the last byte written. */ - -static void -hex2mem (unsigned char *buf, unsigned long mem, int count) -{ - int i; - unsigned char ch; - - for (i=0;i<count;i++) - { - ch = hex(*buf++) << 4; - ch = ch + hex(*buf++); - set_char (mem++, ch); - } -} - -/**********************************************/ -/* WHILE WE FIND NICE HEX CHARS, BUILD AN INT */ -/* RETURN NUMBER OF CHARS PROCESSED */ -/**********************************************/ -static int -hexToInt (unsigned char **ptr, long *intValue) -{ - int numChars = 0; - int hexValue; - - *intValue = 0; - while (**ptr) - { - hexValue = hex(**ptr); - if (hexValue >=0) - { - *intValue = (*intValue <<4) | (unsigned) hexValue; - numChars ++; - } - else - break; - (*ptr)++; - } - return (numChars); -} - - -/* Function: opcode_size - Determine number of bytes in full opcode by examining first word. -*/ -static int -opcode_size(unsigned int opcode) -{ - if ((opcode & 0xff00) == 0) - return 2; - - if ((opcode & 0xf800) == 0) - return 4; - - if ((opcode & 0xf800) == 0x7800) - return 4; - - if ((opcode & 0xf000) == 0xc000) - return 4; - - if ((opcode & 0xf100) == 0x2000) - return 4; - - if ((opcode & 0xfff0) == 0x30e0) - return 4; - - if ((opcode & 0xf008) == 0x6008) - return 4; - - if ((opcode & 0xf808) == 0x7008) - return 4; - - opcode >>= 8; - if (opcode == 0x0c || opcode == 0x0d || opcode == 0x31) - return 4; - - return 2; -} - -static struct { - unsigned long addr; - unsigned long addr2; - unsigned int opcode; - unsigned int opcode2; -} stepinfo; - -/* Function: prepare_to_step - Called from handle_exception to prepare the user program to single-step. - Places a trap instruction after the target instruction, with special - extra handling for branch instructions. -*/ - -static void -prepare_to_step(void) -{ - unsigned long pc = registers.pc; - unsigned long next_pc, next_pc2; - unsigned int op, op2, sp; - unsigned char op_msb, op_lsb; - int r12; - char r8; - - op = get_word(pc); - op_msb = (op >> 8) & 0xff; - op_lsb = op & 0xff; - op2 = get_word(pc + 2); - next_pc = pc + opcode_size(op); - next_pc2 = 0; - - if (op_msb == 0) - { - if (op_lsb == 2) - { - /* IRET */ - sp = registers.r[SP]; - next_pc = *(unsigned *)(sp - 4); - next_pc = (next_pc << 16) | *(unsigned *)(sp - 6); - } - else if (op_lsb == 3) - { - /* RET */ - sp = registers.r[SP]; - next_pc = *(unsigned *)(sp - 2); - next_pc = (next_pc << 16) | *(unsigned *)(sp - 4); - } - else - { - op2 = op_lsb & 0xf0; - if (op2 && op2 < 0x40) - { - /* {CALLR,BR,ICALLR} Rs */ - next_pc = (pc + 2) + (int)registers.r[op_lsb & 0xf]; - } - else if (op2 < 0x80 || op2 == 0xa0 || op2 == 0xb0) - { - /* {JMP,ICALL,CALL} Rb,Rs */ - next_pc = registers.r[(op_lsb & 0x10) ? 9 : 8]; - next_pc = (next_pc << 16) | (unsigned int)registers.r[op_lsb & 0xf]; - } - } - } - else if (op_msb < 4) - { - /* {CALLF,JMPF,ICALLF} a24 */ - next_pc = ((unsigned long)op2) << 8; - next_pc |= op_lsb; - } - else if (op_msb < 8) - { - if ((op2 & 0xf000) == 0) - { - /* Bx Rd,#imm4,r12 */ - /* Bx Rd,Rs,r12 */ - r12 = op2 << 4; - r12 >>= 4; - next_pc2 = (pc + 4) + r12; - } - } - else if (op_msb == 0x0c || op_msb == 0x0d || (op_msb & 0xf1) == 0x20 || - ((op_msb >= 0x7c && op_msb <= 0x7f) && (op2 & 0x8000) == 0)) - { - /* Bxx Rd,Rs,r12 */ - /* Bxx Rd,#imm8,r12 */ - /* Bx m8,#imm3,r12 */ - /* Bx s8,#imm3,r12 */ - r12 = op2 << 4; - r12 >>= 4; - next_pc2 = (pc + 4) + r12; - } - else if ((op_msb & 0xf0) == 0x10) - { - /* {BR,CALLR} r12 */ - r12 = (op & 0xffe) << 4; - r12 >>= 4; - next_pc = (pc + 2) + r12; - } - else if ((op_msb & 0xe0) == 0xc0) - { - /* Bxx Rx,#imm16,r8 */ - /* TBxx r8 */ - r8 = op_lsb; - next_pc2 = next_pc + r8; - } - - stepinfo.addr = next_pc; - stepinfo.opcode = get_word(next_pc); - set_word(next_pc, BREAKPOINT_OPCODE); - - if (next_pc2) - { - stepinfo.addr2 = next_pc2; - stepinfo.opcode2 = get_word(next_pc2); - set_word(next_pc2, BREAKPOINT_OPCODE); - } -} - -/* Function: finish_from_step - Called from handle_exception to finish up when the user program - returns from a single-step. Replaces the instructions that had - been overwritten by breakpoint. */ - -static void -finish_from_step (void) -{ - if (stepinfo.addr) /* anything to do? */ - { - set_word(stepinfo.addr, stepinfo.opcode); - stepinfo.addr = 0; - if (stepinfo.addr2) - { - set_word(stepinfo.addr2, stepinfo.opcode2); - stepinfo.addr2 = 0; - } - } -} - - -/* - * UART support - */ -#define UART0_BASE 0x7f38 -#define UART1_BASE 0x7f48 - -#define UART_CR(base) (*(volatile unsigned char *)(base)) -#define UART_RXD(base) (*(volatile unsigned int *)((base) + 2)) -#define UART_TXD(base) (*(volatile unsigned int *)((base) + 4)) - -#define UART_CR_RUN 0x80 -#define UART_CR_ERR 0x40 -#define UART_CR_BAUD_115k 0x20 -#define UART_CR_PARITY 0x10 -#define UART_CR_TXEMPTY 0x08 -#define UART_CR_TXIEN 0x04 -#define UART_CR_RXRDY 0x02 -#define UART_CR_RXIEN 0x01 - -#define DBG_UART UART0_BASE - -static void -putDebugChar(unsigned ch) -{ - while ((UART_CR(DBG_UART) & UART_CR_TXEMPTY) == 0) ; - - UART_TXD(DBG_UART) = ch; -} - -static unsigned char -getDebugChar(void) -{ - while ((UART_CR(DBG_UART) & UART_CR_RXRDY) == 0) ; - - return UART_RXD(DBG_UART); -} - -void -uart_init(void) -{ - UART_CR(DBG_UART) |= (UART_CR_RUN | UART_CR_RXIEN); -} - |