platform/upstream/binutils.git
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.

27 years ago Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
Ian Lance Taylor [Fri, 3 Jan 1997 03:07:01 +0000 (03:07 +0000)]
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
* read.c (read_a_source_file): Check for conditional operators
before doing an MRI pending alignment.
* config/tc-m68k.h (m68k_conditional_pseudoop): Declare.
(tc_conditional_pseudop): Define.
* config/tc-m68k.c (m68k_conditional_pseudop): New function.
* doc/internals.texi (CPU backend): Describe
tc_conditional_pseudoop.

27 years agoAdd v850.h
Michael Meissner [Fri, 3 Jan 1997 00:31:19 +0000 (00:31 +0000)]
Add v850.h

27 years ago Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
Ian Lance Taylor [Fri, 3 Jan 1997 00:03:28 +0000 (00:03 +0000)]
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
* config/tc-m68k.c (m68k_rel32_from_cmdline): New static
variable.
(md_begin): Check m68k_rel32_from_cmdline before setting
m68k_rel32.
(m68k_mri_mode_change): Likewise.
(md_longopts): Add --disp-size-default-16 and
--disp-size-default-32.
(md_parse_option): Handle new options.
(md_show_usage): Mention new options.
* doc/c-m68k.texi (M68K-Opts): Document new options.

27 years ago Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
Ian Lance Taylor [Thu, 2 Jan 1997 23:48:20 +0000 (23:48 +0000)]
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
* config/tc-m68k.c (m68k_index_width_default): New static
variable.
(m68k_ip): Use m68k_index_width_default to set the size of a base
register whose size was not given.
(md_longopts): Add --base-size-default-16 and
--base-size-default-32.
(md_parse_option): Handle new options.
(md_show_usage): Mention new options.
* doc/c-m68k.texi (M68K-Opts): Document new options.

27 years agofix copyright
Ian Lance Taylor [Thu, 2 Jan 1997 23:44:47 +0000 (23:44 +0000)]
fix copyright

27 years ago * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
Ian Lance Taylor [Thu, 2 Jan 1997 23:15:34 +0000 (23:15 +0000)]
* configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
* scripttempl/elfmips.sc: Use __start as the entry address for
mips*-*-linux*.

27 years ago * doc/c-mips.texi: Mention ISA level 4, and the -mips16 option.
Ian Lance Taylor [Thu, 2 Jan 1997 23:07:09 +0000 (23:07 +0000)]
* doc/c-mips.texi: Mention ISA level 4, and the -mips16 option.

27 years ago * configure.in: Recognize mips-*-linux* target.
Ian Lance Taylor [Thu, 2 Jan 1997 21:53:52 +0000 (21:53 +0000)]
* configure.in: Recognize mips-*-linux* target.
* configure: Rebuild.

27 years ago * config/tc-mips.c (load_register): Rewrite 64 bit handling to
Ian Lance Taylor [Thu, 2 Jan 1997 21:51:58 +0000 (21:51 +0000)]
* config/tc-mips.c (load_register): Rewrite 64 bit handling to
work if valueT is only 32 bits.

27 years ago * gas/mips/mips16.s, gas/mips/mips16.d: New test.
Ian Lance Taylor [Thu, 2 Jan 1997 21:51:31 +0000 (21:51 +0000)]
* gas/mips/mips16.s, gas/mips/mips16.d: New test.
* gas/mips/mips.exp: Run mips16 test.

* gas/mips/mips.exp: Run dli test unconditionally.
* gas/mips/dli.s: Add text symbol.  Add nops to round to 16 byte
boundary.
* gas/mips/dli.d: Corresponding changes.

27 years ago * config/tc-mips.c: Throughout, check target_big_endian rather
Ian Lance Taylor [Thu, 2 Jan 1997 20:13:05 +0000 (20:13 +0000)]
* config/tc-mips.c: Throughout, check target_big_endian rather
  than byte_order.
  (byte_order): Remove.
(mips_init_after_args): Remove.
* config/tc-mips.h (LITTLE_ENDIAN, BIG_ENDIAN): Don't define.
(mips_init_after_args): Don't declare.
(tc_init_after_args): Don't define.

