* libnosys/Makefile.in (OBJS): Add chown, readlink, and symlink.
* libnosys/chown.c: New file.
* libnosys/readlink.c: New file.
* libnosys/symlink.c: New file.
* 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.
(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
* 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.
* 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.
* libnosys/warning.h (__make_section_unallocated)
[HAVE_ASM_PREVIOUS_DIRECTIVE, HAVE_ASM_POPSECTION_DIRECTIVE]: Use "\n"
instead of ";" to delimit assembly lines.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* mips/configure.in (mipsisa32el-*-*): Handle in the same way
as mipsisa32-*-*.
(mipsisa32r2-*-*, mipsisa32r2el-*-*): New, handled in the same
way as mipsisa32-*-*.
* mips/configure: Regenerate.
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.
* 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.
* 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.
* 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.
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.
* 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.
* 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.
* scripttempl/xstormy16.sc: Don't allocate extra space for the
stack.
In libgloss/ChangeLog:
* 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.
In newlib/ChangeLog:
* configure.host (xstormy16): Don't use the generic malloc.
* libc/machine/xstormy16/Makefile.am: Build tiny-malloc.
* libc/machine/xstormy16/Makefile.in: Regenerate.
* libc/machine/xstormy16/mallocr.c: New file.
* libc/machine/xstormy16/tiny-malloc.c: New file.
2001-12-22 Geoffrey Keating <geoffk@redhat.com>
Catherine Moore <clm@redhat.com>
Richard Henderson <rth@redhat.com>
Corinna Vinschen <vinschen@redhat.com>
* configure.host: Add support for xstormy16.
* libc/include/machine/ieeefp.h: Add support for xstormy16.
* libc/include/machine/setjmp.h: Add support for xstormy16.
* libc/include/sys/config.h: Add support for xstormy16.
* libc/machine/xstormy16/Makefile.am: New file.
* libc/machine/xstormy16/Makefile.in: New file.
* libc/machine/xstormy16/aclocal.m4: New file.
* libc/machine/xstormy16/configure: New file.
* libc/machine/xstormy16/configure.in: New file.
* libc/machine/xstormy16/setjmp.S: New file.
In libgloss/:
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.
* m32r/Makefile.in: Use gdb stub set by configure.
* m32r/configure.in: Add a special macro for testing
c compiler without building executable. Add setting of
GDBSTUB.
* m32r/configure: Regenerated.
* syscall.h: Added SYS_times, SYS_gettimeofday, SYS_link values.
* mn10300/times.c: Renamed "times" to "_times" so that it can be
referenced by newlib.
* mn10300/cygmon.c: New file.
* mn10300/crt0_redboot.S: Ditto.
* mn10300/crt0_cygmon.S: Ditto.
* mn10300/Makefile.in: Added RedBoot and Cygmon support.
* mn10300/configure.in: Changed to allow for future
evaluation boards to be added.
* mn10300/configure: Regenerated.
* m68k/idp-outbyte.c (raw_outbyte): Renamed from outbyte; made
static.
(outbyte): Call raw_outbyte; if GDB_MONITOR_OUTPUT is #defined,
precede the byte with a ^O character.
* m68k/idpgdb.ld: New linker script.
* m68k/Makefile.in (IDPGDB_LDFLAGS, IDPGDB_BSP, IDPGDB_OBJS): New
variables.
(all): Add ${IDPGDB_BSP} to the list of things to build.
(${IDPGDB_BSP}, idp-gdb-outbyte.o, idpgdb-test.x,
idpgdb-test.srec, idpgdb-test.dis, idpgdb-test): New rules.
(install): Install the IDPGDB stuff, too.
* src/libgloss/m68k/Makefile.in: Updated copyright and
added rules to build simulator related libraries.
(SIM_SCRIPTS): New variable.
(SIM_LDFLAGS): New variable.
(SIM_BSP): New variable.
(SIM_CRT0): New variable.
(SIM_OBJS): New variable.
(SIM_TEST): New variable.
(SIM_INSTALL): new variable.
* src/libgloss/m68k/sim-abort.c: New file.
* src/libgloss/m68k/sim-crt0.S: New file.
* src/libgloss/m68k/sim-errno.c: New file.
* src/libgloss/m68k/sim-funcs.c: New file.
* src/libgloss/m68k/sim-inbyte.c: New file.
* src/libgloss/m68k/sim-print.c: New file.
* src/libgloss/m68k/sim-sbrk.c: New file.
* src/libgloss/m68k/sim.ld: New file.
* src/libgloss/m68k/simulator.S: New file.