Stu Grossman [Mon, 6 May 1996 21:27:37 +0000 (21:27 +0000)]
* fork-child.c (fork_inferior), inferior.h: init_trace_fun now
returns a possibly modified pid.
* inftarg.c (ptrace_him): Now returns pid;
* m3-nat.c (m3_trace_him): Now returns pid;
* infcmd.c (run_command): Minor cleanup.
* infrun.c (wait_for_inferior): Add another check for one_stepped
near where we read the pc to avoid erroneously setting
random_signal for multi-threaded support.
* procfs.c: Add support for Solaris LWPs. Remove def of
LOSING_POLL. Many cleanups... Several workarounds for Solaris
lossage. System call entry and exit are now handled by
dynamically registered handlers.
* (syscallname): Don't barf when handed an unknown syscall
number.
* (info_proc_syscalls): Ditto.
* sol-thread.c: New file. Implements Solaris thread support.
* symfile.c (symbol_file_add): Add call to target_new_objfile to
notify target-dependent code about new symbol tables.
* (clear_symtab_users): Call target_new_objfile to notify it of
the removal of all symbol tables.
* target.c (push_target): Make sure that to_close is non-zero
before calling it.
* target.h (target_new_objfile): Provide default.
* config/alpha/nm-osf2.h: Define LOSING_POLL because this version
of OSF can't hack using poll with /proc.
* config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
sol-thread-new-objfile.
* config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
add libthread_db.so.1 to NAT_CLIBS.
* config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
target_pid_to_str.
Michael Meissner [Mon, 6 May 1996 16:03:44 +0000 (16:03 +0000)]
Fix INLN in bugapi to read a full line
Michael Meissner [Mon, 6 May 1996 11:56:56 +0000 (11:56 +0000)]
Do not do XCOFF hoooks for ELF systems
Jeff Law [Sat, 4 May 1996 18:46:43 +0000 (18:46 +0000)]
* config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
any reloc with an LR% or RR% field selector for SOM.
Fixes net bug.
Ian Lance Taylor [Sat, 4 May 1996 18:27:15 +0000 (18:27 +0000)]
* Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
variables.
Peter Schauer [Sat, 4 May 1996 12:40:46 +0000 (12:40 +0000)]
* elfcode.h (elf_object_p): Reject generic ELF target if
e_machine matches an alternate machine code in a specific backend.
* netbsd-core.c (netbsd_core_vec): Remove initializer for
obsolete align_power_min field.
Ian Lance Taylor [Sat, 4 May 1996 01:00:04 +0000 (01:00 +0000)]
* config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
SF_GET_STATICS set.
(yank_symbols): Likewise.
Tom Tromey [Sat, 4 May 1996 00:08:15 +0000 (00:08 +0000)]
* Makefile.in (all-inet): Depend on all-perl.
Tom Tromey [Fri, 3 May 1996 23:33:33 +0000 (23:33 +0000)]
* Makefile.in (inet-install): New target.
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.
Michael Meissner [Fri, 3 May 1996 19:10:20 +0000 (19:10 +0000)]
Make simulator build in a Canadian cross environment
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.
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.
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.
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.
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.
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.
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.
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.
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.
Ian Lance Taylor [Thu, 2 May 1996 03:11:26 +0000 (03:11 +0000)]
tweak last change
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.
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.
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.
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.
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.
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.
David Edelsohn [Thu, 2 May 1996 00:51:15 +0000 (00:51 +0000)]
* ldlang.c (section_already_linked): Fix typos.
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.
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.
Ian Lance Taylor [Wed, 1 May 1996 01:38:55 +0000 (01:38 +0000)]
* i386.h: Remove Abs32 from lcall.
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.
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>.
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.
Michael Meissner [Tue, 30 Apr 1996 22:50:22 +0000 (22:50 +0000)]
Work in a cross compile environment
Michael Meissner [Tue, 30 Apr 1996 17:56:51 +0000 (17:56 +0000)]
Turn off tk/tcl for powerpcle-*-solaris for now
Michael Meissner [Tue, 30 Apr 1996 17:23:41 +0000 (17:23 +0000)]
Add bieginning of Solaris/PowerPC support
David Edelsohn [Tue, 30 Apr 1996 03:33:23 +0000 (03:33 +0000)]
* scripttempl/pe.sc (.endjunk): Define __end__.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Jeff Law [Sun, 28 Apr 1996 03:37:39 +0000 (03:37 +0000)]
Fix typo in ChangeLog entry.
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.
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.
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.
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.
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.
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.
Ian Lance Taylor [Fri, 26 Apr 1996 18:42:55 +0000 (18:42 +0000)]
* ldmisc.c (vfinfo): Reindent.
Michael Meissner [Fri, 26 Apr 1996 16:36:14 +0000 (16:36 +0000)]
Forward relocs to output if -Bshared
Ian Lance Taylor [Thu, 25 Apr 1996 21:16:58 +0000 (21:16 +0000)]
* configure.in: Add * after sparc*-*-vxworks.
* configure: Rebuild.
Michael Meissner [Thu, 25 Apr 1996 18:24:05 +0000 (18:24 +0000)]
Add support for linking against shared libraries
Michael Meissner [Thu, 25 Apr 1996 17:27:31 +0000 (17:27 +0000)]
Do not make _SDA_BASE{,2}_ a dynamic symbol.
Ian Lance Taylor [Thu, 25 Apr 1996 15:49:40 +0000 (15:49 +0000)]
* configure.in: Don't configure --with-gnu-ld on AIX.
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.
Michael Meissner [Thu, 25 Apr 1996 10:35:44 +0000 (10:35 +0000)]
Turn off gdb temporarily on powerpcle-*-solaris*
Ian Lance Taylor [Wed, 24 Apr 1996 21:06:57 +0000 (21:06 +0000)]
* gas/m68k/op68000.d: Add statements now caught by gas.
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.
Dawn Perchik [Wed, 24 Apr 1996 19:42:24 +0000 (19:42 +0000)]
Forgot to checkin ChangeLog with last checkin for cfront support.
Dawn Perchik [Wed, 24 Apr 1996 19:34:45 +0000 (19:34 +0000)]
Add new support for parsing cfront stabs.
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.
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.
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.
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)..
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.
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.
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.
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].
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].
David Edelsohn [Mon, 22 Apr 1996 23:50:07 +0000 (23:50 +0000)]
* gas/sparc/sparc.exp: Run them.
David Edelsohn [Mon, 22 Apr 1996 23:49:42 +0000 (23:49 +0000)]
Run splet tests.
David Edelsohn [Mon, 22 Apr 1996 23:46:24 +0000 (23:46 +0000)]
* gas/sparc/splet.[ds]: New tests for sparclet extensions.
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.
David Edelsohn [Mon, 22 Apr 1996 23:44:44 +0000 (23:44 +0000)]
New testcase for sparclet extensions.
Fred Fish [Mon, 22 Apr 1996 23:11:03 +0000 (23:11 +0000)]
Consistently use address <fnf@cygnus.com> for entries.
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.
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.
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.
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.
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.
Ian Lance Taylor [Mon, 22 Apr 1996 16:08:18 +0000 (16:08 +0000)]
* emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
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.
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.
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.
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.
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
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.
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.
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@.
Michael Meissner [Thu, 18 Apr 1996 15:56:03 +0000 (15:56 +0000)]
Add -le/-be/-s from Solaris.
David Edelsohn [Thu, 18 Apr 1996 03:18:20 +0000 (03:18 +0000)]
* arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
Rob Savoye [Thu, 18 Apr 1996 01:31:49 +0000 (01:31 +0000)]
* configure.in: Don't configure libgloss for unsupported
architectures.
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.