* elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
char *, when calling bfd_get_32 and bfd_put_32.
* sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
when calling strcpy.
Andrew Cagney [Fri, 3 Oct 1997 00:03:35 +0000 (00:03 +0000)]
Rewrite simulator floating point module. Do not rely on host FP
implementation. Add preliminary support for different IEEE-754
rounding modes. Implement SQRT in software.
Update TiC80 simulator.
Add sim-fpu -> TestFloat interface for testing.
David Edelsohn [Thu, 2 Oct 1997 23:55:22 +0000 (23:55 +0000)]
* reloc.c (bfd_check_overflow): New function.
(bfd_perform_relocation, bfd_install_relocation): Use it.
(BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
(BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
are not adding the first input section, and SEC_READONLY is clear
on the output section, then don't copy it from the input section.
If SEC_READONLY is not set on the input section, then clear it on
the output section.
* configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
elf32bmip.
(mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
to elf32bsmip.
(mips*-*-linux*): Likewise.
* emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
setting ENTRY to __start.
* emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
setting ENTRY to __start.
* scripttempl/elf.sc: Always set ENTRY to _start if it was not
already set.
* Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h.
(stmp-bfd-h): Rename from stmp-bfd.h.
(BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables.
($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h.
(stmp-bin2-h): New target.
($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h.
(stmp-lbfd-h): New target.
($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h.
(stmp-lcoff-h): New target.
(CLEANFILES): Change stmp-bfd.h to stmp-bfd-h. Add stmp-bin2.h,
stmp-lbfd-h, and stmp-lcoff-h.
* Makefile.in: Rebuild.
Mark Alexander [Tue, 30 Sep 1997 06:20:59 +0000 (06:20 +0000)]
* mips-tdep.c (set_reg_offset): New function.
(mips16_heuristic_proc_desc): Calculate offsets of registers
saved by entry pseudo-op after rest of prologue has been read.
Use set_reg_offset to ignore all but the first save of a given
register.
(mips32_heuristic_proc_desc): Initialize frame adjustment value.
* remote-sim.c (gdbsim_store_register): Don't update registers
that have a null or empty name.
* findvar.c (read_register_bytes): Don't fetch registers
that have a null or empty name.
Mark Alexander [Fri, 26 Sep 1997 19:42:55 +0000 (19:42 +0000)]
* config/mips-tm-mips.h (mips_extra_func_info): New frame_adjust
member for storing offset of MIPS16 frame pointer from SP.
* mips-tdep.c: Use RA_REGNUM instead of hardcoded 31 throughout.
(PROC_FRAME_ADJUST): Define.
(mips16_heuristic_proc_desc): Store frame pointer adjustment value.
(get_frame_pointer): Use frame pointer adjustment value when
calculating frame address.
* remote-sim.c (gdbsim_fetch_register): Don't fetch registers
that have a null or empty name.
start-sanitize-tx19
* config/mips/tm-tx19.h (MIPS_DEFAULT_FPU_TYPE): Define.
(REGISTER_NAMES): Redefine to eliminate FP registers.
* config/mips/tm-tx19l.h: Ditto.
end-sanitize-tx19
Stu Grossman [Thu, 25 Sep 1997 01:26:36 +0000 (01:26 +0000)]
* The following block of changes add support for debugging assembly
source files.
* breakpoint.c (resolve_sal_pc): Prevent crash when pc isn't
associated with a function.
* buildsym.c (record_line start_symtab end_symtab): Don't delete
symtabs which only have line numbers (but no other debug symbols).
* dbxread.c (read_dbx_symtab end_psymtab): Ditto.
* remote-sim.c: New functions gdbsim_insert/remove_breakpoint. Use
intrinsic simulator breakpoints if available, otherwise do it the
hard way.
* configure.tgt: Add d30v.
* d30v-tdep.c: New file.
* config/d30v/d30v.mt, config/d30v/tm-d30v.h: New files.
Stu Grossman [Thu, 25 Sep 1997 01:05:31 +0000 (01:05 +0000)]
* remote-sim.h (SIM_RC): Add a bunch of new return codes for
breakpoint stuff.
* Add functions to tell the simulator to set/clear/enable/disable
intrinsic breakpoints.
Stu Grossman [Thu, 25 Sep 1997 00:51:17 +0000 (00:51 +0000)]
* Make-common.in: New files sim-break.c, sim-break.h.
* sim-base.h: Add point to breakpoint list to sim_state_base.
* sim-break.c sim-break.h: New modules that implement intrinsic
breakpoint support.
* sim-module.c: Add breakpoint module.
Ian Lance Taylor [Tue, 23 Sep 1997 23:04:37 +0000 (23:04 +0000)]
* elf.c (map_sections_to_segments): Even if we are not demand
paged, don't put a loadable section after a nonloadable section.
(assign_file_positions_for_segments): Increment the file offset
for a section with contents, even if it is not loadable.
PR 13139.
Ian Lance Taylor [Tue, 23 Sep 1997 21:49:22 +0000 (21:49 +0000)]
* config/tc-mips.c (hilo_interlocks): Change from a static
variable to a macro, so that it varies with the variables upon
which it depends.
(gpr_interlocks, cop_interlocks): Likewise.
(md_begin): Don't initialize them.
Felix Lee [Tue, 23 Sep 1997 18:08:09 +0000 (18:08 +0000)]
* sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
an hour.
* sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
if (0) { 1 % 0; }
* sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
(SIGBUS) define for Windows.
* sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
* sim-resume.c: define SIGTRAP for windows.
* sim-xcat.h: use token pasting if ALMOST_STDC.
Peter Schauer [Tue, 23 Sep 1997 07:10:51 +0000 (07:10 +0000)]
* mips-tdep.c (mips_push_arguments): Tweak alignment of register
value if the remaining length of a non-integral argument is smaller
than the register size for big-endian non-EABI mode.
* rs6000-tdep.c (branch_dest): Handle return from signal
handler function via sigreturn kernel call.
Andrew Cagney [Tue, 23 Sep 1997 01:25:26 +0000 (01:25 +0000)]
Remove need to update <targ>/Makefile.in when adding optional options
to <targ>/configure.in.
Simplify logic used to select target [default] endianness.
Andrew Cagney [Mon, 22 Sep 1997 00:24:46 +0000 (00:24 +0000)]
Add support for --enable-sim-alignment to simulator common aclocal.m4
Add support for --alignment={strict,nonstrict,forced} to simulator common
run-time options.
For v850 use, make the default NONSTRICT_ALIGNMENT.