* config/tc-mips.h (tc_frob_after_relocs): Define if
OBJ_MAYBE_ELF.
(mips_elf_final_processing): Likewise.
(ELF_TC_SPECIAL_SECTIONS): Likewise.

27 years ago * mn10300-dis.c (disassemble): Make sure all variables are initialized
Jeff Law [Thu, 2 Jan 1997 19:21:36 +0000 (19:21 +0000)]
    * mn10300-dis.c (disassemble): Make sure all variables are initialized
        before they are used.
Fixes various weird disassembly problems.

27 years agosmall fix
Geoffrey Noer [Tue, 31 Dec 1996 23:30:48 +0000 (23:30 +0000)]
small fix

27 years ago * mn10300_sim.h (struct _state): Put all registers into a single
Jeff Law [Tue, 31 Dec 1996 23:26:11 +0000 (23:26 +0000)]
    * mn10300_sim.h (struct _state): Put all registers into a single
        array to make gdb implementation easier.
        (REG_*): Add definitions for all registers in the state array.
        (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros.
        * simops.c: Related changes.

27 years agoTue Dec 31 15:19:32 1996 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Tue, 31 Dec 1996 23:21:34 +0000 (23:21 +0000)]
Tue Dec 31 15:19:32 1996  Geoffrey Noer  <noer@cygnus.com>

        * config/mn10300/tm-mn10300.h: more small register fixes

27 years agoDeal with kill encoding the signal via the exit status.
Michael Meissner [Tue, 31 Dec 1996 23:18:55 +0000 (23:18 +0000)]
Deal with kill encoding the signal via the exit status.

27 years ago * read.c (read_a_source_file): Check mri_pending_align after
Ian Lance Taylor [Tue, 31 Dec 1996 22:11:23 +0000 (22:11 +0000)]
* read.c (read_a_source_file): Check mri_pending_align after
checking for a macro.  From Ronald F. Guilmette
<rfg@monkeys.com>.

27 years ago * config.bfd (mips*el-*-linux*): New target.
Ian Lance Taylor [Tue, 31 Dec 1996 21:27:05 +0000 (21:27 +0000)]
* config.bfd (mips*el-*-linux*): New target.
(mips*-*-linux*): New target.

27 years ago * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
Ian Lance Taylor [Tue, 31 Dec 1996 21:26:27 +0000 (21:26 +0000)]
* elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
Return a useful value.

27 years ago * v850-opc.c (v850_opcodes): Put curly-braces around operands
Jeff Law [Tue, 31 Dec 1996 21:20:00 +0000 (21:20 +0000)]
    * v850-opc.c (v850_opcodes): Put curly-braces around operands
        for "breakpoint" instruction.
Fixes random assembler failures for hp-x-v850 toolchain.

27 years ago * configure.in: Remove uses of config/mh-linux.
Ian Lance Taylor [Tue, 31 Dec 1996 21:05:42 +0000 (21:05 +0000)]
* configure.in: Remove uses of config/mh-linux.

27 years ago * mh-linux: Remove.
Ian Lance Taylor [Tue, 31 Dec 1996 21:05:08 +0000 (21:05 +0000)]
* mh-linux: Remove.

27 years ago * config.sub, config.guess: Merge with latest FSF sources.
Ian Lance Taylor [Tue, 31 Dec 1996 21:01:24 +0000 (21:01 +0000)]
* config.sub, config.guess: Merge with latest FSF sources.

27 years ago * Makefile.in (.c.o): Add -D_GNU_SOURCE. Put $(CFLAGS) at the
Ian Lance Taylor [Tue, 31 Dec 1996 20:44:46 +0000 (20:44 +0000)]
* Makefile.in (.c.o): Add -D_GNU_SOURCE.  Put $(CFLAGS) at the
end.
(gprof): Put $(CFLAGS) after the other options.

27 years ago * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
Ian Lance Taylor [Tue, 31 Dec 1996 20:43:28 +0000 (20:43 +0000)]
* Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.

27 years ago * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
Ian Lance Taylor [Tue, 31 Dec 1996 20:38:45 +0000 (20:38 +0000)]
* Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
(dep): Use ALL_CFLAGS rather than CFLAGS.

