binutils-gdb.git
30 years ago * libiberty.h (xexit): Use __volatile__ to avoid losing if
Jeff Law [Sun, 13 Feb 1994 06:12:45 +0000 (06:12 +0000)]
    * libiberty.h (xexit): Use __volatile__ to avoid losing if
        compiling with gcc -traditional.

30 years agoFormatting improvements from first eyeball once-over.
Roland Pesch [Sat, 12 Feb 1994 07:12:40 +0000 (07:12 +0000)]
Formatting improvements from first eyeball once-over.

30 years ago * gencode.c (main, gendefines): New -d option prints table of defines.
Steve Chamberlain [Sat, 12 Feb 1994 06:02:09 +0000 (06:02 +0000)]
* gencode.c (main, gendefines): New -d option prints table of defines.
* interp.c (trap): Add a load of system calls.
(sim_memory_size): Now default to 8Mbyte.
        (PARANOID): Keep vector of registers with undefined contents.

30 years ago * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
Steve Chamberlain [Sat, 12 Feb 1994 05:52:11 +0000 (05:52 +0000)]
* remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
(remove_commands, add_commands): Add/remove hms-drain when target
is connected.

30 years agoClean formatting under TeX/FSF layout and TeX/Cygnus layout
Roland Pesch [Sat, 12 Feb 1994 04:53:38 +0000 (04:53 +0000)]
Clean formatting under TeX/FSF layout and TeX/Cygnus layout

30 years agoKeep the new gasp manual.
Roland Pesch [Sat, 12 Feb 1994 04:25:34 +0000 (04:25 +0000)]
Keep the new gasp manual.

30 years agoA manual for the GNU assembler preprocessor.
Roland Pesch [Sat, 12 Feb 1994 03:59:03 +0000 (03:59 +0000)]
A manual for the GNU assembler preprocessor.

30 years ago * ldlex.l (comment): Increment line number when newline is read.
David MacKenzie [Sat, 12 Feb 1994 01:31:11 +0000 (01:31 +0000)]
* ldlex.l (comment): Increment line number when newline is read.

30 years ago * configure.in: Add Lynx/rs6000 support.
Stu Grossman [Sat, 12 Feb 1994 01:08:29 +0000 (01:08 +0000)]
* configure.in:  Add Lynx/rs6000 support.
* lynx-nat.c:  Clean up some Sparc stuff.  Clean up ptrace error
messages.  Add rs6000 support.  Don't try to modify unwritable
registers.
* rs6000-nat.c:  Move lots of native dependent stuff (like core
file support) from rs6000-tdep.c & xcoffexec.c to here.
* rs6000-tdep.c:  Move native dependent stuff to nat.c.
* xcoffexec.c:  Move native dependent stuff to nat.c.
* config/rs6000/nm-rs6000.h:  Move defs of SOLIB_* macros to here
from tm file.
* config/rs6000/tm-rs6000.h:  Remove defs of SOLIB_* funcs, cuz they're
really native.
* config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
New files to support Lynx/rs6000.

30 years ago * archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
David MacKenzie [Sat, 12 Feb 1994 00:59:26 +0000 (00:59 +0000)]
* archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
(bfd_construct_extended_name_table): Check result of normalize.

30 years ago Make all callers of malloc or realloc (including via obstacks)
David MacKenzie [Sat, 12 Feb 1994 00:45:54 +0000 (00:45 +0000)]
Make all callers of malloc or realloc (including via obstacks)
check the result for NULL.  Most set bfd_error to no_memory and
return in that case; a few are harder to fix, and are marked
with "FIXME <return type>".

* elf32-hppa.c (hppa_elf_build_arg_reloc_stub
hppa_elf_build_long_branch_stub):  Check bfd_make_empty_symbol return.
* linker.c (_bfd_generic_link_output_symbols
_bfd_generic_link_write_global_symbol): Ditto
* section.c (bfd_make_section_anyway): Ditto.

* tekhex.c (find_chunk tekhex_mkobject): Check bfd_alloc.
(first_phase): Ditto.  FIXME void
(tekhex_make_empty_symbol): Check bfd_zalloc.

* sunos.c (sunos_read_dynamic_info): Check bfd_zalloc.
(MY(read_dynamic_symbols) MY(read_dynamic_relocs)): Check bfd_alloc.

* stringhash.c (_bfd_stringtab_hash_newfunc): Check bfd_hash_allocate.

* srec.c: Indent.
(fillup_symbols): Check bfd_alloc.  FIXME void
(srec_mkobject srec_get_section_contents
srec_set_section_contents): Check bfd_alloc.
(srec_make_empty_symbol): Check bfd_zalloc.

* som.c (hppa_som_gen_reloc_type): Check bfd_alloc_by_size_t.
(make_unique_section): Check bfd_alloc.
(som_new_section_hook): Check bfd_zalloc.
(bfd_som_attach_aux_hdr): Ditto.  FIXME void

* rs6000-core.c (rs6000coff_core_p): Check bfd_zalloc.

* osf-core.c (osf_core_make_empty_symbol): Check bfd_zalloc.
(osf_core_core_file_p): Check bfd_alloc.

