binutils-gdb.git
30 years ago* write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup before
Ken Raeburn [Tue, 13 Sep 1994 02:11:25 +0000 (02:11 +0000)]
* write.c (fixup_segment): Test TC_RELOC_RTSYM_LOC_FIXUP on fixup before
processing same-section pcrel relocations.
(TC_RELOC_RTSYM_LOC_FIXUP): Default to 1.

30 years ago* expr.c (make_expr_symbol): If operator is O_symbol and X_add_number is zero,
Ken Raeburn [Tue, 13 Sep 1994 02:10:43 +0000 (02:10 +0000)]
* expr.c (make_expr_symbol): If operator is O_symbol and X_add_number is zero,
just return the symbol.  If operator is O_constant, resolve the symbol's value
before returning.
(operand): Permit use of "[]" for grouping.
(clean_up_expression): For difference of two symbols in the same frag, add the
difference of their offsets into X_add_number.
(expr): Reduce difference of two symbols in same frag to their difference.

30 years ago* Makefile.in (config-stamp): Add a "this file generated by make" message to
Ken Raeburn [Tue, 13 Sep 1994 01:51:26 +0000 (01:51 +0000)]
* Makefile.in (config-stamp): Add a "this file generated by make" message to
config.h.

30 years ago* .gdbinit (pe, ps): Define new commands.
Ken Raeburn [Tue, 13 Sep 1994 01:50:02 +0000 (01:50 +0000)]
* .gdbinit (pe, ps): Define new commands.
* symbols.c (indent_level): New static variable.
(indent, print_expr_1, print_symbol_value_1, print_symbol_value, print_expr):
New functions.

30 years agoMerge supposedly (but not really) GM-specific bits into general MPW config
Stan Shebs [Tue, 13 Sep 1994 00:50:38 +0000 (00:50 +0000)]
Merge supposedly (but not really) GM-specific bits into general MPW config

30 years agoMerge in former supposed GM-specific bits
Stan Shebs [Tue, 13 Sep 1994 00:20:31 +0000 (00:20 +0000)]
Merge in former supposed GM-specific bits

30 years agoRemove supposedly (but not really) GM-specific bits
Stan Shebs [Tue, 13 Sep 1994 00:18:55 +0000 (00:18 +0000)]
Remove supposedly (but not really) GM-specific bits

30 years ago * mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
Stan Shebs [Tue, 13 Sep 1994 00:14:18 +0000 (00:14 +0000)]
* mpw-make.in (ALL_CFLAGS): Add definition of HAVE_STDARG_H,
include of ::libiberty:.
(config.h): Ifdef contents on GAS_VERSION.
config/ho-mpw.h: Remove redefinitions of true and false.

30 years ago * mpw-make.in (ctor.c): Remove references.
Stan Shebs [Mon, 12 Sep 1994 23:54:12 +0000 (23:54 +0000)]
* mpw-make.in (ctor.c): Remove references.
* hosts/mpw.h [BFD_TRUE_FALSE]: Remove macro redefinitions of true
and false.

30 years ago * mpw-configure (host_canonical): Set.
Stan Shebs [Mon, 12 Sep 1994 23:49:00 +0000 (23:49 +0000)]
* mpw-configure (host_canonical): Set.
(mpw-xconfig.in): No longer use.
(target_cpu): Always add to makefiles.
(ARCHDEFS, EMUL): Add to makefile only if nonempty.
(TM_FILE, XM_FILE, NM_FILE): No longer add to makefile.
(mpw-mh-mpw): Look for in srcdir and srcroot.
Use sed instead of mpw-edit-prefix to edit prefix definitions.

30 years ago * config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
Ian Lance Taylor [Mon, 12 Sep 1994 22:36:08 +0000 (22:36 +0000)]
* config/obj-elf.c (obj_elf_type): Rewrite to accept syntax
reportedly to be used on Irix 6.

30 years ago * elfcode.h (swap_out_syms): Set the type of an undefined symbol
Ian Lance Taylor [Mon, 12 Sep 1994 22:16:27 +0000 (22:16 +0000)]
* elfcode.h (swap_out_syms): Set the type of an undefined symbol
to STT_FUNC if the BSF_FUNCTION flag is set.

30 years ago * config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
Ian Lance Taylor [Mon, 12 Sep 1994 22:11:18 +0000 (22:11 +0000)]
* config/tc-mips.c (md_pseudo_table): Handle .globl and .global.
(s_mips_globl): New static function; needed for Irix 5 support.
* ecoff.c (ecoff_build_symbols): If BSF_FUNCTION is set for an
external symbol with no type, set the type to st_Proc rather than
st_Global.  Don't set the index of an external st_Proc or
st_StaticProc symbol unless it is also a local symbol.

30 years ago * read.c (read_a_source_file): The second argument to as_where is
Ian Lance Taylor [Mon, 12 Sep 1994 21:52:43 +0000 (21:52 +0000)]
* read.c (read_a_source_file): The second argument to as_where is
unsigned int *, not int *.

