binutils-gdb.git
28 years ago * sim-gdb.exp: Make the SH simulator allocate less space when
Stan Shebs [Fri, 3 May 1996 23:05:32 +0000 (23:05 +0000)]
* sim-gdb.exp: Make the SH simulator allocate less space when
it is targeted.

28 years agoMake simulator build in a Canadian cross environment
Michael Meissner [Fri, 3 May 1996 19:10:20 +0000 (19:10 +0000)]
Make simulator build in a Canadian cross environment

28 years ago * coff-h8300.c (reloc_howto_type): Add howto entry for
Jeff Law [Fri, 3 May 1996 19:07:31 +0000 (19:07 +0000)]
    * coff-h8300.c (reloc_howto_type): Add howto entry for
        R_PCRWORD_B.
        (rtype2howto): Handle R_PCRWORD_B.
        (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
        (h8300_reloc_16_estimate): Likewise.  Try to turn a 16bit
        pc-relative branch (R_PCRWORD) into an 8bit pc-relative
        branch (R_PCWORD_B).
So we can turn 16bit pcrel branches into 8bit pcrel branches on the H8/300H.
HMSE.

28 years ago * internal.h (R_PCRWORD_B): Define for the h8300 relaxing
Jeff Law [Fri, 3 May 1996 18:57:49 +0000 (18:57 +0000)]
    * internal.h (R_PCRWORD_B): Define for the h8300 relaxing
        linker.
HMSE.

28 years ago * objdump.c (disassemble_data): Don't refer to bytes past the end
Ian Lance Taylor [Fri, 3 May 1996 18:31:00 +0000 (18:31 +0000)]
* objdump.c (disassemble_data): Don't refer to bytes past the end
of data.

28 years ago * aoutx.h (translate_from_native_sym_flags): Set the section for
Ian Lance Taylor [Fri, 3 May 1996 17:58:30 +0000 (17:58 +0000)]
* aoutx.h (translate_from_native_sym_flags): Set the section for
BSF_CONSTRUCTOR symbols.

28 years ago * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
Ian Lance Taylor [Fri, 3 May 1996 17:48:41 +0000 (17:48 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
last_bf_index.

28 years ago * Makefile.in (all-inet): Depend on all-tcl.
Tom Tromey [Fri, 3 May 1996 16:44:22 +0000 (16:44 +0000)]
* Makefile.in (all-inet): Depend on all-tcl.
(all-inet): Depend on all-send-pr.

28 years ago * gdbtk.tcl (debug_interface): New global, use to aid debugging.
Stan Shebs [Fri, 3 May 1996 02:28:13 +0000 (02:28 +0000)]
* gdbtk.tcl (debug_interface): New global, use to aid debugging.
(insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
(file_popup_menu): Delete, never used.
(listing_window_popup): Rename from listing_window_button_1,
remove breakpoint toggling code.
(toggle_breakpoint): New procedure.
(create_file_win): Bind popup menu to button 2, toggle breakpoints
  with button 1 in breakpoint area, add display of tagged areas if
  debugging on.

28 years ago * From Peter Schauer:
Jeff Law [Thu, 2 May 1996 18:43:28 +0000 (18:43 +0000)]
    * From Peter Schauer:
        * breakpoint.h (enum bpdisp):  Add del_at_next_stop.
        * breakpoint.c (insert_breakpoints, watchpoint_check,
        bpstat_stop_status):  Avoid bad references to memory freed via
        delete_breakpoint on watchpoints going out of scope.
        Do not delete these watchpoints, disable them and change their
        disposition to del_at_next_stop instead.
        (breakpoint_auto_delete):  Delete all breakpoints whose disposition
        is del_at_next_stop.
        (breakpoint_init_inferior):  Use switch to avoid reference to
        already deleted breakpoint.
Fixes dangling pointer problems with watchpoints.

28 years ago * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
Jeff Law [Thu, 2 May 1996 18:28:53 +0000 (18:28 +0000)]
    * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
        test.

28 years agotweak last change
Ian Lance Taylor [Thu, 2 May 1996 03:11:26 +0000 (03:11 +0000)]
tweak last change

28 years ago * coffcode.h (styp_to_sec_flags): Handle long symbol names
Ian Lance Taylor [Thu, 2 May 1996 02:56:14 +0000 (02:56 +0000)]
* coffcode.h (styp_to_sec_flags): Handle long symbol names
when looking for the section symbol.

28 years ago * coffcode.h (coff_write_object_contents): In comdat section lookup,
David Edelsohn [Thu, 2 May 1996 02:41:20 +0000 (02:41 +0000)]
* coffcode.h (coff_write_object_contents): In comdat section lookup,
stop looking when section is found.

28 years ago * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
Ian Lance Taylor [Thu, 2 May 1996 02:32:52 +0000 (02:32 +0000)]
* subsegs.h (segment_info_type): If MANY_SEGMENTS and not
BFD_ASSEMBLER, add name field.
* config/obj-coff.c (coff_header_append): Handle long section
names.
(crawl_symbols): Just use the name field for the symbol name,
without worrying about null byte termination.
(w_strings): Handle long section names.
(write_object_file): Likewise.  Also, use the name field, rather
than scnhdr.s_name.
(obj_coff_add_segment): Permit long section names.
(obj_coff_init_stab_section): Use the name field, rather than
scnhdr.s_name.
(adjust_stab_section): Likewise.
* config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.

28 years ago * coffcode.h (STRING_SIZE_SIZE): Define.
Ian Lance Taylor [Thu, 2 May 1996 02:27:55 +0000 (02:27 +0000)]
* coffcode.h (STRING_SIZE_SIZE): Define.
(bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
(bfd_coff_long_section_names): Define.
(coff_write_object_contents): Handle long section names.
(bfd_coff_std_swap_table): Initialize new field.
* libcoff.h: Rebuild.
* coffgen.c (make_a_section_from_file): Handle long section
names.
(coff_write_symbols): Handle long section names.
* coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.
* pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
* pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
* pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
* pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
* pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
* pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.

28 years ago * internal.h (SCNNMLEN): Define.
Ian Lance Taylor [Thu, 2 May 1996 02:21:29 +0000 (02:21 +0000)]
* internal.h (SCNNMLEN): Define.
(struct internal_scnhdr): Use SCNNMLEN for s_name field.

28 years ago * Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.
Fred Fish [Thu, 2 May 1996 01:32:41 +0000 (01:32 +0000)]
* Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.
* config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
* config/rs6000/rs6000.mt (TDEPFILES): ... to here
* xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
(solib_info): Call xcoff_relocate_symtab via the hook.
(sharedlibrary_command): Ditto.
* xcoffread.c: Remove all FAKING_RS6000 comments and defines.
(xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
(xcoff_init_loadinfo_hook): Define and initialize here.
(scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
(xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
* xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
* rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
* rs6000-nat.c (_initialize_core_rs6000): Add initialization
of xcoff_relocate_symtab_hook.

28 years ago * ldlang.c (section_already_linked): Fix typos.
David Edelsohn [Thu, 2 May 1996 00:51:15 +0000 (00:51 +0000)]
* ldlang.c (section_already_linked): Fix typos.

28 years ago * bout.c (b_out_callback): Set lma of sections.
Ian Lance Taylor [Wed, 1 May 1996 21:22:28 +0000 (21:22 +0000)]
* bout.c (b_out_callback): Set lma of sections.
(b_out_bfd_get_relocated_section_contents): Rename in_abfd
parameter to output_bfd.  Used input_bfd instead of output_bfd in
several places.

28 years ago * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
Ian Lance Taylor [Wed, 1 May 1996 20:40:16 +0000 (20:40 +0000)]
* config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
(mem_fmt): Likewise.
(md_apply_fix): Don't check fx_im_disp field.
Fixes problem introduced by September 5, 1995 change to fx_im_disp
definition.

28 years ago * i386.h: Remove Abs32 from lcall.
Ian Lance Taylor [Wed, 1 May 1996 01:38:55 +0000 (01:38 +0000)]
* i386.h: Remove Abs32 from lcall.

28 years ago * aoutx.h (translate_from_native_sym_flags): Don't create
Ian Lance Taylor [Wed, 1 May 1996 01:01:50 +0000 (01:01 +0000)]
* aoutx.h (translate_from_native_sym_flags): Don't create
SEC_CONSTRUCTOR sections.
* ecoff.c (ecoff_set_symbol_info): Likewise.

28 years ago * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
Ian Lance Taylor [Wed, 1 May 1996 00:57:36 +0000 (00:57 +0000)]
* elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
From Don Bowman <bowman@waterloo.hp.com>.

28 years ago * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
David Edelsohn [Wed, 1 May 1996 00:08:41 +0000 (00:08 +0000)]
* coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.

28 years agoWork in a cross compile environment
Michael Meissner [Tue, 30 Apr 1996 22:50:22 +0000 (22:50 +0000)]
Work in a cross compile environment

28 years agoTurn off tk/tcl for powerpcle-*-solaris for now
Michael Meissner [Tue, 30 Apr 1996 17:56:51 +0000 (17:56 +0000)]
Turn off tk/tcl for powerpcle-*-solaris for now

28 years agoAdd bieginning of Solaris/PowerPC support
Michael Meissner [Tue, 30 Apr 1996 17:23:41 +0000 (17:23 +0000)]
Add bieginning of Solaris/PowerPC support

28 years ago * scripttempl/pe.sc (.endjunk): Define __end__.
David Edelsohn [Tue, 30 Apr 1996 03:33:23 +0000 (03:33 +0000)]
* scripttempl/pe.sc (.endjunk): Define __end__.

28 years ago * c-valprint.c (c_val_print): Fix printing for arrays defined
Dawn Perchik [Mon, 29 Apr 1996 23:25:27 +0000 (23:25 +0000)]
    * c-valprint.c (c_val_print): Fix printing for arrays defined
        with 0 length.

28 years ago * ldlang.c (longest_section_name): Remove.
Ian Lance Taylor [Mon, 29 Apr 1996 21:12:49 +0000 (21:12 +0000)]
* ldlang.c (longest_section_name): Remove.
(SECTION_NAME_MAP_LENGTH): Define.
(print_size, print_alignment, print_fill, print_section): Remove.
(print_flags): Remove.
(lang_map): Rewrite.
(print_output_section_statement): Rewrite.
(print_assignment): Rewrite.
(print_one_symbol): Rewrite.
(print_input_section): Rewrite.
(print_fill_statement): Rewrite.
(print_data_statement): Rewrite.
(print_address_statement): New static function.
(print_reloc_statement): Rewrite.
(print_padding_statement): Rewrite.
(print_wild_statement): Rewrite.
(print_statement_list): Clean up.
(print_statement): Clean up.  Some minor output changes.
(print_statements): Clean up.
(load_symbols): Put another - before -whole-archive.
* ldexp.c (exp_print_tree): Change etree_value and etree_rel to
print 0x and to omit leading zeroes.  For etree_rel, use %B to
print the BFD.  For etree_assign, remove the space after the
destination name.
* ldwrite.c: Include "libiberty.h".
(clone_section): Call xstrdup, not strdup.
(ldwrite): Don't print any map information.
(print_symbol_table, print_file_stuff, print_symbol): Remove.
* ldmain.c (main): Call lang_map when appropriate.
* ldmisc.c (vfinfo): Add support for %W.
(print_address): Remove.
* ldmisc.h (print_address): Don't declare.
* Makefile.in: Rebuild dependencies.

28 years ago * elf32-mips.c (struct mips_elf_link_hash_entry): Add
Ian Lance Taylor [Mon, 29 Apr 1996 17:27:02 +0000 (17:27 +0000)]
* elf32-mips.c (struct mips_elf_link_hash_entry): Add
mips_32_relocs field.
(mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
(mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
relocs against a global symbol which is not defined in a regular
file.
(mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
against a global symbol, increment mips_32_relocs.
(mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
the symbol is not defined in a regular file, make room in the
.rel.dyn section.

28 years agoMon Apr 29 10:33:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 29 Apr 1996 14:34:44 +0000 (14:34 +0000)]
Mon Apr 29 10:33:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* ld-shared/shared.exp: Run the shared library tests on
  Linux/m68k.

28 years agoMon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 29 Apr 1996 14:34:14 +0000 (14:34 +0000)]
Mon Apr 29 10:29:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* configure.host (m68*-*-linux*): Add -dynamic-linker to
  HOSTING_CRT0.  Search -lgcc both before and after -lc in
  HOSTING_LIBS.  Look for crt{begin,end}.o in the compiler directory
  at first.
(i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
directory at first.

28 years ago Support for bi-endian remote breakpoints.
Stan Shebs [Sun, 28 Apr 1996 23:43:05 +0000 (23:43 +0000)]
Support for bi-endian remote breakpoints.
* remote.c (big_break_insn, little_break_insn): New globals.
(break_insn): Remove.
(remote_insert_breakpoint, remote_remove_breakpoint): Use own
code if REMOTE_BREAKPOINT defined, otherwise call memory
breakpoint functions.
* config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
(BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.

28 years ago * mon960-rom.c (mon960_cmds): Remove forward decl.
Stan Shebs [Sun, 28 Apr 1996 22:14:17 +0000 (22:14 +0000)]
* mon960-rom.c (mon960_cmds): Remove forward decl.
(mon960_load): Use current_monitor instead of mon960_cmds.
(mon960_regnames): Remove backslashes from line ends.
(_initialize_mon960): Fix documentation string.

28 years ago * symfile.h (psymbol_allocation_list): Expand comments which
Fred Fish [Sun, 28 Apr 1996 19:22:40 +0000 (19:22 +0000)]
* symfile.h (psymbol_allocation_list):  Expand comments which
describe the psymbol allocation list and how each field is
used.

28 years ago * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
Peter Schauer [Sun, 28 Apr 1996 10:49:54 +0000 (10:49 +0000)]
* breakpoint.c (delete_breakpoint):  Fix bpt->val, bpt->exp
storage leaks.
(breakpoint_re_set_one):  Fix b->exp, b->val, b->cond storage leaks.

* infcmd.c (run_command), solib.c (locate_base):  Check for
target_has_execution in addition to inferior_pid, a core file
from a threaded program is yielding a non-zero inferior_pid.

* sparc-tdep.c (get_saved_register):  Handle window registers
in a dummy frame correctly.

28 years ago * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
Fred Fish [Sun, 28 Apr 1996 03:47:49 +0000 (03:47 +0000)]
* Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
so that anything that wants an allocation function not yet pulled
in, will get it from mmalloc rather than a system library.
* Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
to avoid surprising results when used.

28 years agoFix typo in ChangeLog entry.
Jeff Law [Sun, 28 Apr 1996 03:37:39 +0000 (03:37 +0000)]
Fix typo in ChangeLog entry.

28 years agoRemove some #if 0 code which creeped into wait_for_inferior during
Jeff Law [Sun, 28 Apr 1996 03:35:58 +0000 (03:35 +0000)]
Remove some #if 0 code which creeped into wait_for_inferior during
my previous change.

28 years ago * stabsread.c: Changes and bug fixes for cfront support.
Dawn Perchik [Sat, 27 Apr 1996 09:47:53 +0000 (09:47 +0000)]
* stabsread.c: Changes and bug fixes for cfront support.
Fix bug for class data members.
Fix parsing bug when no base classes exist.
Fix memory bug - allocate space for cplusplus specific info.
Add support for static data.
Add prototypes for static functions.
Enhance comments to show what each function expects to parse.
Cleanup code.
* stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
function to resolve_cfront_continuation.

28 years ago * infrun.c (wait_for_inferior): Call registers_changed when
Jeff Law [Sat, 27 Apr 1996 05:56:07 +0000 (05:56 +0000)]
    * infrun.c (wait_for_inferior): Call registers_changed when
        restarting the inferior to get over a nullified instructions.
Fixes PA testsuite regressions.

28 years ago * ecoff.c (ecoff_compute_section_file_positions): Track the real
Ian Lance Taylor [Fri, 26 Apr 1996 23:16:52 +0000 (23:16 +0000)]
* ecoff.c (ecoff_compute_section_file_positions): Track the real
file position and the virtual file position separately.  Set
filepos information bsaed on the real file position.
(_bfd_ecoff_set_section_contents): Handle .lib sections like the
Jan 23 change to coffcode.h.
Make Irix 4 shared libraries work again.

28 years ago * ldmisc.h (demangle): Declare.
Ian Lance Taylor [Fri, 26 Apr 1996 22:15:10 +0000 (22:15 +0000)]
* ldmisc.h (demangle): Declare.
* ldmisc.c: Include "libiberty.h".  Include demangle.h with "",
  not <>.
(demangle): Make non-static.  Remove remove_underscore paramter.
Always return an allocated string.
(vfinfo): Free result of demangle.  Add case 'G'.  Use %T to print
functionname, rather than calling demangle.  Print a colon between
the BFD(section+offset) and the line number.
* ldmain.c (add_archive_element): Improve format of archive
information in map file.
(constructor_callback): Don't print anything to the map file.
* ldlang.c (lang_one_common): Improve format of common symbol
information in map file.
* ldctor.c (ldctor_build_sets): If producing a map file, print set
information.
* ldwrite.c (print_symbol_table): Print a newline before the
header in the map file.
* Makefile.in: Rebuild dependencies.

28 years ago * som.c (som_slurp_symbol_table): Set the symbol count to the
Ian Lance Taylor [Fri, 26 Apr 1996 22:01:22 +0000 (22:01 +0000)]
* som.c (som_slurp_symbol_table): Set the symbol count to the
number of BFD symbols created.
PR 5332.

28 years ago * ldmisc.c (vfinfo): Reindent.
Ian Lance Taylor [Fri, 26 Apr 1996 18:42:55 +0000 (18:42 +0000)]
* ldmisc.c (vfinfo): Reindent.

28 years agoForward relocs to output if -Bshared
Michael Meissner [Fri, 26 Apr 1996 16:36:14 +0000 (16:36 +0000)]
Forward relocs to output if -Bshared

28 years ago * configure.in: Add * after sparc*-*-vxworks.
Ian Lance Taylor [Thu, 25 Apr 1996 21:16:58 +0000 (21:16 +0000)]
* configure.in: Add * after sparc*-*-vxworks.
* configure: Rebuild.

28 years agoAdd support for linking against shared libraries
Michael Meissner [Thu, 25 Apr 1996 18:24:05 +0000 (18:24 +0000)]
Add support for linking against shared libraries

28 years agoDo not make _SDA_BASE{,2}_ a dynamic symbol.
Michael Meissner [Thu, 25 Apr 1996 17:27:31 +0000 (17:27 +0000)]
Do not make _SDA_BASE{,2}_ a dynamic symbol.

28 years ago * configure.in: Don't configure --with-gnu-ld on AIX.
Ian Lance Taylor [Thu, 25 Apr 1996 15:49:40 +0000 (15:49 +0000)]
* configure.in: Don't configure --with-gnu-ld on AIX.

28 years ago * app.c (do_scrub_begin): If tc_comment_chars is not defined,
Ian Lance Taylor [Thu, 25 Apr 1996 15:43:13 +0000 (15:43 +0000)]
* app.c (do_scrub_begin): If tc_comment_chars is not defined,
define it to comment_chars.  Use tc_comment_chars rather than
comment_chars.
(do_scrub_chars): Use tc_comment_chars rather than comment_chars.
* config/tc-m68k.h (tc_comment_chars): Define.
(m68k_comment_chars): Declare.
* config/tc-m68k.c (m68k_comment_chars): Rename from
comment_chars.  Change into a pointer rather than an array.
(md_longopts): Add "bitwise-or".
(md_parse_option): Handle OPTION_BITWISE_OR.
(md_show_usage): Mention --bitwise-or.
* doc/c-m68k.texi: Document --bitwise-or.
PR 9518.

28 years agoTurn off gdb temporarily on powerpcle-*-solaris*
Michael Meissner [Thu, 25 Apr 1996 10:35:44 +0000 (10:35 +0000)]
Turn off gdb temporarily on powerpcle-*-solaris*

28 years ago * gas/m68k/op68000.d: Add statements now caught by gas.
Ian Lance Taylor [Wed, 24 Apr 1996 21:06:57 +0000 (21:06 +0000)]
* gas/m68k/op68000.d: Add statements now caught by gas.

28 years ago * config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
Ian Lance Taylor [Wed, 24 Apr 1996 21:05:20 +0000 (21:05 +0000)]
* config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
  in 68000 mode.

28 years ago Forgot to checkin ChangeLog with last checkin for cfront support.
Dawn Perchik [Wed, 24 Apr 1996 19:42:24 +0000 (19:42 +0000)]
Forgot to checkin ChangeLog with last checkin for cfront support.

28 years ago Add new support for parsing cfront stabs.
Dawn Perchik [Wed, 24 Apr 1996 19:34:45 +0000 (19:34 +0000)]
Add new support for parsing cfront stabs.

28 years ago * rddbg.c (read_symbol_stabs_debugging_info): Move call to
Ian Lance Taylor [Wed, 24 Apr 1996 18:11:23 +0000 (18:11 +0000)]
* rddbg.c (read_symbol_stabs_debugging_info): Move call to
free_saved_stabs outside the loop over the symbols.

28 years ago * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
Ian Lance Taylor [Wed, 24 Apr 1996 18:10:46 +0000 (18:10 +0000)]
* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
members of an archive for dynamic objects with no symbols, and
pass them directly to check_archive_element.
(xcoff_link_check_ar_symbols): Pass dynamic objects to
xcoff_link_check_dynamic_ar_symbols.
(xcoff_link_check_dynamic_ar_symbols): New static function.
The above is for PR 9520.

* coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
from _bfd_nodynamic to _bfd_xcoff.
* libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
Declare.
(_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
(_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
(_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
* libcoff.h: Rebuild.
* xcofflink.c (xcoff_swap_ldrel_in): New static function.
(xcoff_get_section_contents): New static function.
(_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
(_bfd_xcoff_canonicalize_dynamic_symtab): New function.
(_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
(xcoff_dynamic_reloc): New static variable.
(_bfd_xcoff_canonicalize_dynamic_reloc): New function.
(xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.

28 years ago * config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
Ian Lance Taylor [Wed, 24 Apr 1996 15:30:56 +0000 (15:30 +0000)]
* config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
call demand_empty_rest_of_line.  Non BFD_ASSEMBLER version:
correct handling of input line pointer, and call
demand_empty_rest_of_line.
PR 9525.

28 years ago * infrun.c (wait_for_inferior): Move "have_waited" label
Jeff Law [Wed, 24 Apr 1996 06:36:10 +0000 (06:36 +0000)]
    * infrun.c (wait_for_inferior): Move "have_waited" label
        outside of #ifdef conditionals.  Don't trash the wait status
        if we get a signal and the current instruction is nullified.
Fixes long standing problem on the PA (spurious SIGTRAPs)..

28 years ago * Makefile.in (VERSION): Bump version number to 4.16.1
Fred Fish [Tue, 23 Apr 1996 23:35:51 +0000 (23:35 +0000)]
* Makefile.in (VERSION): Bump version number to 4.16.1
* NEWS: Update for 4.16 release.

28 years ago * objdump.c (compare_symbols): Sort symbols whose names start with
Ian Lance Taylor [Tue, 23 Apr 1996 16:58:18 +0000 (16:58 +0000)]
* objdump.c (compare_symbols): Sort symbols whose names start with
  `.' after other symbols.  If no other decision can be made, sort
symbols by name.

28 years ago * Makefile.in (ALL_MODULES): Added all-inet.
Tom Tromey [Tue, 23 Apr 1996 15:41:14 +0000 (15:41 +0000)]
    * Makefile.in (ALL_MODULES): Added all-inet.
        (CROSS_CHECK_MODULES): Added check-inet.
        (INSTALL_MODULES): Added install-inet.
        (CLEAN_MODULES): Added clean-inet.
        (all-indent): New target.

        * configure.in (host_tools): Added inet.
        (native_only): Added inet.
        (noconfigdirs): Added inet.

28 years ago * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
David Edelsohn [Tue, 23 Apr 1996 01:33:32 +0000 (01:33 +0000)]
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
R_SPARC_GLOB_JMP.
* elf64-sparc.c (sparc64_elf_howto_table): Likewise.
Add entries for R_SPARC_[56].
(sparc_reloc_map): Add entries for R_SPARC_[56].

28 years ago * config/tc-sparc.c (in_bitfield_range): New static function.
David Edelsohn [Tue, 23 Apr 1996 01:25:42 +0000 (01:25 +0000)]
* config/tc-sparc.c (in_bitfield_range): New static function.
(sparc_ip): New cases X,Y.  Use SPARC_OPCODE_ARCH_V9_P.
(md_apply_fix, cases BFD_RELOC_32_PCREL_S2,
BFD_RELOC_SPARC_{WDISP16,WDISP19}): Fix undefined code.
(md_apply_fix): New cases BFD_RELOC_SPARC_[56].
(tc_gen_reloc): New cases BFD_RELOC_SPARC_[56].

28 years ago * gas/sparc/sparc.exp: Run them.
David Edelsohn [Mon, 22 Apr 1996 23:50:07 +0000 (23:50 +0000)]
* gas/sparc/sparc.exp: Run them.

28 years agoRun splet tests.
David Edelsohn [Mon, 22 Apr 1996 23:49:42 +0000 (23:49 +0000)]
Run splet tests.

28 years ago * gas/sparc/splet.[ds]: New tests for sparclet extensions.
David Edelsohn [Mon, 22 Apr 1996 23:46:24 +0000 (23:46 +0000)]
* gas/sparc/splet.[ds]: New tests for sparclet extensions.

28 years ago * monitor.h: Clean up comment formatting.
Stan Shebs [Mon, 22 Apr 1996 23:46:02 +0000 (23:46 +0000)]
* monitor.h: Clean up comment formatting.
(current_monitor): Remove decl.
(LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
(push_monitor, SREC_SIZE): Remove.
* monitor.c: Expand old macro into current_monitor derefs
everywhere.
* remote-os9k.c (current_monitor): Remove definition.

28 years agoNew testcase for sparclet extensions.
David Edelsohn [Mon, 22 Apr 1996 23:44:44 +0000 (23:44 +0000)]
New testcase for sparclet extensions.

28 years agoConsistently use address <fnf@cygnus.com> for entries.
Fred Fish [Mon, 22 Apr 1996 23:11:03 +0000 (23:11 +0000)]
Consistently use address <fnf@cygnus.com> for entries.

28 years ago Optimize linking of stabs in sections as used in ELF and COFF.
Ian Lance Taylor [Mon, 22 Apr 1996 22:35:53 +0000 (22:35 +0000)]
Optimize linking of stabs in sections as used in ELF and COFF.
* stabs.c: New file.
* libbfd-in.h (_bfd_link_section_stabs): Declare.
(_bfd_write_section_stabs): Declare.
(_bfd_write_stab_strings): Declare.
* libbfd.h: Rebuild.
* libcoff-in.h (struct coff_section_tdata): Add stab_info field.
(struct coff_link_hash_table): Add stab_info field.
* libcoff.h: Rebuild.
* cofflink.c (_bfd_coff_link_hash_table_init): Initialize
stab_info field.
(coff_link_add_symbols): Call _bfd_link_section_stabs if
appropriate.
(_bfd_coff_final_link): Write out stab strings hash table.
(_bfd_coff_link_input_bfd): Handle optimized stabs sections.
* coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
hash table.
* elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
(struct bfd_elf_section_data): Add stab_info field.
* elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
field.
* elflink.h (elf_link_add_object_symbols): If appropriate, call
_bfd_link_section_stabs.
(elf_bfd_final_link): Write out stab strings hash table.
(elf_link_input_bfd): Handle optimized stabs sections.
* reloc.c (_bfd_final_link_relocate): Check address against
_raw_size rather than _cooked_size.
* Makefile.in: Rebuild dependencies.
(BFD_LIBS): Add stabs.o
(BFD_LIBS_CFILES): Add stabs.c.

28 years ago * corefile.c (specify_exec_file_hook): Allow arbitrary number of
Mark Alexander [Mon, 22 Apr 1996 22:31:10 +0000 (22:31 +0000)]
* corefile.c (specify_exec_file_hook): Allow arbitrary number of
  hooks.
(call_extra_exec_file_hooks): New function.
* h8300-tdep.c: Lint; add .h files to provide missing declarations,
remove unused variables.
(set_machine_hook): New function.
(_initialize_h8300m): Initialize it.

PR 8849.

28 years ago * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
Ian Lance Taylor [Mon, 22 Apr 1996 21:32:58 +0000 (21:32 +0000)]
* ldlang.c (lang_size_sections): If _cooked_size is not 0, then
don't clobber it when not relaxing.

* ld.h (ld_config_type): Remove traditional_format field.
* ldmain.c (main): Use link_info.traditional_format rather than
config.traditional_format.
* ldlang.c (ldlang_open_output): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
* mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.

28 years ago * coffgen.c (coff_renumber_symbols): Correct handling of
Ian Lance Taylor [Mon, 22 Apr 1996 19:10:10 +0000 (19:10 +0000)]
* coffgen.c (coff_renumber_symbols): Correct handling of
BSF_NOT_AT_END common symbols.

28 years ago * ldlang.c (wild_doit): Discard debugging sections if we are
Ian Lance Taylor [Mon, 22 Apr 1996 16:22:52 +0000 (16:22 +0000)]
* ldlang.c (wild_doit): Discard debugging sections if we are
stripping debugging information.

28 years ago * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
Ian Lance Taylor [Mon, 22 Apr 1996 16:08:18 +0000 (16:08 +0000)]
* emulparams/z8002.sh (ARCH): Set to z8002, not z8k.

28 years ago * coff-ppc.c (record_toc): Add cast to avoid warning.
Ian Lance Taylor [Fri, 19 Apr 1996 23:24:41 +0000 (23:24 +0000)]
* coff-ppc.c (record_toc): Add cast to avoid warning.
(ppc_allocate_toc_section): Likewise.
(coff_ppc_relocate_section): Remove ANSI C string concatenation.
(ppc_coff_reloc_type_lookup): Remove unreached code.
* coffcode.h (coff_write_object_contents): Don't take the address
of an array.
* peicode.h (pe_print_idata): Add casts to avoid warning.
(pe_print_edata): Likewise.
(pe_print_reloc): Remove ANSI C string concatenation.

28 years ago * configure.in: Don't configure libgloss if we are not configuring
Ian Lance Taylor [Fri, 19 Apr 1996 19:36:44 +0000 (19:36 +0000)]
* configure.in: Don't configure libgloss if we are not configuring
newlib.

28 years ago * remote-mips.c (encoding): Don't specify size, to avoid bug in
Ian Lance Taylor [Fri, 19 Apr 1996 19:05:00 +0000 (19:05 +0000)]
* remote-mips.c (encoding): Don't specify size, to avoid bug in
SunOS native compiler.

28 years agoFri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Fri, 19 Apr 1996 14:53:16 +0000 (14:53 +0000)]
Fri Apr 19 15:48:24 1996  James G. Smith  <jsmith@cygnus.co.uk>

* gencode.c (process_instructions): Ensure FP ABS instruction
  recognised.
* interp.c (AbsoluteValue): Add routine. Also provide simple PMON
  system call support.

28 years ago * monitor.c: Use int rather than LONGEST for values, since
Stan Shebs [Fri, 19 Apr 1996 01:55:57 +0000 (01:55 +0000)]
* monitor.c: Use int rather than LONGEST for values, since
the formatting strings are not prepared to accept long longs.
PR 9432

28 years ago * config/obj-coff.c: BFD_ASSEMBLER:
Ian Lance Taylor [Thu, 18 Apr 1996 23:00:29 +0000 (23:00 +0000)]
* config/obj-coff.c: BFD_ASSEMBLER:
  (coff_last_bf): New static variable.
(coff_frob_symbol): Set endndx of a .bf symbol.
Non BFD_ASSEMBLER:
(obj_coff_endef): Call SF_SET_PROCESS on a .bf symbol.
(last_bfP): New static variable.
(yank_symbols): Set endndx of a .bf symbol.
PR 9467.

28 years ago * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
Ian Lance Taylor [Thu, 18 Apr 1996 22:55:54 +0000 (22:55 +0000)]
* libcoff-in.h (struct coff_final_link_info): Add last_bf_index
and last_bf fields.
* libcoff.h: Rebuild.
* coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
symbols.
(coff_swap_aux_out): Likewise.
* peicode.h (coff_swap_aux_in): Likewise.
(coff_swap_aux_out): Likewise.
* coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
symbols.
* cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
field.
(_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
Fix up .bf endndx link fields.
* coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
field.
* xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
symbols.
PR 9467.

28 years ago * dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
Ian Lance Taylor [Thu, 18 Apr 1996 20:03:52 +0000 (20:03 +0000)]
* dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
* Makefile.in: Rebuild dependencies.
(dep.sed): Substitute $(BFDDIR) for @BFDDIR@.

28 years agoAdd -le/-be/-s from Solaris.
Michael Meissner [Thu, 18 Apr 1996 15:56:03 +0000 (15:56 +0000)]
Add -le/-be/-s from Solaris.

28 years ago * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
David Edelsohn [Thu, 18 Apr 1996 03:18:20 +0000 (03:18 +0000)]
* arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.

28 years ago * configure.in: Don't configure libgloss for unsupported
Rob Savoye [Thu, 18 Apr 1996 01:31:49 +0000 (01:31 +0000)]
* configure.in: Don't configure libgloss for unsupported
architectures.

28 years ago * saprc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
David Edelsohn [Wed, 17 Apr 1996 21:21:09 +0000 (21:21 +0000)]
* saprc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.

28 years ago * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
Ian Lance Taylor [Wed, 17 Apr 1996 21:09:34 +0000 (21:09 +0000)]
* xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.

28 years agoupdate from Andrew
Michael Meissner [Wed, 17 Apr 1996 20:09:36 +0000 (20:09 +0000)]
update from Andrew

28 years agoUpdate for Solaris
Michael Meissner [Wed, 17 Apr 1996 19:05:20 +0000 (19:05 +0000)]
Update for Solaris

28 years ago * linker.c (_bfd_generic_link_add_one_symbol): When calling the
Ian Lance Taylor [Wed, 17 Apr 1996 17:21:52 +0000 (17:21 +0000)]
* linker.c (_bfd_generic_link_add_one_symbol): When calling the
callback routines, pass h->root.string rather than name, in case
copy is true and name is transient.

28 years ago * read.c (s_space): Support non-constant fill value. Handle fill
Ian Lance Taylor [Wed, 17 Apr 1996 16:33:21 +0000 (16:33 +0000)]
* read.c (s_space): Support non-constant fill value.  Handle fill
value correctly for a size other than 1.
PR 9474.

28 years ago * tests1.{ch,exp}: Tets case modified and enhanced.
Wilfried Moser [Wed, 17 Apr 1996 08:24:36 +0000 (08:24 +0000)]
    * tests1.{ch,exp}: Tets case modified and enhanced.

28 years ago * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
Stu Grossman [Wed, 17 Apr 1996 00:48:09 +0000 (00:48 +0000)]
* corelow.c (add_to_thread_list):  Make sure reg_sect is non-null
before de-referencing it.  Prevents deref of NULL pointer if core
file lacks .reg section.
* defs.h:  Rename floatformat_{to from}_long_double to
floatformat_{to from}_doublest.  Get rid of FLOATFORMAT_{TO
FROM}... macros.
* findvar.c (extract_floating store_floating):  Change all refs to
FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
* utils.c:  Change floatformat_{to from}_long_double to
floatformat_{to from}_doublest cuz the new routines will use
whatever size (double or long double) is appropriate.
* config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
REGISTER_CONVERT_TO_RAW):  Change FLOATFORMAT... macros to
floatformat... routine calls.

28 years ago * elfcore.h: Add support for core files with multiple threads.
Stu Grossman [Tue, 16 Apr 1996 23:39:54 +0000 (23:39 +0000)]
* elfcore.h:  Add support for core files with multiple threads.
(Primarily for Solaris.)

28 years ago * config/tc-arm.c (my_get_float_expression): Update call to
David Edelsohn [Tue, 16 Apr 1996 22:18:20 +0000 (22:18 +0000)]
* config/tc-arm.c (my_get_float_expression): Update call to
gen_to_words, X_PRECISION changed from 6 to 5.