Jeff Johnston
277723722f
2008-01-03 Jeff Johnston <jjohnstn@redhat.com>
...
* arm/redboot-syscalls.c: Consistently supply _isatty if syscalls
dir is used in newlib.
* bfin/syscalls.c: Ditto.
* cris/gensyscalls: Ditto.
* fr30/syscalls.c: Ditto.
* frv/isatty.c: Ditto.
* iq2000/isatty.c: Ditto.
* libnosys/isatty.c: Ditto.
* m32r/isatty.c: Ditto.
* mn10200/isatty.c: Ditto.
* mn10300/isatty.c: Ditto.
* xstormy16/isatty.c: New file with _isatty function.
2008-01-03 22:38:31 +00:00
Jeff Johnston
a9a6f94229
2007-08-13 Carlos O'Donell <carlos@codesourcery.com>
...
* arm/crt0.S: Remove '.set' for __stack, hardware_init_hook,
and software_init_hook.
2007-08-13 18:13:39 +00:00
Jeff Johnston
847e89f8e1
2007-08-10 Carlos O'Donell <carlos@codesourcery.com>
...
2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
* arm/syscalls.c (_stat): Use _close
* arm/syscalls.c (struct poslog): Rename to...
(struct fdent): ... this.
(FILE_HANDLE_OFFSET): Remove.
(findslot): Return a struct fdent* if fd is valid, otherwise return NULL.
(newslot): New function.
(remap_handle): Remove.
(initialise_monitor_handles): Use stdout as fallback for stderr.
(wrap): Rename to...
(checkerror): ... this.
(_swiread): Use checkerror() for the return of SWI calls. Correct the use of r0.
(_read): Use findslot(). Return EBADF on bad handle.
(_swilseek): Call findslot(). Check for valid whence. Check for negative offset when using
SEEK_CUR, and check for overflow. Use checkerror(). Check *_Flen calls for errors.
(_swiwrite): Correct the use of r0.
(_write): Call findslot().
(_swiopen): Call findslot(). Check for valid flags. Use checkerror(). Call newslot().
Handle O_TRUNC, and O_WRONLY. Return index into openfiles[] for fd.
(_swiclose): Correct the use of r0.
(_close): Handle stderr == stdout case. Only reclaim handle if _swiclose succeeded.
(_getpid): Use __attribute__((unused)).
(_sbrk): Fix formatting.
(_swistat): New function.
(_stat): Call _swistat().
(_fstat): Call _swistat().
(_unlink): Correct the use of r0.
(isatty): Call finslot(). Correct the use of r0.
(_system): Call checkerror(). Correct the use of r0.
(_rename): Correct the use of r0.
2007-08-10 19:36:46 +00:00
Jeff Johnston
de229adb1a
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
...
* arm/syscalls.c (gettimeofday): Change to POSIX signature
where second argument is passed as void *.
* bfin/syscalls.c (gettimeofday): Ditto.
* cris/gensyscalls (gettimeofday): Ditto.
* cris/linunistd.h (gettimeofday): Ditto.
* crx/time.c (gettimeofday): Ditto.
* frv/sim-time.c (gettimeofday): Ditto.
* i386/cygmon-salib.c (gettimeofday): Ditto.
* libnosys/gettod.c (gettimeofday): Ditto.
* m68k/io-gettimeofday.c (gettimeofday): Ditto.
* sparc/cygmon-salib.c (gettimeofday): Ditto.
* spu/gettimeofday.c (gettimeofday): Ditto.
2007-07-06 17:00:13 +00:00
Jeff Johnston
4d95d0e99a
2006-01-03 Kazu Hirata <kazu@codesourcery.com>
...
* arm/Makefile (RDPMON_OBJS): Add _exit.o and _kill.o.
(RDIMON_OBJS): Define in terms of RDPMON_OBJS.
(rdimon-_exit.o, rdimon-_kill.o): New.
* arm/_exit.c, arm/_kill.c: New.
* arm/syscalls.c (_exit, _kill): Remove.
2007-01-03 16:55:25 +00:00
Kazu Hirata
3e0c6ff3a7
* arm/licfunc.c (do_AngelSWI): Remove.
...
* arm/syscalls.c (do_AngelSWI): Remove.
* arm/swi.h (do_AngelSWI): New.
2006-12-25 23:05:24 +00:00
Kazu Hirata
7f0213da6b
* arm/syscalls.c (_unlink, _system, _rename): Cast arguments
...
to do_AngelSWI to int.
2006-12-25 23:03:21 +00:00
Jeff Johnston
bdcabb255c
2006-10-03 Jeff Johnston <jjohnstn@redhat.com>
...
* arm/linux-syscalls0.c: Rewrite bx insn architecture flag check to avoid use of __ARM_ARCH__.
2006-10-03 16:33:50 +00:00
Jeff Johnston
04a8b4ee18
2006-10-02 Nick Clifton <nickc@redhat.com>
...
* arm/linux-syscalls0.c: Add arm architecture flag
checks around bx insn.
2006-10-02 19:57:46 +00:00
Jeff Johnston
d82b4a993b
2006-08-24 Paul Brook <paul@codesourcery.com>
...
* arm/linux-crt0.c: Disable Arm stub for Thumb-2.
2006-08-24 23:07:15 +00:00
Shaun Jackman
0b6bb78b34
2006-07-05 Shaun Jackman <sjackman@gmail.com>
...
* arm/linux-crt0.S: Remove file.
* arm/linux-crt0.c: New file. Supports PIC code.
2006-07-05 15:24:30 +00:00
Shaun Jackman
0a22f2e537
2006-07-04 Shaun Jackman <sjackman@gmail.com>
...
* arm/linux-syscalls0.S (ftruncate, getegid, geteuid, getgid,
getgroups, getpgid, getpgrp, getuid, lchown, pause, pipe,
setpgid, setgid, setsid, setuid, sigprocmask, sync, uname): New
system call.
2006-07-04 23:58:02 +00:00
Jeff Johnston
c3297a3c90
2006-06-23 Shaun Jackman <sjackman@gmail.com>
...
* arm/elf-linux.specs: New file.
2006-06-23 16:27:34 +00:00
Jeff Johnston
73c20c325d
2006-06-13 Sandra Loosemore <sandra@codesourcery.com>
...
* arm/syscalls.c (_unlink, isatty, _system, _rename):
Make them do something useful in the ARM_RDI_MONITOR case.
2006-06-13 20:51:08 +00:00
Jeff Johnston
986b5d2246
2006-06-05 Shaun Jackman <sjackman@gmail.com>
...
* arm/linux-syscalls0.S (reboot): Remove.
* arm/linux-syscalls1.c (reboot): New function.
2006-06-05 20:15:23 +00:00
Jeff Johnston
4c602151f2
2006-06-05 Shaun Jackman <sjackman@gmail.com>
...
* arm/syscalls.c (kill) [ARM_RDI_MONITOR]: Use the signal
argument to choose an ADP exception reason.
* arm/libcfunc.c (abort): Remove this function.
2006-06-05 19:46:18 +00:00
Jeff Johnston
47e55476be
2006-05-30 Shaun Jackman <sjackman@gmail.com>
...
* arm/Makefile.in: Add Linux syscall interface.
* arm/linux-crt0.S: New file.
* arm/linux-syscall.h: New file.
* arm/linux-syscalls0.S: New file.
* arm/linux-syscalls1.c: New file.
2006-05-30 17:40:47 +00:00
Jeff Johnston
00a4b31ad0
2006-05-10 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.in: Pass some additional flags in FLAGS_TO_PASS.
* configure.in: Add additional flags when creating Makefile.
* configure: Regenerated.
* arm/configure
* arm/configure.in: Set with_multisubdir when creating Makefile.
* cris/configure.in: Ditto.
* d30v/configure.in: Ditto.
* frv/configure.in: Ditto.
* i386/configure.in: Ditto.
* iq2000/configure.in: Ditto.
* libnosys/configure.in: Ditto.
* m32c/configure.in: Ditto.
* m32r/configure.in: Ditto.
* m68hc11/configure.in: Ditto.
* m68k/configure.in: Ditto.
* mcore/configure.in: Ditto.
* mips/configure.in: Ditto.
* mn10200/configure.in: Ditto.
* mn10300/configure.in: Ditto.
* mt/configure.in: Ditto.
* pa/configure.in: Ditto.
* rs6000/configure.in: Ditto.
* sparc/configure.in: Ditto.
* cris/configure: Regenerated.
* d30v/configure: Ditto.
* frv/configure: Ditto.
* i386/configure: Ditto.
* iq2000/configure: Ditto.
* libnosys/configure: Ditto.
* m32c/configure: Ditto.
* m32r/configure: Ditto.
* m68hc11/configure: Ditto.
* m68k/configure: Ditto.
* mcore/configure: Ditto.
* mips/configure: Ditto.
* mn10200/configure: Ditto.
* mn10300/configure: Ditto.
* mt/configure: Ditto.
* pa/configure: Ditto.
* rs6000/configure: Ditto.
* sparc/configure: Ditto.
2006-05-10 20:51:41 +00:00
Jeff Johnston
4e71dc1e3a
2006-04-19 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.in: Modified to support autoconf 2.59.
* */configure.in: Ditto.
* configure: Regenerated.
* */configure: Ditto.
* wince/aclocal.m4: Ditto.
* acinclude.m4: New file.
* aclocal.m4: Ditto.
* arm/aclocal.m4: Ditto.
* cris/aclocal.m4: Ditto.
* crx/aclocal.m4: Ditto.
* d30v/aclocal.m4: Ditto.
* fr30/aclocal.m4: Ditto.
* frv/aclocal.m4: Ditto.
* hp74x/aclocal.m4: Ditto.
* i386/aclocal.m4: Ditto.
* i960/aclocal.m4: Ditto.
* iq2000/aclocal.m4: Ditto.
* libnosys/aclocal.m4: Ditto.
* m32c/aclocal.m4: Ditto.
* m32r/aclocal.m4: Ditto.
* m68hc11/aclocal.m4: Ditto.
* m68k/aclocal.m4: Ditto.
* mcore/aclocal.m4: Ditto.
* mips/aclocal.m4: Ditto.
* mn10200/aclocal.m4: Ditto.
* mn10300/aclocal.m4: Ditto.
* mt/aclocal.m4: Ditto.
* pa/aclocal.m4: Ditto.
* rs6000/aclocal.m4: Ditto.
* sparc/aclocal.m4: Ditto.
* sparc/libsys/aclocal.m4: Ditto.
* xstormy16/aclocal.m4: Ditto.
2006-04-19 19:44:05 +00:00
Jeff Johnston
ff20d12a66
2006-02-24 Paul Brook <paul@codesourcery.com>
...
* arm/redboot-crt0.S: Use cps in Thumb-2 mode.
2006-02-24 20:43:19 +00:00
Jeff Johnston
f9fa511d46
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-02-07 18:46:23 +00:00
Jeff Johnston
7c15164f17
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-30 23:37:14 +00:00
Jeff Johnston
b92f9343b3
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 18:56:41 +00:00
Jeff Johnston
34da20b26f
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-20 20:17:50 +00:00
Jeff Johnston
9276ec15a7
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-17 21:17:17 +00:00
Jeff Johnston
e448b01f6b
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-16 18:05:35 +00:00
Jeff Johnston
3d8098c0f3
Fixed comment spacing.
2005-08-02 19:32:06 +00:00
Jeff Johnston
98bfe22095
2005-08-02 Shaun Jackman <sjackman@gmail.com>
...
* libgloss/arm/libcfunc.c (isatty): New function.
2005-08-02 19:28:31 +00:00
Jeff Johnston
0e77a3817f
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-08-02 19:17:21 +00:00
Jeff Johnston
fd745b00ed
2005-07-19 Paul Brook <paul@codesourcery.com>
...
* arm/crt0.S: Ensure doubleword stack alignment.
2005-07-19 15:15:25 +00:00
Jeff Johnston
ce4654708c
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-18 16:18:17 +00:00
Corinna Vinschen
fece73ae83
* 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-20 15:45:45 +00:00
Jeff Johnston
9cc53904f6
2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com>
...
* arm/syscalls.c (get_errno): Fix output register constraint.
2005-05-05 23:15:53 +00:00
Jeff Johnston
e525f6d51a
2005-04-28 Shaun Jackman <sjackman@gmail.com>
...
* libgloss/syscalls.c (get_errno): Add an output register constraint.
2005-04-28 18:40:39 +00:00
Jeff Johnston
353d0a275c
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-13 00:01:40 +00:00
Jeff Johnston
1d7dd82d69
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-08 19:38:47 +00:00
Jeff Johnston
35310094a1
2005-01-07 Paul Brook <paul@codesourcery.com>
...
* arm/crt0.S: Call __libc_{init,fini}_array instead of
_init/_fini if they exist.
2005-01-07 18:01:26 +00:00
Jeff Johnston
60e4d52a55
2004-11-26 Paul Brook <paul@codesourcery.com>
...
* arm/crt0.S (_start): Add .cantunwind annotation.
2004-11-26 16:43:35 +00:00
Paul Brook
5bc90268ce
2004-01-01 Paul Brook <paul@codesourcery.com>
...
* arm/configure.in: Add *-*-aebi target.
* arm/configure: Regenerate.
2004-10-01 11:37:17 +00:00
Jeff Johnston
051f21ca83
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-28 22:42:21 +00:00
Jeff Johnston
a8992cbaca
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-17 19:33:27 +00:00
Jeff Johnston
a7364adeb9
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-09 19:06:50 +00:00
Jeff Johnston
5b30331167
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-07 00:25:57 +00:00
Jonathan Larmour
6990dc5f3b
* 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-29 21:51:25 +00:00
Mark Salter
2dc2c168c5
Add eh stuff and .jcr.
2002-02-05 18:12:23 +00:00
Mark Salter
61bc57ac89
Add crti to startfile.
2002-02-05 18:11:13 +00:00
Mark Salter
4fa60ba901
Add init/fini support.
2002-02-05 18:09:18 +00:00
Mark Salter
2fed14293b
Use __get_memtop to put stack in high memory.
2002-01-24 13:33:55 +00:00
Mark Salter
54542d8a29
(_times): Unconditionally use SYS_times.
...
(__get_memtop): New funtion to return top of memory.
2002-01-24 13:32:46 +00:00
Mark Salter
62a25ce17c
Add ARM support
2002-01-07 18:12:32 +00:00