27 years ago * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
Ian Lance Taylor [Tue, 31 Dec 1996 20:30:36 +0000 (20:30 +0000)]
* configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
ac_cv_func_mmap in bfd/configure.host.

27 years agoFix some spacing
Michael Meissner [Tue, 31 Dec 1996 20:17:33 +0000 (20:17 +0000)]
Fix some spacing

27 years agoFix relocatable tda offsets with non-zero addends
Michael Meissner [Tue, 31 Dec 1996 20:14:21 +0000 (20:14 +0000)]
Fix relocatable tda offsets with non-zero addends

27 years agoSet V850_OPERAND_ADJUST_SHORT_MEMORY flag on sst.{h,w}/sld.{h,w} instructions
Michael Meissner [Tue, 31 Dec 1996 20:11:39 +0000 (20:11 +0000)]
Set V850_OPERAND_ADJUST_SHORT_MEMORY flag on sst.{h,w}/sld.{h,w} instructions

27 years agoAdd V850_OPERAND_ADJUST_SHORT_MEMORY
Michael Meissner [Tue, 31 Dec 1996 20:10:21 +0000 (20:10 +0000)]
Add V850_OPERAND_ADJUST_SHORT_MEMORY

27 years ago * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
Ian Lance Taylor [Tue, 31 Dec 1996 19:56:49 +0000 (19:56 +0000)]
* configure.in: Check ac_cv_func_mmap_fixed_mapped, not
ac_cv_func_mmap.
* configure: Rebuild.

27 years ago * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
Ian Lance Taylor [Tue, 31 Dec 1996 19:50:29 +0000 (19:50 +0000)]
* ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
fields.
* lexsup.c (parse_args): Recognize --auxiliary/-f and
--filter/-F.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass filter_shlib and auxiliary_filter_shlib to
size_dynamic_sections.
* ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.

27 years ago * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
Ian Lance Taylor [Tue, 31 Dec 1996 19:46:37 +0000 (19:46 +0000)]
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
filter_shlib and auxiliary_filter_shlib parameters.
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
DT_FILTER.
* bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
(bfd_elf64_size_dynamic_sections): Likewise.
* bfd-in2.h: Rebuild.

27 years ago * common.h (DT_AUXILIARY): Define.
Ian Lance Taylor [Tue, 31 Dec 1996 19:44:49 +0000 (19:44 +0000)]
* common.h (DT_AUXILIARY): Define.
(DT_FILTER): Define.

27 years agoimprove format
Ian Lance Taylor [Tue, 31 Dec 1996 19:23:32 +0000 (19:23 +0000)]
improve format

27 years agoimprove format
Ian Lance Taylor [Tue, 31 Dec 1996 19:12:03 +0000 (19:12 +0000)]
improve format

27 years ago * gas/sparc/synth.d: Use --prefix-addresses for objdump.
Ian Lance Taylor [Tue, 31 Dec 1996 18:03:58 +0000 (18:03 +0000)]
* gas/sparc/synth.d: Use --prefix-addresses for objdump.
* gas/sparc/synth64.d: Likewise.

27 years ago * config/tc-sparc.c (md_apply_fix3): Rename from md_apply_fix, and
Ian Lance Taylor [Tue, 31 Dec 1996 18:03:09 +0000 (18:03 +0000)]
* config/tc-sparc.c (md_apply_fix3): Rename from md_apply_fix, and
  add segment argument.  If OBJ_ELF, treat a relocation against a
  symbol in a linkonce section like a relocation against an external
  symbol.
* config/tc-sparc.h (MD_APPLY_FIX3): Define.

27 years agoEnd tic80 sanitization regions with "end-sanitize-tic80", not
Ken Raeburn [Tue, 31 Dec 1996 17:51:22 +0000 (17:51 +0000)]
End tic80 sanitization regions with "end-sanitize-tic80", not
with "start-sanitize-tic80".

27 years ago * support.h: Undo previous change to SIGTRAP
Mark Alexander [Tue, 31 Dec 1996 15:05:46 +0000 (15:05 +0000)]
* support.h: Undo previous change to SIGTRAP
and SIGQUIT values.