30 years ago * config/m68klynx.mh: New file.
Ian Lance Taylor [Mon, 12 Sep 1994 21:06:35 +0000 (21:06 +0000)]
* config/m68klynx.mh: New file.

30 years ago * cofflink.c (coff_link_input_bfd): If r_symndx is -1, don't
Ian Lance Taylor [Mon, 12 Sep 1994 21:01:19 +0000 (21:01 +0000)]
* cofflink.c (coff_link_input_bfd): If r_symndx is -1, don't
change it.
(_bfd_coff_generic_relocate_section): If r_symndx is -1, it is an
absolute reloc.  Don't dump core using r_symndx as an array index.
* cf-m68klynx.c (coff_bfd_link_add_symbols): Define.
(lynx_link_add_symbols): New static function (copy of function in
coff-i386.c).
(coff_m68k_lynxrtype_to_howto): sym argument may be NULL.
* coff-i386.c (coff_i386_rtype_to_howto): Likewise.
* coff-a29k.c (coff_a29k_relocate_section): Handle an r_symndx
value of -1, meaning an absolute reloc.

30 years ago * ctor.c: Remove; obsolete.
Ian Lance Taylor [Mon, 12 Sep 1994 15:47:52 +0000 (15:47 +0000)]
* ctor.c: Remove; obsolete.
* Makefile.in: Rebuild dependencies.
(BFD_LIBS): Remove ctor.o.
(CFILES): Remove ctor.c.
* libbfd.h: Rebuild.