* oasys.c (oasys_slurp_symbol_table oasys_archive_p
oasys_mkobject oasys_object_p oasys_new_section_hook
oasys_set_section_contents): Check bfd_alloc.
(oasys_slurp_section_data): Check bfd_zalloc and bfd_alloc.
(oasys_make_empty_symbol): Check bfd_zalloc.

* nlmcode.h (nlm_make_empty_symbol): Check bfd_zalloc.
(nlm_slurp_symbol_table): Check bfd_zalloc and bfd_alloc.

* nlm32-sparc.c (nlm_sparc_read_import): Check bfd_alloc.

* nlm32-i386.c (nlm_i386_read_import): Check bfd_alloc.

* nlm32-alpha.c (nlm_alpha_read_import): Check bfd_alloc.

* linker.c (_bfd_link_hash_newfunc
(generic_link_hash_newfunc
(archive_hash_newfunc
(_bfd_generic_link_add_one_symbol): Check bfd_hash_allocate.
(_bfd_generic_final_link
(_bfd_generic_link_output_symbols
(default_indirect_link_order): Check bfd_alloc.
(bfd_new_link_order): Check bfd_alloc_by_size_t.

* irix-core.c (irix_core_make_empty_symbol): Check bfd_zalloc.

* ieee.c: Indent.
(read_id get_symbol get_section_entry ieee_archive_p ieee_object_p
ieee_slurp_section_data ieee_new_section_hook): Check bfd_alloc.
(do_one): Check bfd_alloc.  Return a boolean.
(ieee_slurp_section_data): Check it.
(init_for_output): Check bfd_alloc.  Return a boolean.
(ieee_set_section_contents): Check it.
(do_with_relocs):  Check bfd_alloc.  Return a boolean.
(ieee_bfd_debug_info_accumulate): Ditto.  FIXME void.
(ieee_mkobject): Check bfd_zalloc.
(ieee_make_empty_symbol): Check bfd_zmalloc.

* hpux-core.c (hpux_core_make_empty_symbol): Check
bfd_zalloc.

* hppabsd-core.c (hppabsd_core_make_empty_symbol): Check
bfd_zalloc.
(hppabsd_core_core_file_p): Check bfd_zalloc.

* hp300hpux.c (MY(slurp_symbol_table)): Check bfd_alloc.

* elfcode.h (elf_new_section_hook): Check bfd_alloc.
(bfd_section_from_phdr): Ditto.
(write_relocs): Ditto.  FIXME void
(elf_map_symbols assign_section_numbers map_program_segments):
Ditto.  Return a boolean.
(swap_out_syms): Ditto.  Check elf_map_symbols.
(elf_slurp_symbol_table): Check bfd_zalloc.
(elf_slurp_reloca_table): Check bfd_alloc.
(elf_slurp_reloc_table): Ditto.
(elf_compute_section_file_positions): Check assign_section_numbers.
(assign_file_positions_except_relocs): Return a boolean.
Check map_program_segments.
(elf_compute_section_file_positions): Check it.

* elf32-mips.c (mips_elf_final_link): Check bfd_alloc.

* elf32-hppa.c (hppa_elf_stub_branch_reloc): Check bfd_zmalloc and
realloc.
(hppa_elf_stub_reloc): Ditto.
(hppa_elf_build_arg_reloc_stub): Check bfd_zalloc.
(hppa_elf_build_long_branch_stub): Ditto.
(elf32_hppa_backend_symbol_table_processing): Ditto.

* ecoff.c (ecoff_set_symbol_info): Check bfd_alloc.  Return a boolean.
(ecoff_slurp_symbol_table): Check it.
(ecoff_slurp_armap): Check bfd_alloc.
(ecoff_write_armap): Check bfd_zalloc.
(ecoff_link_hash_newfunc): Check bfd_hash_allocate and
_bfd_link_hash_newfunc.
(ecoff_link_add_externals): Check bfd_alloc.

* ctor.c (bfd_constructor_entry): Check bfd_alloc.

* coffgen.c (coff_real_object_p): Check bfd_alloc.
(coff_renumber_symbols): Check bfd_alloc_by_size_t.  Return a boolean.
(coff_write_symbol): Check bfd_alloc.  FIXME int
(coff_write_linenumbers): Check bfd_alloc.  Return a boolean.
(coff_section_symbol): Check bfd_alloc_by_size_t.
(coff_get_normalized_symtab): Check bfd_alloc.
(coff_bfd_make_debug_symbol): Check bfd_zalloc.
* libcoff-in.h: Change decls of coff_renumber_symbols,
coff_write_linenumbers.
* libcoff.h: Rebuilt.
* coffcode.h (coff_write_object_contents): Check
coff_renumber_symbols, coff_write_linenumbers.

* coffcode.h: Indent.
(coff_add_missing_symbols): Check bfd_alloc_by_size_t.  Return a
boolean.
(coff_write_object_contents): Check it.

* coff-alpha.c (alpha_relocate_section): Check bfd_alloc.
* coff-mips.c (mips_relocate_section): Ditto.

* archive.c (bfd_slurp_bsd_armap_f2): Check bfd_alloc value.
(do_slurp_bsd_armap): Ditto.
(compute_and_write_armap): Check bfd_realloc value.

* aoutx.h (translate_from_native_sym_flags): Check bfd_alloc
return value.  Return boolean value.
(NAME(aout,make_empty_symbol)): Check bfd_zalloc return value.
(NAME(aout,slurp_symbol_table)): Check bf_alloc and bfd_zalloc
return value.
(add_to_stringtab): Ditto.  FIXME void
(aout_link_hash_newfunc): Check bfd_hash_allocate return value.
(aout_link_add_symbols): Check bfd_alloc value.
(translate_symbol_table): Check translate_from_native_sym_flags.
* hp300hpux.c (MY(slurp_symbol_table)): Ditto.
* aoutx.h (aout_link_hash_newfunc): Check _bfd_link_hash_newfunc.

* opncls.c (bfd_zalloc bfd_realloc): Check result of bfd_alloc.

* opncls.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
(_bfd_new_bfd): Check obstack_begin for 0 return.

* ieee.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
(ieee_archive_p): Check obstack_begin for 0 return and
obstack_finish for NULL return.

* hash.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
(bfd_hash_table_init_n): Check obstack_begin for 0 return and
obstack_finish for NULL return.
(bfd_hash_lookup): Check obstack_alloc for NULL return.

* ecofflink.c (obstack_chunk_alloc): Define as malloc, not
bfd_xmalloc_by_size_t.
bfd_ecoff_debug_accumulate
bfd_ecoff_debug_accumulate_other): Check obstack_alloc.
(add_file_shuffle add_memory_shuffle): Check obstack_alloc for
NULL return.  Return boolean, not void.
(bfd_ecoff_debug_init): Check obstack_begin for 0 return.
(bfd_ecoff_debug_accumulate): Check add_file_shuffle
and add_memory_shuffle return.
(string_hash_newfunc): Check bfd_hash_allocate and bfd_hash_newfunc.
(bfd_ecoff_debug_accumulate): Check bfd_alloc.
(ecoff_add_string): Check add_memory_shuffle return.

* libbfd-in.h (xmalloc, bfd_xmalloc, bfd_xmalloc_by_size_t):
Remove decls.
* libbfd.h: Rebuilt.

30 years ago * objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
David MacKenzie [Fri, 11 Feb 1994 23:56:49 +0000 (23:56 +0000)]
* objcopy.c (strip_main, copy_main): Add missing 'break' in switch.

30 years ago * configure.host: Add Lynx/rs6000 support.
Stu Grossman [Fri, 11 Feb 1994 23:39:38 +0000 (23:39 +0000)]
* configure.host:  Add Lynx/rs6000 support.
* config/i386-nlm.mt:  Enable a.out file support.
* config/rs6000lynx.mh:  Lynx/rs6000 host support.

30 years ago * config.guess: Add Lynx/rs6000 config support.
Stu Grossman [Fri, 11 Feb 1994 23:34:39 +0000 (23:34 +0000)]
* config.guess:  Add Lynx/rs6000 config support.

30 years ago * ldlang.c (lookup_name): Take new argument, force_load. If true,
Ian Lance Taylor [Fri, 11 Feb 1994 22:40:20 +0000 (22:40 +0000)]
* ldlang.c (lookup_name): Take new argument, force_load.  If true,
reload the file even if it is already loaded.
(wild): Call lookup_name with force_load argument of 0.
(open_input_bfds): Call lookup_name with force_load argument of 1.
(print_symbol): Remove declaration of non-existent function.
(print_one_symbol): Return true rather than falling off end.

30 years ago * archive.c (compute_and_write_armap): Rewrite somewhat to improve
Ian Lance Taylor [Fri, 11 Feb 1994 22:30:18 +0000 (22:30 +0000)]
* archive.c (compute_and_write_armap): Rewrite somewhat to improve
memory usage.

30 years agoFri Feb 11 13:10:42 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Fri, 11 Feb 1994 21:18:16 +0000 (21:18 +0000)]
Fri Feb 11 13:10:42 1994  Stan Shebs  (shebs@andros.cygnus.com)

* archive.c: Change all references to '\n' in archive magic
to '\012', for greater portability.
* ecoff.c (ecoff_write_armap): Ditto.

30 years agosparcly-nat.c is long gone
Stan Shebs [Fri, 11 Feb 1994 20:23:03 +0000 (20:23 +0000)]
sparcly-nat.c is long gone

30 years ago * config/tc-mips.c (macro): Do unaligned loads and stores
Ian Lance Taylor [Fri, 11 Feb 1994 18:16:19 +0000 (18:16 +0000)]
* config/tc-mips.c (macro): Do unaligned loads and stores
correctly when big endian, and give errors on overflow rather than
generating incorrect code.

30 years ago * as.c: Include libiberty.h.
Ian Lance Taylor [Thu, 10 Feb 1994 22:33:56 +0000 (22:33 +0000)]
* as.c: Include libiberty.h.

30 years ago * read.c (do_align): Don't define label just_record_alignment
Ian Lance Taylor [Thu, 10 Feb 1994 22:32:21 +0000 (22:32 +0000)]
* read.c (do_align): Don't define label just_record_alignment
unless it might be used.

30 years ago * libiberty.h: New file. Declares functions provided by
Ian Lance Taylor [Thu, 10 Feb 1994 22:06:53 +0000 (22:06 +0000)]
* libiberty.h: New file.  Declares functions provided by
libiberty.

30 years ago * ldmain.c (main): Use %ld when printing long values.
Ian Lance Taylor [Thu, 10 Feb 1994 17:02:24 +0000 (17:02 +0000)]
* ldmain.c (main): Use %ld when printing long values.

30 years ago * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
Ian Lance Taylor [Thu, 10 Feb 1994 17:00:32 +0000 (17:00 +0000)]
* emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.

30 years ago * config/tc-i386.c (md_pseudo_table): Remove "zero".
Ian Lance Taylor [Thu, 10 Feb 1994 16:27:34 +0000 (16:27 +0000)]
* config/tc-i386.c (md_pseudo_table): Remove "zero".
* config/tc-m88k.c (md_pseudo_table): Likewise.

30 years ago* config/tc-sparc.c (sparc_ip): Reject integer values for pc-relative operand
Ken Raeburn [Thu, 10 Feb 1994 06:48:19 +0000 (06:48 +0000)]
* config/tc-sparc.c (sparc_ip): Reject integer values for pc-relative operand
fields.  This forces "call 0" to become "jmpl %g0,%o7" with no relocs needed.

30 years ago* gas/alpha/fp.*: New files.
Ken Raeburn [Thu, 10 Feb 1994 05:39:17 +0000 (05:39 +0000)]
* gas/alpha/fp.*: New files.
* lib/gas-defs.exp (regexp_diff): Report noted mismatch at
verbosity level 3 or above only.

30 years ago * som.c: Cast return values from BFD memory allocation routines to
Jeff Law [Thu, 10 Feb 1994 05:36:41 +0000 (05:36 +0000)]
    * som.c: Cast return values from BFD memory allocation routines to
        avoid warnings from the HP compiler.

30 years ago * coff-alpha.c (alpha_relocate_section): Accept a LITERAL
Ian Lance Taylor [Wed, 9 Feb 1994 22:17:49 +0000 (22:17 +0000)]
* coff-alpha.c (alpha_relocate_section): Accept a LITERAL
reloc on an "ldl" instruction too.

30 years ago * as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
Ian Lance Taylor [Wed, 9 Feb 1994 18:23:23 +0000 (18:23 +0000)]
* as.h (xmalloc, xrealloc): Declare using PTR rather than char *.
* xmalloc.c (xmalloc, xrealloc): Use PTR rather than char *.

30 years ago * app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
Ian Lance Taylor [Wed, 9 Feb 1994 18:11:20 +0000 (18:11 +0000)]
* app.c (do_scrub_next_char): If NO_STRING_ESCAPES is defined,
don't treat backslash specially inside strings.
* read.c (next_char_of_string): Likewise.

30 years ago * coff-rs6000.c (rs6000coff_mkarchive): Return false.
Ian Lance Taylor [Wed, 9 Feb 1994 17:59:32 +0000 (17:59 +0000)]
* coff-rs6000.c (rs6000coff_mkarchive): Return false.
(rs6000_coff_snarf_ar_hdr): Don't declare errno; it's not used.
Also removed unused variable namelen.
(rs6000coff_write_armap): Declare orl_count and stridx parameters.

30 years agoWed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Wed, 9 Feb 1994 17:47:40 +0000 (17:47 +0000)]
Wed Feb  9 09:42:45 1994  Stan Shebs  (shebs@andros.cygnus.com)

* config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
instead of memcpy to zero the initial stab symbol, duh.
* config/obj-elf.c (obj_elf_init_stab_section): Ditto.
* config/obj-som.c (obj_som_init_stab_section): Ditto.

30 years ago * write.c (fixup_segment): Use as_bad_where, not as_bad.
Ian Lance Taylor [Wed, 9 Feb 1994 05:02:25 +0000 (05:02 +0000)]
* write.c (fixup_segment): Use as_bad_where, not as_bad.

30 years agosparclite-coff fix: obj-coff.c, symbols.c, write.c modified for abs_symbol
Ken Raeburn [Wed, 9 Feb 1994 00:51:26 +0000 (00:51 +0000)]
sparclite-coff fix: obj-coff.c, symbols.c, write.c modified for abs_symbol

30 years ago(adjust_reloc_syms): Use abs_symbol instead of calling section_symbol.
Ken Raeburn [Wed, 9 Feb 1994 00:04:43 +0000 (00:04 +0000)]
(adjust_reloc_syms): Use abs_symbol instead of calling section_symbol.

30 years ago-Wall is Ian's friend; make them both happy (by removing `/*' inside comment).
Ken Raeburn [Tue, 8 Feb 1994 23:07:55 +0000 (23:07 +0000)]
-Wall is Ian's friend; make them both happy (by removing `/*' inside comment).

