platform/upstream/binutils.git
27 years agoTue Jan 21 17:03:26 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 22 Jan 1997 01:33:58 +0000 (01:33 +0000)]
Tue Jan 21 17:03:26 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10300-tdep.c: wrote/fixed implementations of
        mn10300_frame_chain, mn10300_init_extra_frame_info,
        mn10300_frame_saved_pc
        * config/mn10300/tm-mn10300.h: redefine INIT_EXTRA_FRAME_INFO
        and INIT_FRAME_PC macros
        Backtracing starting to work correctly.

27 years ago * configure.in configure: Check if host has libm. Make sure we
Stu Grossman [Wed, 22 Jan 1997 01:12:19 +0000 (01:12 +0000)]
* configure.in configure:  Check if host has libm.  Make sure we
are using gcc when using the -export-dynamic option.  Fixes a
problem with building under Solaris/SunPro cc.

27 years ago * simops.c: Undo last change to "rol" and "ror", original code
Jeff Law [Tue, 21 Jan 1997 22:03:39 +0000 (22:03 +0000)]
    * simops.c: Undo last change to "rol" and "ror", original code
        was correct!

27 years ago * coff-tic80.c (tic80coff_vec): Change to little endian data
Fred Fish [Tue, 21 Jan 1997 20:15:46 +0000 (20:15 +0000)]
* coff-tic80.c (tic80coff_vec): Change to little endian data
as the default.