30 years ago * elf32-hppa.c (elf32_hppa_relocate_section): If there was a link
Jeff Law [Mon, 12 Sep 1994 08:07:13 +0000 (08:07 +0000)]
* elf32-hppa.c (elf32_hppa_relocate_section): If there was a link
error of some sort (for example, undefined symbols), then do not
apply any relocs, just notify the user of the errors.
(elf32_hppa_backend_begin_write_processing): Do not build a symbol
extension section for an executable (it's useless).
(elf32_hppa_link_output_symbol_hook): Do nothing if there was a
link error of some sort (for example, undefined symbols).
(elf32_hppa_read_symext_info): Kludge.  Turn off SEC_HAS_CONTENTS
for all the input symbol extension sections to keep the generic
BFD code happy.  Temporarily turn it on to read the contents of
the symbol extension section.

30 years ago * emultempl/hppaelf.em: Add newlines to the error messages.
Jeff Law [Mon, 12 Sep 1994 07:51:14 +0000 (07:51 +0000)]
* emultempl/hppaelf.em: Add newlines to the error messages.

30 years ago * config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.
Jeff Law [Mon, 12 Sep 1994 04:36:54 +0000 (04:36 +0000)]
* config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.

30 years ago * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
Jeff Law [Mon, 12 Sep 1994 04:33:24 +0000 (04:33 +0000)]
* hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.

30 years agoRevert last change (never should have been checked in to begin with).
Jeff Law [Mon, 12 Sep 1994 04:06:07 +0000 (04:06 +0000)]
Revert last change (never should have been checked in to begin with).

30 years ago * config/hppaosf.mh (RANLIB): Do not set.
Jeff Law [Mon, 12 Sep 1994 04:04:09 +0000 (04:04 +0000)]
* config/hppaosf.mh (RANLIB): Do not set.
* config/hppabsd.mh (RANLIB): Likewise.

30 years agoGet the new COFF linker code working for i386-lynx.
Ian Lance Taylor [Mon, 12 Sep 1994 02:57:23 +0000 (02:57 +0000)]
Get the new COFF linker code working for i386-lynx.

* cf-i386lynx.c: Remove #if 0 code.
(i386_lynxos_coff_object_p): Remove unused function.
(coff_bfd_link_add_symbols): Define.
(lynx_link_add_symbols): New static function.
* coffcode.h (coff_bfd_link_hash_table_create): If
coff_relocate_section is defined, only define this if not already
defined.
(coff_bfd_link_add_symbols, coff_bfd_final_link): Likewise.

* linker.c (_bfd_generic_final_link): Handle
bfd_indirect_link_order explicitly, rather than via
_bfd_default_link_order.
(set_symbol_from_hash): New static function, broken out of
_bfd_generic_link_write_global_symbol.
(_bfd_generic_link_write_global_symbol): Symbol setting code moved
to set_symbol_from_hash; call it.
(default_indirect_link_order): Add generic_linker argument.
Change all callers.  If false, set the generic symbols based on
the hash table entries.

30 years ago * config/i386lynx.mh: New file.
Ian Lance Taylor [Mon, 12 Sep 1994 02:42:49 +0000 (02:42 +0000)]
* config/i386lynx.mh: New file.
* scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
unless CONSTRUCTING.

30 years ago * irix5-nat.c, osfsolib.c, solib.c (solib_add): Simplify last
Peter Schauer [Sun, 11 Sep 1994 11:43:40 +0000 (11:43 +0000)]
* irix5-nat.c, osfsolib.c, solib.c (solib_add):  Simplify last
change by replacing `symbols_added' with `so_last'.
* mdebugread.c (parse_external, parse_partial_symbols):  Ignore
global common symbols, they will be resolved by the runtime loader.
* mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
Handle scSCommon like scCommon symbols.

30 years ago * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
Ian Lance Taylor [Sat, 10 Sep 1994 20:04:17 +0000 (20:04 +0000)]
* emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
(GENERATE_SHLIB_SCRIPT): Define as yes.
(DYNAMIC_LINK): Define as false.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
(gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
* Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
generic.em.

30 years ago * Update copyright message to include 1993, 1994.
Peter Schauer [Sat, 10 Sep 1994 10:10:05 +0000 (10:10 +0000)]
* Update copyright message to include 1993, 1994.

30 years ago * corelow.c (add_solib_stub): Copy to_sections changes from
Peter Schauer [Sat, 10 Sep 1994 08:50:10 +0000 (08:50 +0000)]
* corelow.c (add_solib_stub):  Copy to_sections changes from
core_ops to current_target after adding the shared libraries.
* partial-stab.h (N_EXCL), dbxread.c (add_old_header_file,
find_corresponding_bincl_psymtab):  Change `repeated header not seen'
error to a complaint, simplify complaint.
* procfs.c (signalname, errnoname):  Make `name' const.
* symfile.c (reread_symbols):  Use filename from old BFD to
reopen the objfile.
* values.c (record_latest_value):  Don't record value in the
history chain until we are sure there won't be an error.

30 years ago* nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other cruft.
J.T. Conklin [Fri, 9 Sep 1994 23:22:41 +0000 (23:22 +0000)]
* nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other cruft.

30 years agoAdd XDEPFILE = ser-tcp.o
Rob Savoye [Fri, 9 Sep 1994 23:00:02 +0000 (23:00 +0000)]
Add XDEPFILE = ser-tcp.o

30 years ago* config/i386/gdbserve.mt: New file, defs for i386 nlm stub.
J.T. Conklin [Fri, 9 Sep 1994 22:55:36 +0000 (22:55 +0000)]
* config/i386/gdbserve.mt: New file, defs for i386 nlm stub.

30 years agoGDB support for HP-PRO.
Rob Savoye [Fri, 9 Sep 1994 22:44:13 +0000 (22:44 +0000)]
GDB support for HP-PRO.

30 years ago * coffgen.c (coff_get_symtab): Reindented. Removed commented out
Ian Lance Taylor [Fri, 9 Sep 1994 20:38:37 +0000 (20:38 +0000)]
* coffgen.c (coff_get_symtab): Reindented.  Removed commented out
call to bfd_constructor_entry.

30 years agokeep arm files
Ken Raeburn [Fri, 9 Sep 1994 18:51:10 +0000 (18:51 +0000)]
keep arm files

30 years agokeep arm files
Ken Raeburn [Fri, 9 Sep 1994 18:35:11 +0000 (18:35 +0000)]
keep arm files

30 years agoforgot an entry for makefile dependency changes
Ken Raeburn [Fri, 9 Sep 1994 18:34:25 +0000 (18:34 +0000)]
forgot an entry for makefile dependency changes

30 years agokeep arm dir
Ken Raeburn [Fri, 9 Sep 1994 18:34:24 +0000 (18:34 +0000)]
keep arm dir

30 years ago Convert m68k COFF to use new COFF backend linker.
Ian Lance Taylor [Fri, 9 Sep 1994 15:54:45 +0000 (15:54 +0000)]
Convert m68k COFF to use new COFF backend linker.
* coff-m68k.c (coff_relocate_section): Define.
* cf-m68klynx.c (coff_rtype_to_howto): Define.
(coff_m68k_lynx_rtype_to_howto): New static function.
* configure.in (m68kcoff_vec): Build cofflink.o.
(m68kcoffun_vec, m68klynx_coff_vec): Likewise.

30 years agoModified Files:
Kung Hsu [Fri, 9 Sep 1994 01:05:28 +0000 (01:05 +0000)]
Modified Files:
ChangeLog read.h read.c ecoff.h ecoff.c

        * read.h : ditto.
        * read.c (read_a_source_file): if no file when inst is read, set
        generate_asm_lineno to true.
        * ecoff.h : change name to generate_asm_lineno and add function
        ecoff_no_current_file.
        * ecoff.c : change name to generate_asm_lineno.
        * ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
        ecoff style line for asm file.

30 years agoModified Files:
Kung Hsu [Fri, 9 Sep 1994 01:02:48 +0000 (01:02 +0000)]
Modified Files:
obj-ecoff.h obj-elf.h

        * config/obj-ecoff.h : Change names to  OBJ_GENERATE_ASM_LINENO,
        and generate_asm_lineno.
        * config/obj-elf.h : ditto.

30 years ago * config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
Steve Chamberlain [Fri, 9 Sep 1994 00:44:01 +0000 (00:44 +0000)]
* config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
(more work here to come)

30 years ago * config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
Steve Chamberlain [Fri, 9 Sep 1994 00:43:50 +0000 (00:43 +0000)]
* config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
fields.

30 years ago * config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
Steve Chamberlain [Fri, 9 Sep 1994 00:43:30 +0000 (00:43 +0000)]
* config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
Handle extra arg.

30 years agoThu Sep 8 17:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Fri, 9 Sep 1994 00:35:09 +0000 (00:35 +0000)]
Thu Sep  8 17:14:43 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* remote.c (fromhex): Make error more explicit.
(read_frame): Don't print bad checksum information unless
remote_debugging.  Don't use repeat count unless it's > 0.
* remote-e7000.c (expect): When echoing, ignore multiple newlines.
(e7000_insert_breakpoint, e7000_remove_breakpoint, target_ops): Optionally
cope with BC style breakpoints.
(e7000_command):  After command send directly to the E7000 mark
registers as changed.
(why_stop, e7000_wait: Understand BC style stop condition.
* sh-tdep.c (sh_skip_prologue):  Understand more complicated
sequences.  (frame_find_saved_regs): Likewise.
* config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
Handle extra arg.
* config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
(more work here to come)
* config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
fields.

30 years ago * config/obj-coff.c (size_section): Do an fprintf to stderr rather
Ian Lance Taylor [Thu, 8 Sep 1994 23:46:00 +0000 (23:46 +0000)]
* config/obj-coff.c (size_section): Do an fprintf to stderr rather
than a printf.
(fixup_segment): Use as_bad_where rather than as_bad.

30 years ago * scripttempl/h8500b.sc: Put rdata stuff into own segment.
Steve Chamberlain [Thu, 8 Sep 1994 23:36:17 +0000 (23:36 +0000)]
    * scripttempl/h8500b.sc: Put rdata stuff into own segment.

30 years ago * coff-h8300.c (h8300_reloc16_extra_cases, case RELBYTE): Flag overflows
Steve Chamberlain [Thu, 8 Sep 1994 23:27:56 +0000 (23:27 +0000)]
* coff-h8300.c (h8300_reloc16_extra_cases, case RELBYTE):  Flag overflows
correctly.

30 years ago* sparclite/Makefile.in: Assorted stuff needed for eload.
J.T. Conklin [Thu, 8 Sep 1994 23:19:02 +0000 (23:19 +0000)]
* sparclite/Makefile.in: Assorted stuff needed for eload.
* sparclite/eload.c: Merge in command line argument parsing and
  error message handling improvements orignally made to aload.c.

30 years ago * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
Ian Lance Taylor [Thu, 8 Sep 1994 17:26:27 +0000 (17:26 +0000)]
* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
.got section is now explicitly handled in elf.sc.

30 years ago * gdb.base/commands.exp: New tests for if/while commands.
Jeff Law [Thu, 8 Sep 1994 06:02:58 +0000 (06:02 +0000)]
    * gdb.base/commands.exp: New tests for if/while commands.

30 years ago * defs.h (enum misc_command_type, command_control_type): Enums
Jeff Law [Thu, 8 Sep 1994 05:32:34 +0000 (05:32 +0000)]
* defs.h (enum misc_command_type, command_control_type): Enums
for describing the command and control types.
(struct command_line): Add new fields to keep track of the command
type and body associated with the command.
* top.c: Include value.h.  Delete whitespace at the end of lines.
(build_command_line, get_command_line): New functions.
(execute_control_command, while_command, if_command): Likewise.
(realloc_body_list, read_next_line): Likewise.
(recurse_read_control_structure): Likewise.
(execute_user_command): Call execute_control_command.
(read_command_lines): Simplify by calling read_next_line, call
read_control_structure for "if" and "while" commands.
(free_command_lines): Free new fields in the command structure.
(define_command): Reset control_level to zero.
(init_main): Install command handlers for "if" and "while" commands.

30 years ago * config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing nothing
Steve Chamberlain [Thu, 8 Sep 1994 00:52:23 +0000 (00:52 +0000)]
* config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing nothing
becomes macro doing nothing.

30 years agoWed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Thu, 8 Sep 1994 00:38:17 +0000 (00:38 +0000)]
Wed Sep  7 17:21:12 1994  Steve Chamberlain  (sac@jonny.cygnus.com)

* config/tc-{h8300,sh}.[ch] (tc_coff_symbol_emit): Function doing nothing
becomes macro doing nothing.

30 years agofix config.status, Makefile dependencies
Ken Raeburn [Thu, 8 Sep 1994 00:15:49 +0000 (00:15 +0000)]
fix config.status, Makefile dependencies

30 years agotc_gen_reloc, i386-linux, brokensed changes
Ken Raeburn [Thu, 8 Sep 1994 00:00:08 +0000 (00:00 +0000)]
tc_gen_reloc, i386-linux, brokensed changes

30 years ago(tc_gen_reloc): Use bfd_get_reloc_code_name in error message.
Ken Raeburn [Wed, 7 Sep 1994 23:58:32 +0000 (23:58 +0000)]
(tc_gen_reloc): Use bfd_get_reloc_code_name in error message.

30 years agoRemove 'brokensed' hack, autoconf should make it unnecessary now.
Ken Raeburn [Wed, 7 Sep 1994 23:52:59 +0000 (23:52 +0000)]
Remove 'brokensed' hack, autoconf should make it unnecessary now.

30 years agoDon't set bfd_gas for i386-linux a.out configurations.
Ken Raeburn [Wed, 7 Sep 1994 23:52:31 +0000 (23:52 +0000)]
Don't set bfd_gas for i386-linux a.out configurations.

30 years ago * libelf.h (struct elf_backend_data): Change second argument of
Ian Lance Taylor [Wed, 7 Sep 1994 23:41:58 +0000 (23:41 +0000)]
* libelf.h (struct elf_backend_data): Change second argument of
elf_backend_final_write_processing hook to boolean.
(struct elf_obj_tdata): Add linker field.
* elfcode.h (NAME(bfd_elf,write_object_contents)): Pass value of
tdata linker field to final_write_processing, rather than NULL.
(elf_bfd_final_link): Don't call final_write_processing hook.  Set
tdata linker field to true.
* elf32-mips.c (mips_elf_final_write_processing): Change type of
second argument to boolean.
* elf32-hppa.c (elf32_hppa_backend_final_write_processing):
Likewise.

30 years agoUpdate for autoconf beta 1.112:
Ken Raeburn [Wed, 7 Sep 1994 23:34:23 +0000 (23:34 +0000)]
Update for autoconf beta 1.112:
* aclocal.m4 (GAS_CHECK_DECL_NEEDED, GAS_WORKING_ASSERT): New macros.
* configure.in: Use them.  Use AC_ARG_PROGRAM (now provided by autoconf)
instead of my hacked-up AC_PROGRAM_TRANSFORM_NAME.  Move test for CROSS_COMPILE
just before AC_FUNC_ALLOCA, and emit a message to try to ease confusion about
autoconf's "cross-compiling" message.
* acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_FREE,
NEED_DECLARATION_ERRNO): Renamed from NEED_*_DECLARATION.
* configure, conf.in: Regenerated.