30 years ago* configure.in (alpha-*-netware*): New target, like alpha-*-osf*.
Ken Raeburn [Tue, 8 Feb 1994 21:52:01 +0000 (21:52 +0000)]
* configure.in (alpha-*-netware*): New target, like alpha-*-osf*.

30 years ago* configure.in (alpha-dec-osf1*, alpha*-*-*): Build gas.
Ken Raeburn [Tue, 8 Feb 1994 21:42:55 +0000 (21:42 +0000)]
* configure.in (alpha-dec-osf1*, alpha*-*-*): Build gas.

30 years agotc-alpha fixes
Ken Raeburn [Tue, 8 Feb 1994 21:09:10 +0000 (21:09 +0000)]
tc-alpha fixes

30 years ago * write.c (write_relocs): Print some sensible error message if
Ken Raeburn [Tue, 8 Feb 1994 21:02:35 +0000 (21:02 +0000)]
* write.c (write_relocs): Print some sensible error message if
bfd_perform_relocation returns bfd_reloc_overflow.

30 years ago* coff-alpha.c (reloc_nil): New function.
Ken Raeburn [Tue, 8 Feb 1994 20:58:20 +0000 (20:58 +0000)]
* coff-alpha.c (reloc_nil): New function.
(alpha_howto_table): Use it as special_function to prevent certain relocs from
being adjusted by bfd_perform_relocation.  IGNORE reloc should be
partial_inplace.
(alpha_ecoff_get_relocated_section_contents): Accept a LITERAL reloc on an
"ldl" instruction too.

