aboutsummaryrefslogtreecommitdiff
path: root/libgloss/mips
AgeCommit message (Collapse)AuthorFilesLines
2021-11-06libgloss: regenerate aclocal.m4 & configure w/newer versionsMike Frysinger3-403/+547
Regenerate the files using automake-1.15 & autoconf-2.69 to match the binutils/gdb/gcc projects. Ran: libgloss $ find -name configure.ac -printf '%h\n' | while read d; do (cd $d; export WANT_AUTOCONF=2.69 WANT_AUTOMAKE=1.15; aclocal-1.15 -I.. && autoconf-2.69); done
2021-09-13libgloss/newlib: rename configure.in to configure.acMike Frysinger1-0/+0
The .in name has been deprecated for a long time in favor of .ac.
2019-07-30Align _end symbol to at least 4 in all MIPS scriptsFaraz Shahbazker16-0/+16
Left-over part of commit 84b2a020daa17d8ee5c9ec979c3d56f95e69573b The _end marker must be aligned to 4-bytes to ensure that the last element written does not reach beyond the address of _end. This is also necessary as the termination condition is an equality test instead of an ordered test so (_end - _fbss) must be a multiple of 4-bytes. The alignment is already correct for mti*.ld files, fix it for all remaining MIPS scripts that don't already align to at least 4.
2019-05-15Make .data section placement coincide with _fdata symbolFaraz Shahbazker22-0/+22
The _fdata symbol in MIPS linker scripts is aligned to a 16-byte boundary. The ALIGN function does not implicitly update current location counter. If sections positioned after the assignment do not have the same natural alignment as the ALIGN function then the start of the section group will not coincide with the value of the symbol. Given the linker command sequence: symbol = ALIGN (NN); (.section*) where the idiom implies a desire to mark the beginning of .section with symbol, there must be an assignment to the location counter between the assignment to symbol and the .section pattern. libgloss/ * mips/array.ld: Update the location counter to match _fdata. * mips/cfe.ld: Likewise. * 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/mti32.ld: Likewise. * mips/mti64.ld: Likewise. * mips/mti64_64.ld: Likewise. * mips/mti64_n32.ld: Likewise. * mips/nullmon.ld: Likewise. * mips/pmon.ld: Likewise. * mips/sde32.ld: Likewise. * mips/sde64.ld: Likewise.
2019-04-29Fix order of eh_frame sections in linker scriptsFaraz Shahbazker18-18/+118
The compiler driver positions the linker script at the end of the linker command-line, after crtend.o. As a result, any INPUT objects and archive GROUPs introduced by the linker script are placed after crtend.o and the end-of-frame marker provided by crtend.o ends up in between .eh_frames instead of being at the end. This has always been a problem, but a binutils update to clean-up redundant NULL markers in .eh_frame exposes it as a execution failure in exception-handling tests. This patch re-orders .eh_frames in all MIPS linker scripts so that the one from crtend.o is always placed last. libgloss/ * mips/array.ld: Re-order to place .eh_frame from crtend.o after all other .eh_frame sections. * mips/cfe.ld: Likewise. * 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/jmr3904app.ld: Likewise. * mips/lsi.ld: Likewise. * mips/mti32.ld: Likewise. * mips/mti64.ld: Likewise. * mips/mti64_64.ld: Likewise. * mips/mti64_n32.ld: Likewise. * mips/nullmon.ld: Likewise. * mips/pmon.ld: Likewise. * mips/sde32.ld: Likewise. * mips/sde64.ld: Likewise.
2014-11-28 * mips/crt0.S: Configure processor based on .MIPS.abiflags.Corinna Vinschen7-28/+181
Remove FPU availability check, just use the pre-processor flags to indicicate what the user wanted. * mips/abiflags.S: New file. * mips/regs.S (SR_MSA): Define macro. * mips/mti32.ld: Place .MIPS.abiflags and wrap in marker symbols. * mips/mti64.ld: Likewise. * mips/mti64_64.ld: Likewise. * mips/mti64_n32.ld: Likewise.
2014-11-272014-11-26 Matthew Fortune <Matthew.Fortune@imgtec.com>Jeff Johnston1-35/+18
* mips/crt0.S: Remove .set noreorder throughout. (zerobss): Open code the bltu macro instruction so that the zero-loop does not have a NOP in the branch delay slot.
2013-12-042013-12-04 Steve Ellcey <sellcey@mips.com>Steve Ellcey1-0/+1
* mips/cfe_api.h: Include stdint.h.
2013-09-302013-09-30 Steve Ellcey <sellcey@mips.com>Jeff Johnston1-1/+2
* mips/Makefile.in (install): Add mkdir, fix install command.
2013-07-242013-07-24 Steve Ellcey <sellcey@mips.com>Steve Ellcey1-0/+3
* mips/idtmon.S (unlink, lseek, stat): Add new functions.
2013-04-192013-04-19 Steve Ellcey <sellcey@imgtec.com>Steve Ellcey1-7/+0
* mips/cfe_api.h (int64_t): Remove define. (uint64_t): Remove define. (intptr_t): Remove define. (uintptr_t): Remove define. (sys/types.h): Remove include. (_ansi.h): Remove include.
2012-10-022012-10-02 Steve Ellcey <sellcey@mips.com>Steve Ellcey8-1294/+2467
* mips/configure.in: Add new linker scripts to script list. * mips/configure: Regenerate. * mips/mti32.ld: New. * mips/mti64.ld: New. * mips/mti64_n32.ld: New. * mips/mti64_64.ld: New. * mips/sde32.ld: New. * mips/sde64.ld: New.
2008-12-06 * mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. UpdateAdam Nemet1-3/+3
comment.
2008-12-05 * mips/idt64.ld: Set arch to mips:isa64r2 from mips:isa64. UpdateAdam Nemet1-3/+5
comment.
2008-04-04[newlib]DJ Delorie1-1193/+1799
* libm/machine/spu/configure: Regenerate with autoconf 2.61. * libc/sys/configure: Regenerate with autoconf 2.61. * libc/machine/configure: Regenerate with autoconf 2.61. [libgloss] * hp74x/configure: Regenerate with autoconf 2.61. * fr30/configure: Regenerate with autoconf 2.61. * mips/configure: Regenerate with autoconf 2.61. * xstormy16/configure: Regenerate with autoconf 2.61. * rs6000/configure: Regenerate with autoconf 2.61. * d30v/configure: Regenerate with autoconf 2.61. * i386/configure: Regenerate with autoconf 2.61. * configure: Regenerate with autoconf 2.61. * wince/configure: Regenerate with autoconf 2.61. * pa/configure: Regenerate with autoconf 2.61. * m32r/configure: Regenerate with autoconf 2.61. * mn10200/configure: Regenerate with autoconf 2.61. * iq2000/configure: Regenerate with autoconf 2.61. * cris/configure: Regenerate with autoconf 2.61. * m68k/configure: Regenerate with autoconf 2.61. * spu/configure: Regenerate with autoconf 2.61. * m32c/configure: Regenerate with autoconf 2.61. * mn10300/configure: Regenerate with autoconf 2.61. * i960/configure: Regenerate with autoconf 2.61. * arm/configure: Regenerate with autoconf 2.61. * libnosys/configure: Regenerate with autoconf 2.61. * m68hc11/configure: Regenerate with autoconf 2.61. * bfin/configure: Regenerate with autoconf 2.61. * crx/configure: Regenerate with autoconf 2.61. * mt/configure: Regenerate with autoconf 2.61. * sparc/configure: Regenerate with autoconf 2.61. * sparc/libsys/configure: Regenerate with autoconf 2.61. * mcore/configure: Regenerate with autoconf 2.61. * mep/configure: Regenerate with autoconf 2.61. * frv/configure: Regenerate with autoconf 2.61. * doc/configure: Regenerate with autoconf 2.61.
2006-11-272006-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+1
* mips/crt0.S: Fix preprocessor statements from previous patch to be ANSI.
2006-11-242006-11-24 Thiemo Seufer <ths@mips.com>Jeff Johnston1-4/+14
Nigel Stephens <nigel@mips.com> * mips/crt0.S (_start): Use all available float registers. Don't touch SR_PE on post-mips2 CPUs, it means soft reset there.
2006-10-102006-10-10 Thiemo Seufer <ths@mips.com>Jeff Johnston1-2/+2
* mips/Makefile.in: Add INCLUDES to local compile rules.
2006-10-10Removed.Jeff Johnston2-774/+0
2006-08-212006-08-21 David Ung <davidu@mips.com>Jeff Johnston1-0/+3
* mips/Makefile.in: Add rule for cygmon.o and pass the -mno-mips16 option since it uses the syscall instruction.
2006-06-082006-06-08 Fred Fish <fnf@specifix.com>Jeff Johnston5-0/+55
* mips/idt.ld, mips/idt32.ld, mips/idt64.ld, mips/nullmon.ld, mips/pmon.ld: Keep special sections generated by mips gcc.
2006-05-232006-05-23 Fred Fish <fnf@specifix.com>Jeff Johnston2-2/+2
* mips/configure.in: Change mipsisa64-*-* to mipsisa64*-*-* to catch minor variations like mipsisa64sb1.
2006-05-102006-05-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-0/+2
* 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-04-192006-04-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-704/+2924
* 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.
2005-10-032005-10-03 James E Wilson <wilson@specifix.com>Jeff Johnston16-0/+16
* 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-232005-09-23 James E Wilson <wilson@specifix.com>Jeff Johnston16-48/+64
* 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-07-182005-07-18 Richard Sandiford <richard@codesourcery.com>Jeff Johnston16-16/+48
* 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-05-20 * arm/elf-redboot.ld, iq2000/sim.ld, m68hc11/sim-valid-m68hc11.ld,Corinna Vinschen13-0/+13
* 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-04-192005-04-19 Eric Christopher <echristo@redhat.com>Eric Christopher1-3/+4
* mips/regs.S: Sign extend constants for mips64 and unify address handling.
2005-04-12 * mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld,Richard Sandiford14-28/+28
* 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.
2004-06-282004-06-27 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>Jeff Johnston1-2/+3
* 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-05-05 * mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld,Richard Sandiford12-0/+48
* 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-032004-04-02 Chris Demetriou <cgd@broadcom.com>Jeff Johnston3-5/+5
* 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-242004-03-23 Eric Christopher <echristo@redhat.com>Eric Christopher2-11/+32
* mips/configure.in: Add mipsisa64-*-* to target support. * mips/configure: Regenerate. * frv/crt0.S: Fix comment.
2003-08-202003-08-20 Chris Demetriou <cgd@broadcom.com>Jeff Johnston9-180/+486
* 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-05-262003-05-26 Eric Christopher <echristo@redhat.com>Jeff Johnston1-2/+0
* mips/crt0.S: Remove stackbase variable set.
2003-05-02Check in proper version of Eric's patch.Jeff Johnston1-1/+1
2003-05-022003-05-02 Eric Christopher <echristo@redhat.com>Jeff Johnston1-1/+1
* mips/cma101.c (__sizemem): Make sure that end is not in .sdata.
2003-04-102003-04-09 Chris Demetriou <cgd@broadcom.com>Jeff Johnston1-0/+10
* mips/cfe.c (_flush_cache): New function.
2003-02-18 * mips/nullmon.c (_ftext, _end): Adjust declaration.Richard Sandiford1-9/+4
(get_mem_info): Rework.
2003-02-18 * mips/crt0.S (zerobss): Reload __memsize after call.Richard Sandiford1-0/+1
2003-02-172003-02-17 Chris Demetriou <cgd@broadcom.com>Jeff Johnston1-3/+8
* mips/cfe.c (__cfe_handle, __cfe_entrypt): Fix types.
2003-02-052003-02-05 Chris Demetriou <cgd@broadcom.com>Jeff Johnston2-18/+31
* 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-052003-02-05 Chris Demetriou <cgd@broadcom.com>Jeff Johnston2-17/+20
* mips/cfe.c (hardware_hazard_hook): Move... * mips/cfe_prestart.S (hardware_hazard_hook): To here, and translate into assembly.
2003-01-08 * mips/crt0.S (_start): Allocate 64 bytes of stack instead of 32.Richard Sandiford1-12/+14
Pass an empty argv and envp to main().
2003-01-08 * mips/configure.in (mips64vr-elf, mips64vrel-elf): New config.Richard Sandiford2-27/+26
* mips/configure: Regenerate.
2003-01-072002-01-07 Chris Demetriou <cgd@broadcom.com>Jeff Johnston3-9/+9
* 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-122002-11-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston7-30/+296
* 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-10-07 * mips/ddb.ld: KEEP .init and .fini.Richard Sandiford2-4/+4
* mips/ddb-kseg0.ld: Likewise.
2002-08-01 * mips/cfe.ld (STARTUP): New definition.Thomas Fitzsimmons12-0/+12
* 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.