30 years ago * coff-go32.c (RTYPE2HOWTO): Fully parenthesize arguments.
Ian Lance Taylor [Wed, 7 Sep 1994 23:16:23 +0000 (23:16 +0000)]
* coff-go32.c (RTYPE2HOWTO): Fully parenthesize arguments.
* coff-i960.c (RTYPE2HOWTO): Likewise.
* coff-m88k.c (RTYPE2HOWTO): Likewise.
* coff-we32k.c (RTYPE2HOWTO): Likewise.

Make i386 COFF use new COFF backend linker.
* coff-i386.c (RTYPE2HOWTO): Fully parenthesize arguments.
(coff_relocate_section): Define.
(coff_i386_rtype_to_howto): New function.
* configure.in (i386coff_vec): Use cofflink.o.
(i386lynx_coff_vec): Likewise.

* coffcode.h (bfd_coff_backend_data): Add new field
_bfd_coff_rtype_to_howto.
(bfd_coff_rtype_to_howto): Define.
(coff_rtype_to_howto): Define to use RTYPE2HOWTO, if not already
defined.
(bfd_coff_std_swap_table): Initialize new field.
* cofflink.c (_bfd_coff_final_link): Allocate section_count + 1
section_info structures, since the target_index is 1 based.
(coff_link_input_bfd): Set *secpp to bfd_com_section_ptr for a
common symbol.  Adjust rel_hash by the output reloc count.
(_bfd_coff_generic_relocate_section): New function.
* libcoff-in.h (_bfd_coff_generic_relocate_section): Declare.
* libcoff.h: Rebuild.
* coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.