30 years ago Change inclusion of <string.h> to sysdep.h.
Peter Schauer [Tue, 8 Feb 1994 19:01:45 +0000 (19:01 +0000)]
Change inclusion of <string.h> to sysdep.h.

30 years ago * dis-buf.c, i386-dis.c: Include <string.h>.
Peter Schauer [Tue, 8 Feb 1994 09:12:06 +0000 (09:12 +0000)]
* dis-buf.c, i386-dis.c:  Include <string.h>.

30 years ago * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Peter Schauer [Tue, 8 Feb 1994 09:05:56 +0000 (09:05 +0000)]
* config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.

30 years ago * README: Remove note about gcc warnings on alpha, these should be
Peter Schauer [Tue, 8 Feb 1994 09:01:03 +0000 (09:01 +0000)]
* README:  Remove note about gcc warnings on alpha, these should be
gone now.
* c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
remote-utils.c, stabsread.c:  Include <string.h>.
* regex.c:  Include "defs.h", change re_comp argument to const char *.
* infptrace.c (fetch_register, store_inferior_registers):  Change
regaddr to type CORE_ADDR.
* config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.

30 years ago * elf32-hppa.c (CURRENT_STUB_OFFSET, hppa_elf_build_arg_reloc_stub,
Peter Schauer [Tue, 8 Feb 1994 08:57:46 +0000 (08:57 +0000)]
* elf32-hppa.c (CURRENT_STUB_OFFSET, hppa_elf_build_arg_reloc_stub,
hppa_elf_build_long_branch_stub):  Cast to char * instead of int
before performing pointer arithmetic.

30 years ago * config.bfd (hppa*-*-osf*): Use bfd_name hppaosf for this
Jeff Law [Tue, 8 Feb 1994 05:17:01 +0000 (05:17 +0000)]
    * config.bfd (hppa*-*-osf*): Use bfd_name hppaosf for this
        configuration.
        (hppa*-*-*elf*): This configuration used hppa-elf now.

        * som.c: This file is also used for HOST_HPPAOSF.

        * targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.

        * hosts/hppaosf.h: New host configuration file.

        * config/hppabsd.mt (SELECT_VECS): Add bfd_elf32_hppa_vec as
        BSD handles both SOM and ELF object files.

        * config/hppaosf.mh (HDEFINES): Delete.  No longer needed.
        (RANLIB): Doesn't do anything, define it to be "echo".

        * config/hppaosf.mt: New target makefile fragment for a PA running
        OSF1.

30 years ago * som.c: This file is also used for HOST_HPPAOSF.
Jeff Law [Tue, 8 Feb 1994 05:09:34 +0000 (05:09 +0000)]
    * som.c: This file is also used for HOST_HPPAOSF.

        * targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.

30 years agoNew host configuration file.
Jeff Law [Tue, 8 Feb 1994 04:58:32 +0000 (04:58 +0000)]
New host configuration file.

30 years agoOpps.
Jeff Law [Tue, 8 Feb 1994 00:40:55 +0000 (00:40 +0000)]
Opps.

30 years agoOops.
Jeff Law [Tue, 8 Feb 1994 00:40:22 +0000 (00:40 +0000)]
Oops.

30 years ago * archures.c (enum bfd_architecture): Added bfd_arch_powerpc.
Ian Lance Taylor [Tue, 8 Feb 1994 00:38:00 +0000 (00:38 +0000)]
* archures.c (enum bfd_architecture): Added bfd_arch_powerpc.
(archures_init_table): If SELECT_ARCHITECTURES is not defined,
added bfd_powerpc_arch.
* bfd-in2.h: Rebuilt.
* cpu-powerpc.c: New file.
* Makefile.in (ALL_MACHINES, CFILES): Added cpu-powerpc.c.
Rebuilt dependencies.

30 years ago * Rename all "hppaosf" files to "hppaelf".
Jeff Law [Tue, 8 Feb 1994 00:37:19 +0000 (00:37 +0000)]
    * Rename all "hppaosf" files to "hppaelf".
        * Change all "osf" references to "elf" in hppaelf files.
        * Makefile.in: Likewise.
        * configure.in: Likewise.

30 years agoPowerPC CPU support.
Ian Lance Taylor [Tue, 8 Feb 1994 00:35:31 +0000 (00:35 +0000)]
PowerPC CPU support.

30 years ago * Rename all "hppaosf" files to "hppaelf".
Jeff Law [Tue, 8 Feb 1994 00:32:33 +0000 (00:32 +0000)]
    * Rename all "hppaosf" files to "hppaelf".

30 years agoRenamed hppaosf.sc to hppaelf.sc
Jeff Law [Tue, 8 Feb 1994 00:28:48 +0000 (00:28 +0000)]
Renamed hppaosf.sc to hppaelf.sc

30 years agoRenamed hppaosf.em to hppaelf.em
Jeff Law [Tue, 8 Feb 1994 00:28:05 +0000 (00:28 +0000)]
Renamed hppaosf.em to hppaelf.em

30 years agoRenamed hppaosf.sh to hppaelf.sh
Jeff Law [Tue, 8 Feb 1994 00:27:10 +0000 (00:27 +0000)]
Renamed hppaosf.sh to hppaelf.sh

30 years agoRenamed hppaosf.mh to hppaelf.mh
Jeff Law [Tue, 8 Feb 1994 00:25:39 +0000 (00:25 +0000)]
Renamed hppaosf.mh to hppaelf.mh

30 years agoRenamed hppaosf.mt to hppaelf.mt
Jeff Law [Tue, 8 Feb 1994 00:25:05 +0000 (00:25 +0000)]
Renamed hppaosf.mt to hppaelf.mt

30 years agoMon Feb 7 15:53:02 1994 Stan Shebs (shebs@andros.cygnus.com)
Stan Shebs [Mon, 7 Feb 1994 23:55:53 +0000 (23:55 +0000)]
Mon Feb  7 15:53:02 1994  Stan Shebs  (shebs@andros.cygnus.com)

* mpw-make.in (CSEARCH): Add extra-include to search path.

30 years ago * gas/hppa/*/*.exp: Change xfails to check for PA ELF rather than
Jeff Law [Mon, 7 Feb 1994 23:54:54 +0000 (23:54 +0000)]
    * gas/hppa/*/*.exp: Change xfails to check for PA ELF rather than
        PA OSF1.

30 years ago * configure.in (hppa*-*-osf*): Treat this just like most other
Jeff Law [Mon, 7 Feb 1994 23:44:31 +0000 (23:44 +0000)]
    * configure.in (hppa*-*-osf*): Treat this just like most other
        PA configurations (eg no binutils or ld).
        (hppa*-*-*elf*): These configurations have binutils and ld.

30 years ago binutils.texi: minor formatting updates for next release
Jeffrey Osier [Mon, 7 Feb 1994 23:19:00 +0000 (23:19 +0000)]
binutils.texi: minor formatting updates for next release

30 years ago nlmconv.1: minor fix
Jeffrey Osier [Mon, 7 Feb 1994 23:07:38 +0000 (23:07 +0000)]
nlmconv.1: minor fix

30 years agotc-alpha.c (md_atof): Warn that FP vals might not assemble properly
Ken Raeburn [Mon, 7 Feb 1994 21:36:35 +0000 (21:36 +0000)]
tc-alpha.c (md_atof): Warn that FP vals might not assemble properly

30 years agoconfigure.in, tc-alpha, atof-generic changes
Ken Raeburn [Mon, 7 Feb 1994 21:14:39 +0000 (21:14 +0000)]
configure.in, tc-alpha, atof-generic changes

30 years agoEnable alpha-*-osf* configuration.
Ken Raeburn [Mon, 7 Feb 1994 21:12:55 +0000 (21:12 +0000)]
Enable alpha-*-osf* configuration.

30 years ago(load_expression): Parenthesize operations in range checking, to avoid
Ken Raeburn [Mon, 7 Feb 1994 21:12:03 +0000 (21:12 +0000)]
(load_expression): Parenthesize operations in range checking, to avoid
precedence questions.

(addr32): New static variable.
(md_parse_option): Set it for "-32addr".
(load_symbol_address): If addr32 is set, use ldl instead of ldq.

30 years ago * elfcode.h (bfd_section_from_shdr): Get vma and alignment_power
Ian Lance Taylor [Mon, 7 Feb 1994 20:04:46 +0000 (20:04 +0000)]
* elfcode.h (bfd_section_from_shdr): Get vma and alignment_power
of an SHT_STRTAB section from sh_addr and sh_addralign, rather
than just setting them to zero.

30 years ago * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
Jim Kingdon [Mon, 7 Feb 1994 17:04:47 +0000 (17:04 +0000)]
* config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
* configure.in: Remove comment about m68k-em.mt.
* Makefile.in: Remove references.

30 years ago * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
Jim Kingdon [Mon, 7 Feb 1994 16:25:25 +0000 (16:25 +0000)]
* defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
BFD_HOST_64_TYPE.

30 years agotc-alpha, obj-ecoff changes
Ken Raeburn [Mon, 7 Feb 1994 10:13:59 +0000 (10:13 +0000)]
tc-alpha, obj-ecoff changes

30 years ago* tc-alpha.c (md_section_align): Change second argument and
Ken Raeburn [Mon, 7 Feb 1994 10:11:43 +0000 (10:11 +0000)]
* tc-alpha.c (md_section_align): Change second argument and
return type to valueT, to agree with tc.h.
(alpha_do_align): Local static array nop_pattern is now unsigned
char, to avoid overflow warnings.
* tc-alpha.h (md_section_align): Delete declaration.

* obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for
output bfd is non-null before indirecting through it.

Crock to get GP set right:
* tc-alpha.c (alpha_frob_ecoff_data): Renamed from alpha_frob_file.
* tc-alpha.h (tc_frob_file): Macro deleted.
* obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call alpha_frob_ecoff_data, then
fill in optional-header info with gp value and register masks.

30 years agoatof-generic.c, ecoff.c, literal.c, write.c changes
Ken Raeburn [Mon, 7 Feb 1994 09:58:29 +0000 (09:58 +0000)]
atof-generic.c, ecoff.c, literal.c, write.c changes

30 years ago(atof_generic): Calculate maximum number of useful digits in integer
Ken Raeburn [Mon, 7 Feb 1994 09:56:47 +0000 (09:56 +0000)]
(atof_generic): Calculate maximum number of useful digits in integer
arithmetic, to eliminate only source of dependence on floating point support,
which currently doesn't work yet on the Alpha.

30 years ago * ldmain.c (main): Call xatexit, not atexit.
David MacKenzie [Mon, 7 Feb 1994 06:07:26 +0000 (06:07 +0000)]
* ldmain.c (main): Call xatexit, not atexit.
Call xmalloc_set_program_name.

30 years ago * elfcode.h (prep_headers, swap_out_syms): Check for NULL return
David MacKenzie [Mon, 7 Feb 1994 05:17:21 +0000 (05:17 +0000)]
* elfcode.h (prep_headers, swap_out_syms): Check for NULL return
from bfd_new_strtab.
(elf_compute_section_file_positions): Check for false return from
swap_out_syms.

* linker.c (default_indirect_link_order): Check for NULL return
from bfd_get_relocated_section_contents.

* syms.c: Make example application in doc call xmalloc, not
bfd_xmalloc.

* aoutx.h (NAME(aout,slurp_symbol_table),
aout_link_get_symbols, NAME(aout,link_hash_table_create)):
* bout.c (b_out_slurp_reloc_table, b_out_squirt_out_relocs):
* ecoff.c (ecoff_bfd_link_hash_table_create):
* ecofflink.c (bfd_ecoff_debug_init):
* format.c (bfd_check_format_matches):
* linker.c (_bfd_generic_link_hash_table_create):
(_bfd_generic_final_link):
* reloc16.c (bfd_coff_reloc16_relax_section):
(bfd_coff_reloc16_get_relocated_section_contents):
* elf32-hppa.c (hppa_elf_build_arg_reloc_stub):
* elf32-mips.c (mips_elf_final_link):
* elfcode.h (bfd_new_strtab):
(bfd_add_2_to_strtab):
(elf_slurp_symbol_table):
(elf_corefile_note):
* libbfd.c (bfd_zmalloc):
Use malloc and check the result, instead of bfd_xmalloc.

30 years ago * ldlang.c (lang_size_sections): Check if bfd_relax_section set
David MacKenzie [Mon, 7 Feb 1994 05:00:18 +0000 (05:00 +0000)]
* ldlang.c (lang_size_sections): Check if bfd_relax_section set
bfd_errno.

30 years ago (udi_create_inferior): If udi_session_id is negative, open a new
Jim Kingdon [Mon, 7 Feb 1994 02:23:31 +0000 (02:23 +0000)]
(udi_create_inferior): If udi_session_id is negative, open a new
TIP rather than giving an error.

30 years ago * gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
Jim Kingdon [Mon, 7 Feb 1994 02:06:27 +0000 (02:06 +0000)]
* gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
gdb.t03/ptype.exp (ptype structure, ptype union):
Remove xfails; the test is looser than when the xfails were added.

30 years ago * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
Jim Kingdon [Mon, 7 Feb 1994 01:50:51 +0000 (01:50 +0000)]
* config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
since "run" automatically loads if necessary.  Call gdb_target_udi
after the "file" since "file" kills any execution target.

30 years ago * target.c (target_preopen): If target_kill doesn't remove the
Jim Kingdon [Mon, 7 Feb 1994 01:31:15 +0000 (01:31 +0000)]
* target.c (target_preopen): If target_kill doesn't remove the
target from the stack, use pop_target to do it.

30 years ago * gdb.t02/whatis.exp: Remove xfails for PRs 1838 and 2417; they
Jim Kingdon [Mon, 7 Feb 1994 00:59:37 +0000 (00:59 +0000)]
* gdb.t02/whatis.exp: Remove xfails for PRs 1838 and 2417; they
are fixed.

* gdb.t02/whatis.exp: Remove xfails for v_char_array and
v_signed_char_array; the test is looser than when the xfails were
added.

* gdb.t00/{help.exp,default.exp}: Don't test "target remote" on UDI.
* gdb.t00/help.exp: Don't expect remote to be in "help target" output.

30 years ago * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
Jim Kingdon [Mon, 7 Feb 1994 00:53:43 +0000 (00:53 +0000)]
* coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
of TYPE_CODE_PTR or TYPE_CODE_FUNC types.  This parallels similar
changes to stabsread.c from summer 1993.

30 years ago * config.sub (hiux): Fix typo. From m-kasahr@sramhc.sra.co.JP.
Jeff Law [Mon, 7 Feb 1994 00:35:51 +0000 (00:35 +0000)]
    * config.sub (hiux): Fix typo.  From m-kasahr@sramhc.sra.co.JP.

30 years ago * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP.
Jeff Law [Mon, 7 Feb 1994 00:34:59 +0000 (00:34 +0000)]
    * configure.in (hiux): Fixes from m-kasahr@sramhc.sra.co.JP.

30 years ago* gdb.t01/run.exp: Only run shell test if isnative.
Jim Kingdon [Mon, 7 Feb 1994 00:18:08 +0000 (00:18 +0000)]
* gdb.t01/run.exp: Only run shell test if isnative.

30 years ago * config/obj-som.c (obj_som_init_stab_section): Same change
Jeff Law [Mon, 7 Feb 1994 00:15:01 +0000 (00:15 +0000)]
    * config/obj-som.c (obj_som_init_stab_section): Same change
        as coffbfd and elf below.  Zero the initial stab symbol after
        allocating it.

30 years ago * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
Jim Kingdon [Mon, 7 Feb 1994 00:06:45 +0000 (00:06 +0000)]
* config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
since "run" automatically loads if necessary.

30 years ago * config/udi-gdb.exp (gdb_start): Don't send "set args main" to
Jim Kingdon [Sun, 6 Feb 1994 23:45:18 +0000 (23:45 +0000)]
* config/udi-gdb.exp (gdb_start): Don't send "set args main" to
GDB.  GDB doesn't work that way (not anymore at least) on UDI.
* gdb.t01/run.exp: Don't pass extra first argument for UDI.

30 years ago * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
Jim Kingdon [Sun, 6 Feb 1994 23:34:13 +0000 (23:34 +0000)]
* remote-udi.c (udi_files_info): If prog_name is NULL, just skip
printing the program, rather than passing NULL to printf.
(udi_detach): Set udi_session_id to -1 so that udi_close doesn't
try to call UDIDisconnect again.  Print better message.
(udi_kill): Just call UDIDisconnect ourselves, rather than doing
it via udi_close.
(udi_open): Unpush UDI target after target_preopen, now that
udi_kill doesn't pop the target.
(udi_create_inferior): If udi_session_id is negative, open a new
TIP rather than giving an error.

30 years ago * config/mips/mipsm3.mh, config/i386/i386m3.mh,
Jim Kingdon [Sun, 6 Feb 1994 22:38:28 +0000 (22:38 +0000)]
* config/mips/mipsm3.mh, config/i386/i386m3.mh,
config/ns32k/ns32km3.mh: Define NAT_FILE.
* config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
(it was inconsistent and namespace-wrong) to NM_M3_H.
* m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
(m3_open): New function.
(m3_ops): Use it.
* TODO: Update Mach section.

* Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.

30 years ago * printcmd.c (printf_command): Add missing single-letter
Per Bothner [Sun, 6 Feb 1994 21:29:32 +0000 (21:29 +0000)]
* printcmd.c (printf_command):  Add missing single-letter
backslash-escape sequences, and improve error message.

30 years ago * corelow.c (solib_add_stub, core_open): Pass address of from_tty
Jim Kingdon [Sun, 6 Feb 1994 16:16:39 +0000 (16:16 +0000)]
* corelow.c (solib_add_stub, core_open): Pass address of from_tty
rather than trying to shove an int into a pointer and back out
again.  This avoids compiler warnings.

30 years ago * i960-dis.c (reg, mem): Just use a static array instead of
Jim Kingdon [Sun, 6 Feb 1994 15:49:03 +0000 (15:49 +0000)]
* i960-dis.c (reg, mem): Just use a static array instead of
calling xmalloc.

30 years ago * defs.h (alloca): Declare as void *, not char *, on hpux.
Jim Kingdon [Sun, 6 Feb 1994 15:00:00 +0000 (15:00 +0000)]
* defs.h (alloca): Declare as void *, not char *, on hpux.
Don't prototype it, just declare the return type.

30 years ago * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
Peter Schauer [Sun, 6 Feb 1994 11:32:46 +0000 (11:32 +0000)]
* config/i386/tm-sun386.h, config/i386/tm-symmetry.h
(REGISTER_CONVERT_TO_RAW):  Add missing backslash.

30 years agoremove cvs lossage
David MacKenzie [Sun, 6 Feb 1994 01:05:54 +0000 (01:05 +0000)]
remove cvs lossage