27 years ago * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
David Edelsohn [Tue, 21 Jan 1997 20:10:49 +0000 (20:10 +0000)]
* emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
to define `_stack'.

27 years ago * config/mips/{embed,embed64,embedl,embedl64}.mt:
Mark Alexander [Mon, 20 Jan 1997 22:59:46 +0000 (22:59 +0000)]
* config/mips/{embed,embed64,embedl,embedl64}.mt:
Link in simulator on MIPS embedded targets.

27 years agoMultiply ops sign extend, not zero extend
Michael Meissner [Mon, 20 Jan 1997 21:06:48 +0000 (21:06 +0000)]
Multiply ops sign extend, not zero extend

27 years ago * size.c (berkeley_sum): Rewrite. Skip sections which are not
Ian Lance Taylor [Mon, 20 Jan 1997 20:05:33 +0000 (20:05 +0000)]
* size.c (berkeley_sum): Rewrite.  Skip sections which are not
SEC_ALLOC.  Count SEC_READONLY sections as text.

27 years ago * config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
Ian Lance Taylor [Mon, 20 Jan 1997 19:27:11 +0000 (19:27 +0000)]
* config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
the .reginfo or .MIPS.options section if configured for an
embedded target.

27 years ago* config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
J.T. Conklin [Mon, 20 Jan 1997 19:00:03 +0000 (19:00 +0000)]
* config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
'p' operand specifier.

27 years ago* config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
J.T. Conklin [Mon, 20 Jan 1997 18:47:48 +0000 (18:47 +0000)]
* config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
m68k family cpus which support long branch addressing modes.
(m68k_ip, md_convert_frag_1, md_estimate_size_before_relax,
md_create_long_jump): Use it.

27 years agoMon Jan 20 12:48:57 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 20 Jan 1997 17:50:34 +0000 (17:50 +0000)]
Mon Jan 20 12:48:57 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* m68k-dis.c: Include <libiberty.h>.
(print_insn_m68k): Sort the opcode table on the most significant
nibble of the opcode.

27 years ago * config/tc-mips.c (md_begin): Don't set interlocks for
Ian Lance Taylor [Mon, 20 Jan 1997 17:43:43 +0000 (17:43 +0000)]
* config/tc-mips.c (md_begin): Don't set interlocks for
mips_4650.
PR 11507.

27 years ago * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
Fred Fish [Sun, 19 Jan 1997 22:24:21 +0000 (22:24 +0000)]
  * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
      "vsub", "vst", "xnor", and "xor" instructions.
      (V_a1): Renamed from V_a, msb of accumulator reg number.
      (V_a0): Add macro, lsb of accumulator reg number.

27 years ago * tic80.h (TIC80_NO_R0_DEST): Add for opcodes where r0 cannot
Fred Fish [Sun, 19 Jan 1997 22:22:01 +0000 (22:22 +0000)]
* tic80.h (TIC80_NO_R0_DEST): Add for opcodes where r0 cannot
be the destination register.

27 years ago * tic80-dis.c (print_insn_tic80): Broke excessively long
Fred Fish [Sun, 19 Jan 1997 18:33:10 +0000 (18:33 +0000)]
    * tic80-dis.c (print_insn_tic80): Broke excessively long
        function up into several smaller ones and arranged for
        the instruction printing function to be callable recursively
        to print vector instructions that have both a load and a
        math instruction packed into a single opcode.
        * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
        to explain why it comes after the other vector opcodes.

27 years ago * blockframe.c (frameless_look_for_prologue): Mark frames
Peter Schauer [Sat, 18 Jan 1997 10:33:06 +0000 (10:33 +0000)]
* blockframe.c (frameless_look_for_prologue):  Mark frames
with a zero PC as frameless to improve backtraces from core dumps
caused by dereferencing a NULL function pointer.

27 years agofix operand mask in the "moveml" entries for the coldfire.
J.T. Conklin [Sat, 18 Jan 1997 00:37:30 +0000 (00:37 +0000)]
fix operand mask in the "moveml" entries for the coldfire.

27 years agoFrom the coldfire branch:
J.T. Conklin [Sat, 18 Jan 1997 00:27:23 +0000 (00:27 +0000)]
From the coldfire branch:

* m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
move insns to handle immediate operands.

From Andreas Schwab:

        * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".

27 years agofix sanitize typos
Angela Marie Thomas [Fri, 17 Jan 1997 04:16:18 +0000 (04:16 +0000)]
fix sanitize typos

27 years ago * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
Fred Fish [Fri, 17 Jan 1997 04:00:56 +0000 (04:00 +0000)]
* tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
New macros for building vector instruction opcodes.
(tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
FMT_LI, which were unused.  The field is now a flags field.
Remove some opcodes that are possible, but illegal, such
as long immediate instructions with doubles for immediate
values.  Add "vadd" and "vld" instructions.

27 years ago * tic80.h (struct tic80_opcode): Change "format" field to "flags".
Fred Fish [Fri, 17 Jan 1997 03:53:46 +0000 (03:53 +0000)]
* tic80.h (struct tic80_opcode): Change "format" field to "flags".
(FMT_UNUSED, FMT_SI, FMT_LI, FMT_REG): Delete.
(TIC80_VECTOR): Define a flag bit for the flags.  This one means
that the opcode can have two vector instructions in a single
32 bit word and we have to encode/decode both.

27 years ago * ld.h (args_type): Rename auxiliary_filter_shlib to
Ian Lance Taylor [Thu, 16 Jan 1997 22:52:05 +0000 (22:52 +0000)]
* ld.h (args_type): Rename auxiliary_filter_shlib to
auxiliary_filters, and make it char **.
* lexsup.c (parse_args): Handle -f by setting up an array.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
new name of auxiliary_filters.

27 years ago * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
Ian Lance Taylor [Thu, 16 Jan 1997 22:48:57 +0000 (22:48 +0000)]
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
auxiliary_filters parameter to be const char * const *.  Accept a
NULL terminated array.
* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
(bfd_elf32_size_dynamic_sections): Update declaration.
* bfd-in2.h: Rebuild.

27 years agoupdate copyright
Ian Lance Taylor [Thu, 16 Jan 1997 22:48:24 +0000 (22:48 +0000)]
update copyright

27 years ago * dummy.c (find_call): Clear ignore_direct_calls.
Ian Lance Taylor [Thu, 16 Jan 1997 22:42:59 +0000 (22:42 +0000)]
* dummy.c (find_call): Clear ignore_direct_calls.

27 years agoThu Jan 16 14:10:41 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 16 Jan 1997 22:14:19 +0000 (22:14 +0000)]
Thu Jan 16 14:10:41 1997  Geoffrey Noer  <noer@cygnus.com>

        * config/mn10300/tm-mn10300.h: fix BREAKPOINT definition

27 years ago * ld.texinfo (Options): Improve documentation of --filter and
Ian Lance Taylor [Thu, 16 Jan 1997 22:08:23 +0000 (22:08 +0000)]
* ld.texinfo (Options): Improve documentation of --filter and
--auxiliary.

27 years ago * simops.c: Fix "rol" and "ror".
Jeff Law [Thu, 16 Jan 1997 18:28:46 +0000 (18:28 +0000)]
    * simops.c: Fix "rol" and "ror".
Something I noticed while working on the mn10200.

27 years agofix bugs
Angela Marie Thomas [Thu, 16 Jan 1997 10:50:58 +0000 (10:50 +0000)]
fix bugs

27 years ago * tic80-opc.c (tic80_operands): Reorder some table entries to make
Fred Fish [Thu, 16 Jan 1997 02:10:17 +0000 (02:10 +0000)]
* tic80-opc.c (tic80_operands): Reorder some table entries to make
the order more logical.  Move the shift alias instructions ("rotl",
"shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
  interspersed with the regular sr.x and sl.x instructions.  Add
and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
  "sub", "subu", "swcr", and "trap".

27 years ago * read.c (read_a_source_file): Make sure the symbol ends with
Ian Lance Taylor [Wed, 15 Jan 1997 18:52:53 +0000 (18:52 +0000)]
* read.c (read_a_source_file): Make sure the symbol ends with
whitespace before checking whether the next character is '='.
PR 11461.

27 years ago * simops.c: Fix typo in last change.
Jeff Law [Wed, 15 Jan 1997 13:46:18 +0000 (13:46 +0000)]
    * simops.c: Fix typo in last change.

27 years agoTue Jan 14 16:01:06 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 15 Jan 1997 00:06:41 +0000 (00:06 +0000)]
Tue Jan 14 16:01:06 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10300-tdep.c: made a lot more generic, ripping out code
        from copied target (no more mn10300_scan_prologue,
        init_extra_frame_info, and mn10300_fix_call_dummy calls)
        * config/mn10300/tm-mn10300.h: undefine INIT_EXTRA_FRAME_INFO
        and INIT_FRAME_PC macros

27 years ago * ld.texinfo (Commands): Clarify that the normal usage is -T.
Ian Lance Taylor [Tue, 14 Jan 1997 20:44:48 +0000 (20:44 +0000)]
* ld.texinfo (Commands): Clarify that the normal usage is -T.

27 years ago * config/tc-i386.c (sco_id): Moved from here...
Ian Lance Taylor [Tue, 14 Jan 1997 20:08:43 +0000 (20:08 +0000)]
* config/tc-i386.c (sco_id): Moved from here...
* config/obj-elf.c (sco_id): ...to here.  Adding the identifier
really is an SCO ELF specific thing, not just a SCO x86 specific
thing.

27 years ago * libaout.h (machine_type): Reserve several values for sparclet.
David Edelsohn [Tue, 14 Jan 1997 16:47:40 +0000 (16:47 +0000)]
* libaout.h (machine_type): Reserve several values for sparclet.

27 years agoTurn off most targets for tic80-*-* right now
Michael Meissner [Tue, 14 Jan 1997 03:48:19 +0000 (03:48 +0000)]
Turn off most targets for tic80-*-* right now

27 years agoFix sanitize string
Michael Meissner [Tue, 14 Jan 1997 03:45:40 +0000 (03:45 +0000)]
Fix sanitize string

27 years agoAllow tic80-*-*, not just tic80-*-coff
Michael Meissner [Tue, 14 Jan 1997 03:45:03 +0000 (03:45 +0000)]
Allow tic80-*-*, not just tic80-*-coff

27 years agoCleanup; fix some aborts
Michael Meissner [Tue, 14 Jan 1997 00:41:55 +0000 (00:41 +0000)]
Cleanup; fix some aborts

27 years ago * tic80-dis.c (print_insn_tic80): Print floating point operands
Fred Fish [Mon, 13 Jan 1997 23:05:49 +0000 (23:05 +0000)]
  * tic80-dis.c (print_insn_tic80): Print floating point operands
      as floats.
      * tic80-opc.c (SPFI): Add single precision floating point
      immediate operand type.
      (ROTATE): Add rotate operand type for shifts.
      (ENDMASK): Add for shifts.
      (n): Macro for the 'n' bit.
      (i): Macro for the 'i' bit.
      (PD): Macro for the 'PD' field.
      (P2): Macro for the 'P2' field.
      (P1): Macro for the 'P1' field.
      (tic80_operands): Add entries for "exts", "extu", "fadd",
      "fcmp", and "fdiv".

27 years ago * tic80.h (TIC80_OPERAND_FLOAT): Add for floating point operands.
Fred Fish [Mon, 13 Jan 1997 22:59:20 +0000 (22:59 +0000)]
  * tic80.h (TIC80_OPERAND_FLOAT): Add for floating point operands.

27 years ago * simops.c: Use REG macros in few places not using them yet.
Jeff Law [Mon, 13 Jan 1997 20:28:37 +0000 (20:28 +0000)]
    * simops.c: Use REG macros in few places not using them yet.
Something I noticed while working on the mn10200 simulator.

27 years ago * configure: Enable the mn10200 simulator.
Jeff Law [Mon, 13 Jan 1997 20:21:35 +0000 (20:21 +0000)]
    * configure: Enable the mn10200 simulator.

27 years ago * sparc-tdep.c (sparc_frame_find_saved_regs): Don't use
Michael Snyder [Thu, 9 Jan 1997 19:48:27 +0000 (19:48 +0000)]
    * sparc-tdep.c (sparc_frame_find_saved_regs): Don't use
        FP_REGISTER_BYTES to compute offsets into the saved frame,
        since it fails for SPARC targets configured without any
        FP regs.  Instead, use DUMMY_STACK_REG_BUF_SIZE.
--------------------------------------------------------------------

27 years ago * scripttempl/armcoff.sc: Correct mask used for .data address.
Ian Lance Taylor [Thu, 9 Jan 1997 19:26:56 +0000 (19:26 +0000)]
* scripttempl/armcoff.sc: Correct mask used for .data address.
PR 11442.

27 years ago * read.c (emit_expr): Check for overflow of a negative value
Ian Lance Taylor [Thu, 9 Jan 1997 19:13:42 +0000 (19:13 +0000)]
* read.c (emit_expr): Check for overflow of a negative value
correctly.
* write.c (fixup_segment): Likewise.
* config/obj-coff.c (fixup_segment): Likewise.
PR 11411.

27 years ago * config/tc-m68k.c (struct label_line): Define.
Ian Lance Taylor [Thu, 9 Jan 1997 18:18:01 +0000 (18:18 +0000)]
* config/tc-m68k.c (struct label_line): Define.
(labels, current_label): New static variables.
(md_assemble): Mark current_label as text, and clear it.
(m68k_frob_label): New function.
(m68k_flush_pending_output): New function.
(m68k_frob_symbol): New function.
* config/tc-m68k.h (tc_frob_label): Define.
(md_flush_pending_output): Define.
(tc_frob_symbol): Don't warn, just call m68k_frob_symbol.
(tc_frob_coff_symbol): Likewise.
PR 11417.

27 years ago * read.c (read_a_source_file): When defining a macro in MRI mode,
Ian Lance Taylor [Thu, 9 Jan 1997 17:10:09 +0000 (17:10 +0000)]
* read.c (read_a_source_file): When defining a macro in MRI mode,
don't add the symbol to the symbol table.
PR 11423.

27 years agoWed Jan 8 19:56:43 1997 Geoffrey Noer <noer@skaro.cygnus.com>
Geoffrey Noer [Thu, 9 Jan 1997 04:00:07 +0000 (04:00 +0000)]
Wed Jan  8 19:56:43 1997  Geoffrey Noer  <noer@skaro.cygnus.com>

        * mh-cygwin32: override CFLAGS so debug info isn't included
        in cygwin32-hosted tools by default

27 years agoWed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Wed, 8 Jan 1997 23:16:53 +0000 (23:16 +0000)]
Wed Jan  8 15:14:59 1997  Geoffrey Noer  <noer@cygnus.com>

        * emultempl/pe.em: make default executable a.exe instead of
        a.out

27 years agoFor NEC 4300 project, fix last remaining host/target endianness problem
Jim Wilson [Wed, 8 Jan 1997 20:40:40 +0000 (20:40 +0000)]
For NEC 4300 project, fix last remaining host/target endianness problem
* gencode.c (build_instruction): Use BigEndianCPU instead of
ByteSwapMem.

27 years ago * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
Jeff Law [Tue, 7 Jan 1997 18:27:20 +0000 (18:27 +0000)]
    * config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
        here since fixup_segment doesn't (linkrelax is set).
        * config/tc-mn10200.c (tc_gen_reloc): Likewise.
Should fix line # stabs & block scope stabs.

27 years ago * mn10300_sim.h (struct _state): Fix number of registers!
Jeff Law [Mon, 6 Jan 1997 23:25:53 +0000 (23:25 +0000)]
    * mn10300_sim.h (struct _state): Fix number of registers!
Just something I noticed while working on the mn10200 simulator.

27 years ago * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
Jeff Law [Mon, 6 Jan 1997 22:25:05 +0000 (22:25 +0000)]
    * config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
        relocs.
Relocs for the mn10200.

27 years agoFix typo.
Jeff Law [Mon, 6 Jan 1997 22:23:08 +0000 (22:23 +0000)]
Fix typo.

27 years ago * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
Jeff Law [Mon, 6 Jan 1997 22:20:38 +0000 (22:20 +0000)]
    * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
        Use bfd_elf_generic_reloc as special function for all relocs.
        (bfd_elf32_mn10200_reloc): Remove unnecessary function.
Working on relocs for the mn10200.

27 years agoFix copyright.
Jeff Law [Mon, 6 Jan 1997 22:14:13 +0000 (22:14 +0000)]
Fix copyright.

27 years ago * mn10200-dis.c (disassemble): Mask off unwanted bits after
Jeff Law [Mon, 6 Jan 1997 22:13:39 +0000 (22:13 +0000)]
    * mn10200-dis.c (disassemble): Mask off unwanted bits after
        adding in current address for pc-relative operands.
Fixes disassembly of backwards 24bit pc-relative addressese.

27 years ago * elf32-mn10200.c (elf_mn10200_howto): Set partial_inplace for
Jeff Law [Mon, 6 Jan 1997 20:33:53 +0000 (20:33 +0000)]
    * elf32-mn10200.c (elf_mn10200_howto): Set partial_inplace for
        24bit pc-relative reloc.

27 years ago * symtab.c (fixup_symbol_section): Handle NULL symbols without
Stu Grossman [Mon, 6 Jan 1997 19:17:39 +0000 (19:17 +0000)]
* symtab.c (fixup_symbol_section):  Handle NULL symbols without
crashing.

27 years ago * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
Fred Fish [Mon, 6 Jan 1997 18:04:38 +0000 (18:04 +0000)]
* tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
(print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
* tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
(SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
REG_BASE_M_SI, REG_BASE_M_LI respectively.
(REG_SCALED, LSI_SCALED): New operand types.
(E): New macro for 'E' bit at bit 27.
(tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
opcodes, including the various size flavors (b,h,w,d) for
the direct load and store instructions.

27 years ago * tic80.h (TIC80_OPERAND_SCALED): Operand may have optional
Fred Fish [Mon, 6 Jan 1997 17:51:13 +0000 (17:51 +0000)]
* tic80.h (TIC80_OPERAND_SCALED): Operand may have optional
":s" modifier for scaling.

27 years ago * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
Fred Fish [Sun, 5 Jan 1997 19:29:42 +0000 (19:29 +0000)]
* tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
  in an instruction.
* tic80-dis.c (print_insn_tic80): Change comma and paren handling.
   Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
* tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
(F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
(MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
masks with "MASK_* & ~M_*" to get the M bit reset.
(tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.

27 years ago * tic80.h (TIC80_OPERAND_M_SI): Add operand modifier for ":m".
Fred Fish [Sun, 5 Jan 1997 19:15:20 +0000 (19:15 +0000)]
  * tic80.h (TIC80_OPERAND_M_SI): Add operand modifier for ":m".
      (TIC80_OPERAND_M_LI): Ditto

27 years ago * tic80.h (TIC80_OPERAND_BITNUM): Renamed from TIC80_OPERAND_CC_SZ.
Fred Fish [Sun, 5 Jan 1997 02:13:07 +0000 (02:13 +0000)]
* tic80.h (TIC80_OPERAND_BITNUM): Renamed from TIC80_OPERAND_CC_SZ.
(TIC80_OPERAND_CC): New define for condition code operand.
(TIC80_OPERAND_CR): New define for control register operand.

27 years ago * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
Fred Fish [Sun, 5 Jan 1997 02:10:14 +0000 (02:10 +0000)]
* tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
correctly.  Add support for printing TIC80_OPERAND_BITNUM and
TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
form.
* tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
CC, SICR, and LICR table entries.
(tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
"bcnd", and "brcr" opcodes.

27 years ago * ppc-opc.c (powerpc_operands): Make comment match the
Fred Fish [Sat, 4 Jan 1997 01:39:30 +0000 (01:39 +0000)]
* ppc-opc.c (powerpc_operands): Make comment match the
actual fields (no shift field).
* sparc-opc.c (sparc_opcodes): Document why this cannot be "const".

* tic80-dis.c (print_insn_tic80): Replace abort stub with a
partial implementation, work in progress.
* tic80-opc.c (tic80_operands): Begin construction operands table.
(tic80_opcodes): Continue populating opcodes table and start
filling in the operand indices.
(tic80_num_opcodes): Add this.

27 years ago * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
Fred Fish [Sat, 4 Jan 1997 01:24:50 +0000 (01:24 +0000)]
* Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
* coff-tic80.c (tic80coff_vec): Data byte order is big endian and
header byte order is little endian.  Use correct bfd_get and
bfd_put routines for little endian headers.
* coffcode.h (coff_set_arch_mach_hook): Set arch to
bfd_arch_tic80 for TIC80_ARCH_MAGIC number.

27 years ago * Makefile.in configure configure.in: Remove ENABLE_CLIBS,
Stu Grossman [Sat, 4 Jan 1997 00:33:01 +0000 (00:33 +0000)]
* Makefile.in configure configure.in:  Remove ENABLE_CLIBS,
ENABLE_OBS, and THREAD_DB_OBS.  These are consolidated into LIBS
and CONFIG_OBS.
* configure configure.in:  Clean up test cases around thread support.
start-sanitize-v850
* configure.tgt (v850-*-*):  Include v850ice.o and v850.lib if
host is Windows.
end-sanitize-v850
* c-valprint.c ch-valprint.c cp-valprint.c eval.c expprint.c
printcmd.c valops.c value.h values.c:  Add bfd_section arg to
value_at and value_at_lazy.
* coffread.c dbxread.c elfread.c mdebugread.c minsyms.c symtab.h:
Add bfd_section arg to prim_record_minimal_symbol_and_info.
* corefile.c gdbcore.h printcmd.c valops.c:  Use read_memory_section
instead of read_memory.  It takes a bfd_section arg.
* coffread.c dbxread.c elfread.c gdb-stabs.h objfiles.h:  Remove
unnecessary cast for assignment of struct dbx_symfile_info.
Struct objfile now uses a real pointer instead of PTR for this
element.
* dbxread.c (dbx_symfile_init): Stash bfd section pointers for
text, data and bss into dbx_symfile_info.
* exec.c (xfer_memory):  Handle transfers for user-specified
sections.
* findvar.c (read_var_value locate_var_value):  Copy bfd section
from the symbol to the value.
* gdb-stabs.h:  Add section pointers for text, data and bss
sections.
* maint.c (translate address command):  Add test code for overlay
address translation.
* printcmd.c (do_examine do_one_display):  Now takes a bfd section
arg.
* (print_formatted x_command):  Record current section along with
current address for repeated commands.
* sparc-nat.c (fetch_inferior_registers):  Change
target_xfer_memory to target_{read write}_memory to allow changes
to target_xfer_memory interface for section info.
* symmisc.c (dump_msymbols print_symbol):  Print section
assocaited with symbol.
* symtab.c (fixup_symbol_section):  New routine to
add section info to symbols returned by lookup_symbol.
* symtab.h (struct general_symbol_info):  Add bfd section to
symbols.
* target.c target.h (target_xfer_memory):  Add bfd section to
args.
* (target_read_memory_section):  New routine to read data from a
specific section.
* (target_memory_bfd_section):  New global variable to pass bfd
section in to targets.
* valarith.c (value_add value_addr value_array):  Preserve bfd
section when computing new value.
* value.h (struct value):  Add bfd section to values.
* values.c (allocate_value value_copy):  Initialize/preserve bfd
section.
* (unpack_double):  Clean up _MSC_VER conditionals to remove
duplicate code.
start-sanitize-v850
* v850ice.c:  New module to support communication with NEC's
PC-based ICE.
* config/v850/tm-v850.h (REGISTER_NAMES):  Replace sp, gp, fp, and
ep names with rxx names.  sp and fp are renamed via a different
mechanism.
end-sanitize-v850

27 years ago * Makefile.in configure configure.in: Remove ENABLE_CLIBS,
Stu Grossman [Sat, 4 Jan 1997 00:25:53 +0000 (00:25 +0000)]
* Makefile.in configure configure.in:  Remove ENABLE_CLIBS,
ENABLE_OBS, and THREAD_DB_OBS.  These are consolidated into LIBS
and CONFIG_OBS.
* configure configure.in:  Clean up test cases around thread support.
start-sanitize-v850
* configure.tgt (v850-*-*):  Include v850ice.o and v850.lib if
host is Windows.
end-sanitize-v850
* c-valprint.c ch-valprint.c cp-valprint.c eval.c expprint.c
printcmd.c valops.c value.h values.c:  Add bfd_section arg to
value_at and value_at_lazy.
* coffread.c dbxread.c elfread.c mdebugread.c minsyms.c symtab.h:
Add bfd_section arg to prim_record_minimal_symbol_and_info.
* corefile.c gdbcore.h printcmd.c valops.c:  Use read_memory_section
instead of read_memory.  It takes a bfd_section arg.
* coffread.c dbxread.c elfread.c gdb-stabs.h objfiles.h:  Remove
unnecessary cast for assignment of struct dbx_symfile_info.
Struct objfile now uses a real pointer instead of PTR for this
element.
* dbxread.c (dbx_symfile_init): Stash bfd section pointers for
text, data and bss into dbx_symfile_info.
* exec.c (xfer_memory):  Handle transfers for user-specified
sections.
* findvar.c (read_var_value locate_var_value):  Copy bfd section
from the symbol to the value.
* gdb-stabs.h:  Add section pointers for text, data and bss
sections.
* maint.c (translate address command):  Add test code for overlay
address translation.
* printcmd.c (do_examine do_one_display):  Now takes a bfd section
arg.
* (print_formatted x_command):  Record current section along with
current address for repeated commands.
* sparc-nat.c (fetch_inferior_registers):  Change
target_xfer_memory to target_{read write}_memory to allow changes
to target_xfer_memory interface for section info.
* symmisc.c (dump_msymbols print_symbol):  Print section
assocaited with symbol.
* symtab.c (fixup_symbol_section):  New routine to
add section info to symbols returned by lookup_symbol.
* symtab.h (struct general_symbol_info):  Add bfd section to
symbols.
* target.c target.h (target_xfer_memory):  Add bfd section to
args.
* (target_read_memory_section):  New routine to read data from a
specific section.
* (target_memory_bfd_section):  New global variable to pass bfd
section in to targets.
* valarith.c (value_add value_addr value_array):  Preserve bfd
section when computing new value.
* value.h (struct value):  Add bfd section to values.
* values.c (allocate_value value_copy):  Initialize/preserve bfd
section.
* (unpack_double):  Clean up _MSC_VER conditionals to remove
duplicate code.
start-sanitize-v850
* v850ice.c:  New module to support communication with NEC's
PC-based ICE.
* config/v850/tm-v850.h (REGISTER_NAMES):  Replace sp, gp, fp, and
ep names with rxx names.  sp and fp are renamed via a different
mechanism.
end-sanitize-v850

27 years ago * reloc.c: Add BFD_RELOC_24.
Jeff Law [Sat, 4 Jan 1997 00:02:12 +0000 (00:02 +0000)]
    * reloc.c: Add BFD_RELOC_24.
        * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
        (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
        * bfd-in2.h, libbfd.h: Rebuilt.
Starting on relocs for the mn10200.

27 years agoFix copyrights.
Jeff Law [Fri, 3 Jan 1997 23:56:40 +0000 (23:56 +0000)]
Fix copyrights.

27 years ago * config/tc-hppa.c (struct hppa_fix_struct): Steak fx_r_field's type
Jeff Law [Fri, 3 Jan 1997 23:55:22 +0000 (23:55 +0000)]
    * config/tc-hppa.c (struct hppa_fix_struct): Steak fx_r_field's type
        to avoid warnings with the native HP compiler.
        (fix_new_hppa): Similarly for the r_type argument.
        (pa_build_unwind_subspace, hppa_elf_mark_end_of_function): Enclose
        in an #if OBJ_ELF to keep gcc -Wall quiet.
        (md_apply_fix): Always initialize "result".
Minor maintenance.

        * config/tc-mn10200.c (md_assemble): Generate relocations.
mn10200 has relocs now!

27 years ago * tic80.h (struct tic80_opcode): Name changed.
Fred Fish [Fri, 3 Jan 1997 23:28:26 +0000 (23:28 +0000)]
* tic80.h (struct tic80_opcode): Name changed.
(struct tic80_opcode): Remove format field.
(struct tic80_operand): Add insertion and extraction functions.
(TIC80_OPERAND_*): Remove old bogus values, start adding new
correct ones.
(FMT_*): Ditto.

27 years agoFri Jan 3 18:17:23 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Fri, 3 Jan 1997 23:20:21 +0000 (23:20 +0000)]
Fri Jan  3 18:17:23 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* config/tc-m68k.c (s_even): Adjust the alignment of the current
section.

27 years agotipo
Ian Lance Taylor [Fri, 3 Jan 1997 23:15:44 +0000 (23:15 +0000)]
tipo

27 years ago * config/obj-coff.c (yank_symbols): If tc_frob_coff_symbol is
Ian Lance Taylor [Fri, 3 Jan 1997 22:41:26 +0000 (22:41 +0000)]
* config/obj-coff.c (yank_symbols): If tc_frob_coff_symbol is
defined, call it.
* config/tc-m68k.c (tc_frob_symbol): Check whether text label is
aligned to odd boundary.
(tc_frob_coff_symbol): Define.

27 years agoFri Jan 3 14:20:05 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Fri, 3 Jan 1997 22:34:52 +0000 (22:34 +0000)]
Fri Jan  3 14:20:05 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10300-tdep.c (mn10300_push_arguments): rewrote
        also removed code elsewhere that made use of RP_REGNUM
        * config/mn10300/tm-mn10300.h: ripped out RP_REGNUM, V0_REGNUM,
        ARG0_REGNUM, ARGLAST_REGNUM (all not appropriate for mn10300
        arch.), redefined SAVED_PC_AFTER_CALL, EXTRACT_RETURN_VALUE,
        EXTRACT_STRUCT_VALUE_ADDRESS, STORE_RETURN_VALUE

27 years agoFri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
Ian Lance Taylor [Fri, 3 Jan 1997 22:34:16 +0000 (22:34 +0000)]
Fri Jan  3 17:33:34 1997  Richard Henderson  <rth@tamu.edu>

* scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
shifting .plt back.  Rumour has it that the NetBSD ld.so depends
on .dynamic being after .got, so we leave that.

27 years agorevert last patch
Ian Lance Taylor [Fri, 3 Jan 1997 22:27:24 +0000 (22:27 +0000)]
revert last patch

27 years agoFri Jan 3 14:20:05 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Fri, 3 Jan 1997 22:23:08 +0000 (22:23 +0000)]
Fri Jan  3 14:20:05 1997  Geoffrey Noer  <noer@cygnus.com>

        * mn10300-tdep.c (mn10300_push_arguments): rewrote
        also removed code elsewhere that made use of RP_REGNUM

27 years agofix copyrights
Ian Lance Taylor [Fri, 3 Jan 1997 22:17:57 +0000 (22:17 +0000)]
fix copyrights

27 years agoFri Jan 3 17:10:33 1997 Richard Henderson <rth@tamu.edu>
Ian Lance Taylor [Fri, 3 Jan 1997 22:13:05 +0000 (22:13 +0000)]
Fri Jan  3 17:10:33 1997  Richard Henderson  <rth@tamu.edu>

* config/obj-elf.c (elf_file_symbol): When using ECOFF debugging,
pass on the new file hook.

* config/tc-alpha.c (alpha_fix_adjustable): Not quite the same as
!alpha_force_relocation, as local LITERALs can be adjusted to be
relative to the section.

27 years agoFri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
Ian Lance Taylor [Fri, 3 Jan 1997 22:09:40 +0000 (22:09 +0000)]
Fri Jan  3 16:58:31 1997  Richard Henderson  <rth@tamu.edu>

elf64-alpha multiple .got rewrite:

* elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
(bfd_elf*_mkobject): Don't define here ...
* elfxx-target.h: ... but rather here.  Default always_size_sections
hook to NULL.
* elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
what the #defines in elf-bfd.h transmuted it to anyway.

* section.c: Add SEC_LINKER_CREATED flag.
* bfd-in2.h: Rebuild.
* elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
relocation section flags.
(elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
SEC_IN_MEMORY to recognize generated bits.
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
Likewise.
* elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
mips_elf_create_compact_rel_section, mips_elf_create_got_section,
mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (ppc_elf_create_linker_section,
ppc_elf_size_dynamic_sections): Likewise.
* elf32-sparc.c (elf32_sparc_check_relocs,
elf32_sparc_size_dynamic_sections): Likewise.
* elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
section flags.
(_bfd_elf_create_dynamic_sections): Likewise.
(_bfd_elf_make_linker_section_rela): Likewise.
* elflink.h (elf_link_create_dynamic_sections): Likewise.
(bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
(elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
to identify generated bits.
(elf_link_input_bfd): Likewise.

* elf64-alpha.c: Rewrite everything touching relocations.

27 years ago * Makefile.in (MAKEINFO): Check for the existence of the Makefile,
Ian Lance Taylor [Fri, 3 Jan 1997 21:04:46 +0000 (21:04 +0000)]
* Makefile.in (MAKEINFO): Check for the existence of the Makefile,
rather than the makeinfo program.
(do-info): Depend upon all-texinfo.
This ensures that MAKEINFO will have the right value when building
texinfo itself.

27 years ago * Makefile.in (clean): Don't remove configdoc.texi.
Ian Lance Taylor [Fri, 3 Jan 1997 19:08:18 +0000 (19:08 +0000)]
* Makefile.in (clean): Don't remove configdoc.texi.
  (maintainer-clean): Do remove configdoc.texi.

27 years ago * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
Ian Lance Taylor [Fri, 3 Jan 1997 19:05:34 +0000 (19:05 +0000)]
* ld.texinfo (Operators): Remove '@' from @smallexmple in comment
to avoid confusing texi2roff.

27 years ago * doc/as.texinfo (Set): Change parenthesized @xref to @pxref.
Ian Lance Taylor [Fri, 3 Jan 1997 18:02:55 +0000 (18:02 +0000)]
* doc/as.texinfo (Set): Change parenthesized @xref to @pxref.

27 years ago * config/tc-m68k.h (tc_frob_label): Define to warn about a
Ian Lance Taylor [Fri, 3 Jan 1997 17:50:06 +0000 (17:50 +0000)]
* config/tc-m68k.h (tc_frob_label): Define to warn about a
  misaligned text label.  Based on patch from Ronald F. Guilmette
  <rfg@monkeys.com>.

27 years ago * macro.c (macro_expand_body): In MRI mode, just copy a single &.
Ian Lance Taylor [Fri, 3 Jan 1997 17:40:43 +0000 (17:40 +0000)]
* macro.c (macro_expand_body): In MRI mode, just copy a single &.

27 years ago * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
Ian Lance Taylor [Fri, 3 Jan 1997 17:22:34 +0000 (17:22 +0000)]
* config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
PCINDEX frag.  From Ronald F. Guilmette <rfg@monkeys.com>.

27 years ago * m68k-opc.c: Add #B case for moveq.
Ian Lance Taylor [Fri, 3 Jan 1997 17:14:30 +0000 (17:14 +0000)]
* m68k-opc.c: Add #B case for moveq.

27 years ago * config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
Ian Lance Taylor [Fri, 3 Jan 1997 17:14:02 +0000 (17:14 +0000)]
* config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
immediate value.
(md_assemble): If the size is 'B', set fx_signed.
(md_apply_fix_2): Use fx_signed when checking for overflow.

* write.h (struct fix): Add fx_signed field.
* write.c (fix_new_internal): Initialize fx_no_overflow and
fx_signed fields.
(fixup_segment): Use fx_signed when checking for overflow.
* config/obj-coff.c (fixup_segment): Check fx_no_overflow and
fx_signed when checking for overflow.

27 years agoPut common variables into the appropriate section, based on relocation types
Michael Meissner [Fri, 3 Jan 1997 16:55:34 +0000 (16:55 +0000)]
Put common variables into the appropriate section, based on relocation types

27 years agoAdd new st_other bits; Remove v850 section indexes
Michael Meissner [Fri, 3 Jan 1997 16:34:28 +0000 (16:34 +0000)]
Add new st_other bits; Remove v850 section indexes

27 years agoAdd .{z,t}common and .tcommon_byte sections
Michael Meissner [Fri, 3 Jan 1997 16:28:18 +0000 (16:28 +0000)]
Add .{z,t}common and .tcommon_byte sections

27 years ago * interp.c (sim_monitor): Make output to stdout visible in
Mark Alexander [Fri, 3 Jan 1997 06:28:21 +0000 (06:28 +0000)]
* interp.c (sim_monitor): Make output to stdout visible in
wingdb's I/O log window.

27 years ago * NOTES, NOTES.config: Removed. These are rarely, if ever,
Ian Lance Taylor [Fri, 3 Jan 1997 03:13:47 +0000 (03:13 +0000)]
* NOTES, NOTES.config: Removed.  These are rarely, if ever,
updated, and all the useful information is in doc/internals.texi.