30 years ago * configure.in: Check ${host} and ${target} rather than
Ian Lance Taylor [Wed, 7 Sep 1994 16:53:27 +0000 (16:53 +0000)]
* configure.in: Check ${host} and ${target} rather than
${host_canon} and ${target_canon}.
* configure: Likewise.

30 years ago * config.sub: Merge nextstep cleanup from FSF.
Per Bothner [Wed, 7 Sep 1994 06:23:05 +0000 (06:23 +0000)]
* config.sub:  Merge nextstep cleanup from FSF.

30 years ago * som.c (som_bfd_derive_misc_symbol_info): Treat undefined code
Jeff Law [Wed, 7 Sep 1994 05:39:13 +0000 (05:39 +0000)]
* som.c (som_bfd_derive_misc_symbol_info): Treat undefined code
symbols and undefined symbols which no type in the same manner
if the associated BFD symbol has BSF_FUNCTION set.  For a defined
symbol which no type, select a SOM type based on the flags of the
section containing the symbol.
(som_slurp_symbol_type): Set BSF_FUNCTION for undefined ST_STUB
or ST_CODE symbols (importing a non-function code symbol is
meaningless in SOM).
(som_set_reloc_info): Don't set "offset" to the section's vma; it
should always start at zero.

30 years agox
Ian Lance Taylor [Wed, 7 Sep 1994 03:57:59 +0000 (03:57 +0000)]
x

30 years ago * scripttempl/m68kcoff.sc: Put .bss in data segment.
Ian Lance Taylor [Wed, 7 Sep 1994 03:57:09 +0000 (03:57 +0000)]
* scripttempl/m68kcoff.sc: Put .bss in data segment.

* scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
0, and to only be marked as NOLOAD if relocating.
* scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
* scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
* scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
* scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
* scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
* scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
* scripttempl/sparclynx.sc: Likewise.

30 years ago * c-typeprint.c (c_type_print_varspec_prefix,
Stan Shebs [Wed, 7 Sep 1994 00:23:16 +0000 (00:23 +0000)]
 * c-typeprint.c (c_type_print_varspec_prefix,
 c_type_print_varspec_suffix): Add cases for Fortran type codes.
 * eval.c (evaluate_subexp): For OP_ARRAY expressions in Fortran,
 call f77_value_literal_string instead.
 * f_exp.y: Include <string.h>, move include of parser-defs.h.
 (parse_number): Translate 'd' floats to 'e' so atof() works.
 (yylex): Remove unused variables.
 * f-lang.c: Include <string.h>.
 (get_bf_for_fcn): Remove unused variable.
 * f-typeprint.c (f_type_print_varspec_prefix,
 f_type_print_varspec_suffix): Remove unused
 variables, add cases to switch statements.
 (f_type_print_base): Remove unused variables.
 * f-valprint.c (gdbcore.h, command.h): Include.
 (f77_get_dynamic_lowerbound, f77_get_dynamic_upperbound):
 Call read_memory_integer with correct number of arguments.
 (f77_get_dynamic_upperbound): Call f77_get_dynamic_lowerbound
 with correct argument type.
 (f77_print_array): Removed unused array array_size_array.
 (f_val_print): Don't use a CORE_ADDR as a char *.
 * valops.c (value_cast): Handle COMPLEX and BOOL types.
 (value_assign): Handle Fortran literal string and complex values.
 (f77_cast_into_complex, f77_assign_from_literal_string,
 f77_assign_from_literal_complex): New functions.

30 years agoMinor tweaks to make COFF code support both new and old style linker.
Ian Lance Taylor [Tue, 6 Sep 1994 20:40:37 +0000 (20:40 +0000)]
Minor tweaks to make COFF code support both new and old style linker.

30 years ago * pr-5016.ch, pr-5016.exp, Makefile.in: New testcase.
Per Bothner [Tue, 6 Sep 1994 20:23:16 +0000 (20:23 +0000)]
* pr-5016.ch, pr-5016.exp, Makefile.in:  New testcase.
* Makefile.in (.exe.check):  New rule, to run just one test.

30 years agoNote fix to lib/gdb.exp.
Per Bothner [Tue, 6 Sep 1994 20:17:29 +0000 (20:17 +0000)]
Note fix to lib/gdb.exp.

30 years ago Add new style linker support to COFF backend. a29k only for now.
Ian Lance Taylor [Tue, 6 Sep 1994 19:28:55 +0000 (19:28 +0000)]
Add new style linker support to COFF backend.  a29k only for now.
* cofflink.c: New file.
* libcoff-in.h: Include bfdlink.h.
(obj_coff_external_syms, obj_coff_strings): Define accessor macro.
(obj_coff_sym_hashes): Define accessor macro.
(struct coff_tdata): Add fields external_syms, strings, and
sym_hashes.
(struct coff_link_hash_entry): Define.
(struct coff_link_hash_table): Define.
(coff_link_hash_lookup, coff_link_hash_traverse): Define.
(coff_hash_table): Define.
(_bfd_coff_link_hash_table_create): Declare.
(_bfd_coff_link_add_symbols, _bfd_coff_final_link): Declare.
* coffcode.h (bfd_coff_backend_data): Add fields _bfd_relsz,
_bfd_coff_swap_reloc_in, _bfd_coff_sym_is_global,
_bfd_coff_compute_section_file_positions,
_bfd_coff_relocate_section.
(bfd_coff_relsz, bfd_coff_swap_reloc_in): Define.
(bfd_coff_sym_is_global): Define.
(bfd_coff_compute_section_file_positions): Define.
(bfd_coff_relocate_section): Define.
(coff_mkobject_hook): Initialize obj_raw_syment_count and
obj_conv_table_size.
(coff_compute_section_file_positions): Set target_index of all
sections.  Set output_has_begun field.
(coff_write_object_contents): Don't set target_index; now done by
coff_compute_section_file_positions.  Remove obsolete handling of
scn_base and data_base.  Don't bother to check that target_index
is positive, since it always is.  Remove use of pad, which is
always zero.  Check obj_raw_syment_count, not bfd_get_symcount,
for the number of symbols, but only write them out if
bfd_get_symcount is non-zero.
(coff_slurp_symbol_table): Use obj_raw_syment_count, not
bfd_get_symcount for the number of symbols.  Don't set
obj_conv_table_size.
(coff_sym_is_global): New static function or macro.
(coff_slurp_reloc_table): Call coff_swap_reloc_in, not
bfd_swap_reloc_in.
(coff_bfd_link_hash_table_create): If coff_relocate_section is
defined, define as _bfd_coff_link_hash_table_create.
(coff_bfd_link_add_symbols): Similar change.
(coff_bfd_final_link): Similar change.
(coff_relocate_section): Define as NULL if not defined.
(bfd_coff_std_swap_table): Initialize new fields.
* coffgen.c (coff_real_object_p): Don't set obj_raw_syment_count
and obj_conv_table_size here.
(coff_count_linenumbers): Reindent.  If bfd_get_symcount is zero,
add up the line numbers from the sections.
(coff_write_symbols): Don't set bfd_get_symcount.
(coff_pointerize_aux): Don't pointerize a nonpositive x_endndx
field.
(coff_get_normalized_symtab): Use obj_raw_syment_count, not
bfd_get_symcount.
(coff_print_symbol): If auxp->fix_end, print x_endndx value.
* coffswap.h (coff_swap_reloc_in): Rename from bfd_swap_reloc_in.
Reindent.  Change argument type to  PTR.
* coff-a29k.c (coff_a29k_relocate_section): New static function.
(coff_relocate_section): Define.
* configure.in (a29kcoff_big_vec): Compile cofflink.o.
* coff-alpha.c (alpha_ecoff_backend_data): Initialize new fields.
* coff-mips.c (mips_ecoff_backend_data): Likewise.
* libcoff.h: Rebuilt.
* Makefile.in: Rebuilt dependencies.
(BFD32_BACKENDS): Add cofflink.o.
(CFILES): Add cofflink.c.

30 years ago* coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check for section
Ken Raeburn [Tue, 6 Sep 1994 18:30:06 +0000 (18:30 +0000)]
* coffgen.c (coff_print_symbol, case bfd_symbol_print_all): Check for section
symbol, and print its aux fields with appropriate labels.

30 years agoMakefile.in (ALL_MACHINES): ADded cpu-arm.o.
Ken Raeburn [Tue, 6 Sep 1994 18:03:03 +0000 (18:03 +0000)]
Makefile.in (ALL_MACHINES): ADded cpu-arm.o.

30 years ago * config/tc-mips.c (mips_cpu): New static variable.
Ian Lance Taylor [Tue, 6 Sep 1994 15:51:09 +0000 (15:51 +0000)]
* config/tc-mips.c (mips_cpu): New static variable.
(insns_since_cache_access): New static variable.
(md_begin): Set mips_cpu as well as mips_isa.
(append_insn): If mips_cpu is 4600, require four nop instructions
between an instruction which accesses the cache and certain CACHE
instructions.  Keep track of the number of instructions seen since
an instruction which accesses the cache.
(md_parse_option): Set mips_cpu as well as mips_isa.
PR 5433.

30 years ago * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
Ian Lance Taylor [Tue, 6 Sep 1994 15:42:11 +0000 (15:42 +0000)]
* mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
which store a value into memory.
PR 5433.

30 years ago * mips.h (INSN_STORE_MEMORY): Define.
Ian Lance Taylor [Tue, 6 Sep 1994 15:39:52 +0000 (15:39 +0000)]
* mips.h (INSN_STORE_MEMORY): Define.
PR 5433.

30 years ago * gdb.c++/demangle.exp (test_arm_style_demangling): Remove
Peter Schauer [Tue, 6 Sep 1994 09:26:19 +0000 (09:26 +0000)]
* gdb.c++/demangle.exp (test_arm_style_demangling):  Remove
linefeed from expect pattern for repeated types with indices > 9.

30 years ago * ch-typeprint.c (chill_type_print_base): Make TYPE_CODE_RANGE
Per Bothner [Mon, 5 Sep 1994 21:47:03 +0000 (21:47 +0000)]
* ch-typeprint.c (chill_type_print_base):  Make TYPE_CODE_RANGE
case more robust.
This fixes PR 5016.

30 years agoTipos
Ian Lance Taylor [Mon, 5 Sep 1994 19:14:24 +0000 (19:14 +0000)]
Tipos

30 years ago* doc/Makefile.in (VPATH): Define using @srcdir@.
Ken Raeburn [Mon, 5 Sep 1994 11:21:16 +0000 (11:21 +0000)]
* doc/Makefile.in (VPATH): Define using @srcdir@.
(prefix, program_transform_name, exec_prefix): Use autoconf style @-substitutions.

30 years agoARM Acorn/RISCiX target and host patches from Richard Earnshaw
Ken Raeburn [Mon, 5 Sep 1994 10:53:00 +0000 (10:53 +0000)]
ARM Acorn/RISCiX target and host patches from Richard Earnshaw

30 years ago * i960-tdep.c (signal.h): Don't include.
Stan Shebs [Sun, 4 Sep 1994 23:58:48 +0000 (23:58 +0000)]
* i960-tdep.c (signal.h): Don't include.

30 years ago * gdbint.texinfo: Removed mentions of some incorrectly placed and
Stan Shebs [Sun, 4 Sep 1994 23:49:40 +0000 (23:49 +0000)]
* gdbint.texinfo: Removed mentions of some incorrectly placed and
obsolete conditionals, described some others.

30 years ago * cxux-nat.c (target_is_m88110): Remove definition.
Stan Shebs [Sun, 4 Sep 1994 23:41:20 +0000 (23:41 +0000)]
* cxux-nat.c (target_is_m88110): Remove definition.

30 years agoUpdate to reflect changes in config files
Stan Shebs [Sun, 4 Sep 1994 23:18:31 +0000 (23:18 +0000)]
Update to reflect changes in config files

30 years ago * configure.in (config/nm-empty.h): If cross only, use instead
Stan Shebs [Sun, 4 Sep 1994 23:16:22 +0000 (23:16 +0000)]
* configure.in (config/nm-empty.h): If cross only, use instead
of config/nm-trash.h.
* config/nm-trash.h: Remove.
* config/nm-empty.h: New file.
* config/i386/nm-m3.h: New file, includes config/nm-m3.h.
* config/mips/nm-m3.h: New file, includes config/nm-m3.h.
* config/m68k/nm-sysv4.h: New file, includes config/nm-sysv4.h.
* config/mips/nm-sysv4.h: New file, includes config/nm-sysv4.h.
* config/sparc/nm-sysv4.h: New file, includes config/nm-sysv4.h.

30 years ago * configure.in: Don't ln gdbtk.tcl if it's already there.
Stu Grossman [Sat, 3 Sep 1994 02:13:47 +0000 (02:13 +0000)]
* configure.in:  Don't ln gdbtk.tcl if it's already there.

30 years agoFix a typo in last change
Stan Shebs [Sat, 3 Sep 1994 01:15:15 +0000 (01:15 +0000)]
Fix a typo in last change

30 years ago* configure.in: No longer looks for nm, tm, and xm headers in
J.T. Conklin [Sat, 3 Sep 1994 00:45:30 +0000 (00:45 +0000)]
* configure.in: No longer looks for nm, tm, and xm headers in
  config/<header>; they are always in config/<cpu>/<header>.

30 years ago * objfiles.c (allocate_objfile): Add the newly-created objfile to
Stan Shebs [Sat, 3 Sep 1994 00:32:08 +0000 (00:32 +0000)]
* objfiles.c (allocate_objfile): Add the newly-created objfile to
the end of the list of objfiles, instead of at the beginning.

* xcoffread.c (allocate_include_entry): New function, abstracted
from code in record_include_begin.
(record_include_begin, record_include_end): Call it.

* blockframe.c (reinit_frame_cache): Test inferior_pid instead of
target_has_stack to decide whether to create a real stack frame
for the cache.

* coffread.c (process_coff_symbol) [CXUX_TARGET]: Ignore vendor
section.
* config/m88k/tm-cxux.h (CXUX_TARGET): Define.

* h8300-tdep.c: Include "dis-asm.h" instead of <dis-asm.h>.

30 years agoAdd gdbserve.mt.
Stu Grossman [Sat, 3 Sep 1994 00:28:05 +0000 (00:28 +0000)]
Add gdbserve.mt.

30 years agoAdd .Sanitize.
Stu Grossman [Sat, 3 Sep 1994 00:27:50 +0000 (00:27 +0000)]
Add .Sanitize.

30 years agoAdd nlm subdir.
Stu Grossman [Sat, 3 Sep 1994 00:15:20 +0000 (00:15 +0000)]
Add nlm subdir.

30 years ago * ecoff.c (add_file): Don't try to generate line numbers if the
Ian Lance Taylor [Fri, 2 Sep 1994 20:42:28 +0000 (20:42 +0000)]
* ecoff.c (add_file): Don't try to generate line numbers if the
symbol table has been frozen.

30 years ago* reloc.c (enum bfd_reloc_code_real): Rewrote definition to use new "chew"
Ken Raeburn [Fri, 2 Sep 1994 18:21:41 +0000 (18:21 +0000)]
* reloc.c (enum bfd_reloc_code_real): Rewrote definition to use new "chew"
commands for simultaneous definition of enumerator and enumerator name table.
(bfd_get_reloc_code_name): New function, for retrieving a symbolic name
associated with an enumerator.

* libbfd.h, bfd-in2.h: Regenerated.

30 years ago* config/sparc/tm-nbsd.h: Add #defines to map NetBSD struct and
J.T. Conklin [Fri, 2 Sep 1994 16:57:11 +0000 (16:57 +0000)]
* config/sparc/tm-nbsd.h: Add #defines to map NetBSD struct and
  field names into what is expected by sparc-nat.c.

30 years ago * config/unix.exp: If nm.new does not exist, use [transform nm].
Ian Lance Taylor [Fri, 2 Sep 1994 16:55:54 +0000 (16:55 +0000)]
* config/unix.exp: If nm.new does not exist, use [transform nm].
* config/default.exp: Likewise.

30 years ago * c-typeprint.c (c_typedef_print): Add missing Chill support.
Per Bothner [Fri, 2 Sep 1994 00:34:43 +0000 (00:34 +0000)]
* c-typeprint.c (c_typedef_print):  Add missing Chill support.

30 years agoCreate a .Sanitize file.
Stu Grossman [Thu, 1 Sep 1994 23:02:10 +0000 (23:02 +0000)]
Create a .Sanitize file.