* elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any
version info if this symbol came from a dynamic object.
(elf_link_add_object_symbols): Set the version info of a symbol
only if the object actually contains version definitions and
defines this symbol.
Ian Lance Taylor [Wed, 30 Jul 1997 15:22:07 +0000 (15:22 +0000)]
From Ton van Overbeek <[email protected]>:
* resbin.c (res_to_bin_menu): Correct computation of menu
vs. menuex length.
* resrc.c (define_stringtable): Add 1 to resource ID.
Rob Savoye [Tue, 29 Jul 1997 02:46:52 +0000 (02:46 +0000)]
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Makefile.in: Add $(EXEEXT) to all executables.
Rob Savoye [Tue, 29 Jul 1997 01:34:09 +0000 (01:34 +0000)]
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Makefile.in: Add $(EXEEXT) to executable.
Rob Savoye [Tue, 29 Jul 1997 00:54:28 +0000 (00:54 +0000)]
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Makefile.in: Add $(EXEEXT) to all executables.
Rob Savoye [Tue, 29 Jul 1997 00:37:04 +0000 (00:37 +0000)]
* aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* doc/Makefile.in: Add $(EXEEXT) to chew executable.
Felix Lee [Mon, 28 Jul 1997 22:34:36 +0000 (22:34 +0000)]
* Makefile.in (init.c): don't try to scan mswin for _initialize
funcs. (generates misleading error message because files have
.cpp suffix, not .c suffix)
* ser-e7kpc.c: <w32sut.h> -> "mswin/w32sut.h"
* mon960-rom.c: removed unused #includes; no ioctl.h in Windows.
* nindy-share/ttyflush.c: find sleep() for _MSC_VER.
* remote-array.c: #include <ctype.h> for isascii().
* utils.c (notice_quit,pollquit): cleanup. _WIN32 -> _MSC_VER.
Jeff Law [Fri, 25 Jul 1997 22:47:17 +0000 (22:47 +0000)]
* top.c (execute_command): Force cleanup of alloca areas.
* findvar.c (registers_changed): Likewise.
Fixes memory "leak" reported by HP. Call from execute_command is for general
alloca cleanup; call from registers_changed is to fix hp's specific problem.
Jeff Law [Fri, 25 Jul 1997 16:55:52 +0000 (16:55 +0000)]
* tc-hppa.c (md_apply_fix): Improve warnings for out of range
unconditional branches.
(hppa_fix_adjustable): Don't adjust anything with a RR% or LR%
field selector.
Part of the 12912 fixes
Jeff Law [Fri, 25 Jul 1997 14:20:12 +0000 (14:20 +0000)]
* som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the
difference of two symbols if the relocation size is 32 bits.
(som_write_fixups): Handle R_DATA_EXPR.
Useful stuff from one of the aborted attempts to fix 12912.
David Edelsohn [Thu, 24 Jul 1997 22:21:05 +0000 (22:21 +0000)]
* sparc-opc.c (sparc_opcodes): Make array const.
* sparc-dis.c (sorted_opcodes): New static local.
(struct opcode_hash): `opcode' is pointer to const element.
(build_hash): First arg is now table of sorted pointers.
(print_insn_sparc): Sort opcodes by sorting table of pointers.
(compare_opcodes): Update.
Fred Fish [Thu, 24 Jul 1997 20:34:02 +0000 (20:34 +0000)]
* config/tc-tic80.c (build_insn): Remove "extended" and replace with
"fx" and "fxfrag". Add "ffrag". Change code to initialize and use
the right f/ffrag and fx/fxfrag pairs since instruction may be split
across frags.
PR 12899
* emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
(SEGMENT_SIZE): Set to 0x200.
* scripttempl/i386go32.sc: Rewrite.
* configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
* coffswap.h (coff_swap_filehdr_in): Invoke
COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they
are defined.
(coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and
COFF_ADJUST_FILEHDR_OUT_POST if they are defined.
(coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and
COFF_ADJUST_AUX_IN_POST if they are defined.
(coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and
COFF_ADJUST_AUX_OUT_POST if they are defined.
(coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and
COFF_ADJUST_SCNHDR_IN_POST if they are defined.
(coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and
COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
Ian Lance Taylor [Tue, 22 Jul 1997 19:11:04 +0000 (19:11 +0000)]
* configure.in: Check for fdopen.
* configure, config.in: Rebuild.
* opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
__GO32__. Reindent a bit.
* Makefile.in: Change stamp-* files to s-* files. Use bfdt.texi
rather than bfd.texi.
(DOCFILES): Change bfd.texi to bfdt.texi.
* bfd.texinfo: Include bfdt.texi, not bfd.texi.
Ian Lance Taylor [Mon, 21 Jul 1997 03:06:42 +0000 (03:06 +0000)]
* sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED
flag for newly created sections.
(sunos_add_dynamic_symbols): Don't discard newly created sections
if shared library is dynobj.
* partial-stab.h (case N_BINCL): detect missing partial symtab.
* dbxread.c: Add a complaint for N_BINCL without a corresponding
partial symtab. Remove earlier change of 5/27/97.
* sol-thread.c (sol_thread_[store, fetch]_registers): if
inferior_pid is an LWP rather than a Solaris thread, let
procfs handle the request.
(rw_common, sol_thread_xfer_memory): procfs_xfer_memory will
only work if inferior_pid points to an LWP (rather than a
Solaris thread). Use procfs_first_available to find a good LWP.
(info_solthreads): added a maintenance command to list all
known Solaris threads and their attributes.
* mips-tdep.c (mips_do_registers_info): Completely changed the
output format to be neat and columnar. Added the helper funcs
do_fp_register_row and do_gp_register_row. Also small mods to
mips_print_register, which is still used to print a single reg.
* sol-thread.c (sol_thread_[store, fetch]_registers): if
inferior_pid is an LWP rather than a Solaris thread, let
procfs handle the request.
(rw_common, sol_thread_xfer_memory): procfs_xfer_memory will
only work if inferior_pid points to an LWP (rather than a
Solaris thread). Use procfs_first_available to find a good LWP.
(info_solthreads): added a maintenance command to list all
known Solaris threads and their attributes.
David Edelsohn [Tue, 15 Jul 1997 20:02:47 +0000 (20:02 +0000)]
* cgen-opc.c: #include <ctype.h>.
(hash_keyword_name): New arg `case_sensitive_p'. Callers updated.
Handle case insensitive hashing.
(hash_keyword_value): Change type of `value' to unsigned int.
Ian Lance Taylor [Mon, 14 Jul 1997 22:35:27 +0000 (22:35 +0000)]
* elf.c (map_sections_to_segments): When checking whether
including a section in a segment would force us to skip a page,
align the address of the next segment to avoid wraparound
problems.
PR 12828.
Jeff Law [Fri, 11 Jul 1997 16:40:14 +0000 (16:40 +0000)]
* config/tc-mips.c (macro_build): Refine code to check if an
instruction is available on a particular cpu variant.
(mips_ip): Likewise.
toshiba 5900 stuff
Jeff Law [Fri, 11 Jul 1997 16:13:42 +0000 (16:13 +0000)]
* mips-opc.c (mips_builtin_opcodes): If an insn uses single
precision FP, mark it as such. Likewise for double precision
FP. Mark ISA1 insns. Consolidate duplicate opcodes where
possible.
(mips_builtin_opcodes): Remove non-existant r5900 instructions
toshiba_5900 stuff
Jeff Law [Fri, 11 Jul 1997 16:12:56 +0000 (16:12 +0000)]
* mips.h (FP_S, FP_D): Define. Bitmasks indicating if an insn
uses single or double precision floating point resources.
(INSN_NO_ISA, INSN_ISA1): Define.
(cpu specific INSN macros): Tweak into bitmasks outside the range
of INSN_ISA field.
toshiba_5900 stuff
* Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and
IDE configuration information.
* gdbtk.c (breakpoint_notify): Send address, linenumber and
filename when a breakpoint is set. Avoids call to bp_info.
(gdbtk_init): Call Tcl_FindExecutable(). Add code to handle
Itcl, Tix and IDE initialization.
* defs.h (init_ui_hook): Change prototype to accept one arg.
* main.c (gdb_init): Change prototype to accept one arg.
* top.c (gdb_init): Accepts one argument which it uses to
call (*init_ui_hook), which will be gdbtk_init(). This is
used for calling Tcl_FindExecutable().
* gdbtcl/breakpoint.tcl (gdbtk_tcl_breakpoint): Change to
accept variable number of args for compatibility with
cchanges in gdbtk.c.
Fred Fish [Wed, 9 Jul 1997 00:19:41 +0000 (00:19 +0000)]
* coffcode.h (coff_write_object_contents): Initialize
target id field to TIC80_TARGET_ID.
* coffswap.h (coff_swap_filehdr_out): Swap out target id field
if used.
(coff_swap_filehdr_in): Swap in target id field if used.