binutils-gdb.git
18 years ago2006-03-31 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 31 Mar 2006 19:47:11 +0000 (19:47 +0000)]
2006-03-31  Michael Snyder  <msnyder@redhat.com>

* gdb.texinfo: Update copyright dates.

18 years agoFix last change.
Eli Zaretskii [Fri, 31 Mar 2006 14:17:58 +0000 (14:17 +0000)]
Fix last change.

18 years ago * gdb.texinfo (Overview): Add an index entry to "empty response".
Eli Zaretskii [Fri, 31 Mar 2006 14:14:28 +0000 (14:14 +0000)]
* gdb.texinfo (Overview): Add an index entry to "empty response".

18 years ago * pdp11-opc.c (pdp11_opcodes): Fix opcode for SEC instruction.
Alan Modra [Fri, 31 Mar 2006 11:43:14 +0000 (11:43 +0000)]
* pdp11-opc.c (pdp11_opcodes): Fix opcode for SEC instruction.

18 years ago * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
Jakub Jelinek [Fri, 31 Mar 2006 11:23:55 +0000 (11:23 +0000)]
* ldmisc.c (vfinfo): Revert 2005-10-05 changes.  If
bfd_find_nearest_line succeeded for %C or %D, but filename
is NULL, print section+offset at the end.

18 years ago2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
Andrew Stubbs [Fri, 31 Mar 2006 10:36:18 +0000 (10:36 +0000)]
2006-03-31  Andrew Stubbs  <andrew.stubbs@st.com>

* value.h (struct internalvar): Add field 'endian'.
* value.c (lookup_internalvar): Initialise endian.
(value_of_internalvar): Flip the endian of built-in types if required.
(set_internalvar): Set the endian.
(show_convenience): Access the value through value_of_internalvar().

18 years ago PR binutils/1860
Ben Elliston [Fri, 31 Mar 2006 02:32:20 +0000 (02:32 +0000)]
PR binutils/1860
* configure.in: Require makeinfo 4.4 or higher.
* configure: Regenerate.

18 years agodaily update
Alan Modra [Fri, 31 Mar 2006 00:00:08 +0000 (00:00 +0000)]
daily update

18 years ago*** empty log message ***
gdbadmin [Fri, 31 Mar 2006 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

18 years ago2006-03-30 Vladimir Prus <ghost@cs.msu.su>
Daniel Jacobowitz [Thu, 30 Mar 2006 16:56:30 +0000 (16:56 +0000)]
2006-03-30  Vladimir Prus  <ghost@cs.msu.su>

* remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
instead of hardcoded integer literals.

18 years agogdb/
Daniel Jacobowitz [Thu, 30 Mar 2006 16:51:20 +0000 (16:51 +0000)]
gdb/
* cli/cli-script.c (insert_args): Handle NULL user_args.
gdb/testsuite/
* gdb.base/commands.exp (stray_arg0_test): New test.

18 years ago * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
Daniel Jacobowitz [Thu, 30 Mar 2006 16:48:47 +0000 (16:48 +0000)]
* arm-tdep.c (thumb_scan_prologue): Don't try to analyze
the function at zero if we have no symbols.

18 years ago * i386-stub.c (getpacket): Fix array overflow.
Daniel Jacobowitz [Thu, 30 Mar 2006 16:44:12 +0000 (16:44 +0000)]
* i386-stub.c (getpacket): Fix array overflow.
* m32r-stub.c (getpacket): Likewise.
* m68k-stub.c (getpacket): Likewise.
* sh-stub.c (getpacket): Likewise.
* sparc-stub.c (getpacket): Likewise.

18 years ago * frame.h (set_current_sal_from_frame): New prototype.
Daniel Jacobowitz [Thu, 30 Mar 2006 16:37:13 +0000 (16:37 +0000)]
* frame.h (set_current_sal_from_frame): New prototype.
* stack.c (set_current_sal_from_frame): Make global.
* infrun.c (normal_stop): Call set_current_sal_from_frame.

18 years ago * linux-thread-db.c: Include "linux-nat.h".
Daniel Jacobowitz [Thu, 30 Mar 2006 16:34:23 +0000 (16:34 +0000)]
* linux-thread-db.c: Include "linux-nat.h".
(check_for_thread_db): New function, split out from
thread_db_new_objfile.  Remove dead check for active
thread_db on inapplicable targets.
(thread_db_new_objfile): Call check_for_thread_db.
* Makefile.in (linux-thread-db.o): Update.
* linux-nat.c (child_post_attach): Call check_for_thread_db.
(linux_child_post_startup_inferior): Likewise.
(lin_lwp_attach_lwp): Call target_post_attach instead of
child_post_attach.
* linux-nat.h (check_for_thread_db): New prototype.

18 years ago * remote.c (struct remote_state): Add BUF and BUF_SIZE.
Daniel Jacobowitz [Thu, 30 Mar 2006 16:25:06 +0000 (16:25 +0000)]
* remote.c (struct remote_state): Add BUF and BUF_SIZE.
(init_remote_state): Initialize the new fields.
(get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
(set_thread, remote_thread_alive, remote_unpack_thread_info_response)
(remote_get_threadinfo, parse_threadlist_response)
(remote_get_threadlist, remote_current_thread, remote_threads_info)
(remote_threads_extra_info, extended_remote_restart, get_offsets)
(remote_check_symbols, remote_open_1, remote_detach)
(remove_vcont_probe, remote_vcont_resume, remote_resume)
(remote_wait, remote_async_wait, fetch_register_using_p)
(remote_fetch_registers, store_register_using_P)
(remote_store_registers, check_binary_download, remote_write_bytes)
(remote_read_bytes, remote_insert_breakpoint)
(remote_remove_breakpoint, remote_insert_watchpoint)
(remote_remove_watchpoint, remote_insert_hw_breakpoint)
(remote_remove_hw_breakpoint, compare_sections_command)
(remote_xfer_partial, remote_rcmd, packet_command)
(remote_get_thread_local_address): Use the global incoming buffer
instead of alloca or xmalloc.  Limit outgoing packets to
rs->remote_packet_size and incoming packets to rs->buf_size.
Update calls to getpkt and remote_send.
(remote_send): Take arguments by reference.
(putpkt_binary): Eliminate junkbuf.  Use skip_frame.
(skip_frame): New function.
(read_frame): Take arguments by reference.  Expand the packet
buffer instead of issuing an error.
(getpkt, getpkt_sane): Take arguments by reference.
* remote.h (getpkt): Update prototype and doc.
* tracepoint.c (remote_get_noisy_reply): Take arguments by
reference.
(target_buf): Change from array to pointer.
(target_buf_size): New variable.
(remote_set_transparent_ranges): Update call to getpkt.
(trace_start_command, trace_stop_command, trace_status_command):
Update calls to remote_get_noisy_reply.
(finish_tfind_command): Take arguments by reference.
(trace_find_command, trace_find_pc_command)
(trace_find_tracepoint_command, trace_find_line_command):
(trace_find_range_command, trace_find_outside_command): Update
calls to finish_tfind_command.
(_initialize_tracepoint): Initialize target_buf_size and target_buf.

18 years ago2006-03-30 Paul Brook <paul@codesourcery.com>
Paul Brook [Thu, 30 Mar 2006 16:21:26 +0000 (16:21 +0000)]
2006-03-30  Paul Brook  <paul@codesourcery.com>

* gdb.mi/mi-until.exp: kfail broken until command.
* gdb.mi/mi2-until.exp: Ditto.

18 years ago2005-03-30 Randolph Chung <tausq@debian.org>
Randolph Chung [Thu, 30 Mar 2006 14:27:45 +0000 (14:27 +0000)]
2005-03-30  Randolph Chung  <tausq@debian.org>

* hppa-linux-tdep.c: Include regset.h.
(GR_REGNUM, TR_REGNUM, greg_map): New.
(hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
(hppa_linux_regset, hppa_linux_fpregset): New.
(hppa_linux_regset_from_core_section): New.
(hppa_linux_init_abi): Set regset_from_core_section.
(_initialize_hppa_linux_tdep): Register osabi handler for
64-bit Linux.
* Makefile.in (hppa-linux-tdep.o): Update dependencies.
* config/pa/linux.mh: Stop using core-regset.o

18 years ago2006-03-30 Randolph Chung <tausq@debian.org>
Randolph Chung [Thu, 30 Mar 2006 14:15:00 +0000 (14:15 +0000)]
2006-03-30  Randolph Chung  <tausq@debian.org>

* hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
(hppa_frame_cache): Use new function to find unwind entry.
(hppa_frame_this_id): Likewise.
(hppa_frame_unwind_sniffer): Likewise.

18 years ago * configure.in: Fix help string for --enable-targets option.
Andreas Schwab [Thu, 30 Mar 2006 13:35:17 +0000 (13:35 +0000)]
* configure.in: Fix help string for --enable-targets option.
* configure: Regenerate.

18 years ago PR ld/2267
Ben Elliston [Thu, 30 Mar 2006 00:22:20 +0000 (00:22 +0000)]
PR ld/2267
* elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
special section number that exceeds the number of ELF sections
(eg. SHN_MIPS_SCOMMON).

18 years agodaily update
Alan Modra [Thu, 30 Mar 2006 00:00:05 +0000 (00:00 +0000)]
daily update

18 years ago*** empty log message ***
gdbadmin [Thu, 30 Mar 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

18 years ago2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
Daniel Jacobowitz [Wed, 29 Mar 2006 22:58:55 +0000 (22:58 +0000)]
2006-03-29  Daniel Jacobowitz  <dan@codesourcery.com>

* NEWS: Mention the removal of NLM.

2006-03-29  Steve Ellcey  <sje@cup.hp.com>

* Makefile.in (nlm): Remove target.
* configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
* configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
* configure: Regenerate.
* doc/gdb.texinfo: Remove gdbserve.nlm documentation.
* nlm: Remove directory.

18 years ago * Makefile.in (utils.o): Update.
Daniel Jacobowitz [Wed, 29 Mar 2006 22:53:33 +0000 (22:53 +0000)]
* Makefile.in (utils.o): Update.
* top.c (in_user_command): New.
(command_line_input): Use input_from_terminal_p.
(input_from_terminal_p): Don't check caution.  Handle
stdin == NULL for Insight.
* top.h (in_user_command, caution): New declarations.
* utils.c: Include "top.h".
(query, defaulted_query): Check caution here.  Move the call
to input_from_terminal_p higher.
* cli/cli-script.c (do_restore_user_call_depth): Only decrement
the depth.  Update in_user_command if necessary.
(execute_user_command): Don't clobber old_chain.  Set
in_user_command.  Let do_restore_user_call_depth handle
user_call_depth.
(read_command_lines): Check whether to prompt before calling
Insight hooks.
* tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
input_from_terminal_p check.

18 years ago * s390-nat.c (s390_insert_watchpoint): Add missing argument.
Ulrich Weigand [Wed, 29 Mar 2006 18:27:00 +0000 (18:27 +0000)]
* s390-nat.c (s390_insert_watchpoint): Add missing argument.
(s390_remove_watchpoint): Likewise.

18 years agoAdd missing file that got left out of a previous commit.
Bernd Schmidt [Wed, 29 Mar 2006 14:17:57 +0000 (14:17 +0000)]
Add missing file that got left out of a previous commit.

18 years ago * configure: Regenerate.
Hans-Peter Nilsson [Wed, 29 Mar 2006 03:42:03 +0000 (03:42 +0000)]
* configure: Regenerate.

18 years ago * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
Hans-Peter Nilsson [Wed, 29 Mar 2006 03:40:25 +0000 (03:40 +0000)]
* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
option-contents test.

18 years ago * resbin.c: Avoid duplicating constants in calls to reswr_alloc.
Ben Elliston [Wed, 29 Mar 2006 00:24:28 +0000 (00:24 +0000)]
* resbin.c: Avoid duplicating constants in calls to reswr_alloc.

18 years ago*** empty log message ***
gdbadmin [Wed, 29 Mar 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Wed, 29 Mar 2006 00:00:06 +0000 (00:00 +0000)]
daily update

18 years agosrc/gdb/ChangeLog:
Jim Blandy [Tue, 28 Mar 2006 19:19:16 +0000 (19:19 +0000)]
src/gdb/ChangeLog:
2006-03-28  Jim Blandy  <jimb@codesourcery.com>

* prologue-value.c, prologue-value.h: New files.
* Makefile.in (prologue_value_h): New variable.
(HFILES_NO_SRCDIR): List prologue-value.h.
(SFILES): List prologue-value.c.
(COMMON_OBS): List prologue-value.o.
(prologue-value.o): New rule.

src/gdb/doc/ChangeLog:
2006-03-28  Jim Blandy  <jimb@codesourcery.com>

* gdbint.texinfo (Prologue Analysis): New section.

18 years ago2006-03-27 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 28 Mar 2006 18:58:30 +0000 (18:58 +0000)]
2006-03-27  Michael Snyder  <msnyder@redhat.com>

* xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
xstormy16_pointer_to_address, xstormy16_address_to_pointer,
xstormy16_frame_prev_register): Change void* to gdb_byte*.
(xstormy16_push_dummy_call): Add block-local char* val,
to avoid type conflict with outer scope variable.

18 years ago * gas/config/tc-m68k.c (find_cf_chip): Merge into ...
Nathan Sidwell [Tue, 28 Mar 2006 07:21:49 +0000 (07:21 +0000)]
* gas/config/tc-m68k.c (find_cf_chip): Merge into ...
(m68k_ip): ... here.  Use for all chips.  Protect against buffer
overrun and avoid excessive copying.

18 years ago gas:
Nathan Sidwell [Tue, 28 Mar 2006 07:19:16 +0000 (07:19 +0000)]
gas:
* config/tc-m68k.c (m68000_control_regs, m68010_control_regs,
m68020_control_regs, m68040_control_regs, m68060_control_regs,
mcf_control_regs, mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs, mcf5249_control_regs, mcf528x_control_regs,
mcfv4e_control_regs, m68010_control_regs): Rename and reorder to ...
(m68000_ctrl, m68010_ctrl, m68020_ctrl, m68040_ctrl, m68060_ctrl,
mcf_ctrl, mcf5208_ctrl, mcf5213_ctrl, mcf5235_ctrl, mcf5249_ctrl,
mcf5216_ctrl, mcf5250_ctrl, mcf5271_ctrl, mcf5272_ctrl,
mcf5282_ctrl, mcfv4e_ctrl): ... these.
(mcf5275_ctrl, mcf5329_ctrl, mcf5373_ctrl): New.
(struct m68k_cpu): Change chip field to control_regs.
(current_chip): Remove.
(control_regs): New.
(m68k_archs, m68k_extensions): Adjust.
(m68k_cpus): Reorder to be in cpu number order.  Adjust.
(CPU_ALLOW_MC, CPU_ALLOW_NEGATION): Remove.
(find_cf_chip): Reimplement for new organization of cpu table.
(select_control_regs): Remove.
(mri_chip): Adjust.
(struct save_opts): Save control regs, not chip.
(s_save, s_restore): Adjust.
(m68k_lookup_cpu): Give deprecated warning when necessary.
(m68k_init_arch): Adjust.
(md_show_usage): Adjust for new cpu table organization.

include/opcodes:
* m68k.h (cpu_m68k, cpu_cf, cpu_m68000, cpu_m68008, cpu_m68010,
cpu_m68020, cpu_m68ec030, cpu_m68040, cpu_m68060, cpu_m68851,
cpu_m68881, cpu_m68882, cpu_cpu32, cpu_cf5200, cpu_cf5206e,
cpu_cf5208, cpu_cf521x, cpu_cf5213, cpu_cf5249, cpu_cf528x,
cpu_cf5307, cpu_cf5329, cpu_cf5407, cpu_cf547x, cpu_cf548x): Remove.

18 years agodaily update
Alan Modra [Tue, 28 Mar 2006 00:00:06 +0000 (00:00 +0000)]
daily update

18 years ago*** empty log message ***
gdbadmin [Tue, 28 Mar 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

18 years ago2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
Andrew Stubbs [Mon, 27 Mar 2006 13:15:01 +0000 (13:15 +0000)]
2006-03-27  Andrew Stubbs  <andrew.stubbs@st.com>

* sh-tdep.c (sh_gdbarch_init): Add missing architectures.

18 years ago * elfxx-mips.c (mips_got_entry): Add more commentary.
Richard Sandiford [Mon, 27 Mar 2006 11:30:54 +0000 (11:30 +0000)]
* elfxx-mips.c (mips_got_entry): Add more commentary.
(mips_elf_local_got_index): Use the hash table entry to record
the GOT index of forced-local symbols.
(mips_elf_initialize_tls_index): Rearrange code.  Store the index
in either the hash table entry or the mips_got_entry, not both.
Add more commentary.
(mips_elf_multi_got): Make sure the g->next is nonnull when calling
mips_elf_initialize_tls_index.

* ld-mips-elf/tls-hidden3a.s, ld-mips-elf/tls-hidden3b.s,
* ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got,
* ld-mips-elf/tls-hidden3.ld, ld-mips-elf/tls-hidden3.r,
* ld-mips-elf/tls-hidden4a.s, ld-mips-elf/tls-hidden4b.s,
* ld-mips-elf/tls-hidden4.got, ld-mips-elf/tls-hidden4.r: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

18 years agoNew files.
Nick Roberts [Mon, 27 Mar 2006 00:27:09 +0000 (00:27 +0000)]
New files.

18 years ago*** empty log message ***
Nick Roberts [Mon, 27 Mar 2006 00:22:31 +0000 (00:22 +0000)]
*** empty log message ***

18 years ago(c_name_of_child, c_value_of_child): Allow non-zero
Nick Roberts [Mon, 27 Mar 2006 00:15:22 +0000 (00:15 +0000)]
(c_name_of_child, c_value_of_child): Allow non-zero
offsets for languages like Fortran.

18 years ago*** empty log message ***
Nick Roberts [Mon, 27 Mar 2006 00:14:34 +0000 (00:14 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
gdbadmin [Mon, 27 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Mon, 27 Mar 2006 00:00:04 +0000 (00:00 +0000)]
daily update

18 years ago2006-03-26 Randolph Chung <tausq@debian.org>
Randolph Chung [Sun, 26 Mar 2006 08:18:17 +0000 (08:18 +0000)]
2006-03-26  Randolph Chung  <tausq@debian.org>

* config/pa/hppa64.mt: Use HPUX version of the tm file.

18 years ago * config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.
Bernd Schmidt [Sun, 26 Mar 2006 01:12:07 +0000 (01:12 +0000)]
* config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.
* config/bfin-lex.l: Recognize GOT17M4 and FUNCDESC_GOT17M4.
* config/bfin-parse.y: Include "libbfd.h", "elf/common.h" and
"elf/bfin.h".
(GOT17M4, FUNCDESC_GOT17M4): New tokens of type <value>.
(any_gotrel): New rule.
(got): Use it, and create Expr_Node_GOT_Reloc nodes.
* config/tc-bfin.c: Include "libbfd.h", "elf/common.h" and
"elf/bfin.h".
(DEFAULT_FLAGS, bfin_flags, bfin_pic_flag): New.
(bfin_pic_ptr): New function.
(md_pseudo_table): Add it for ".picptr".
(OPTION_FDPIC): New macro.
(md_longopts): Add -mfdpic.
(md_parse_option): Handle it.
(md_begin): Set BFD flags.
(md_apply_fix3, bfin_fix_adjustable): Handle new relocs.
(bfin_gen_ldstidxi): Adjust to match the trees that the parser gives
us for GOT relocs.
* Makefile.am (bfin-parse.o): Update dependencies.
(DEPTC_bfin_elf): Likewise.
* Makefile.in: Regenerate.

18 years ago * emulparams/elf32bfinfd.sh: New file.
Bernd Schmidt [Sun, 26 Mar 2006 00:46:13 +0000 (00:46 +0000)]
* emulparams/elf32bfinfd.sh: New file.
* emultempl/bfin.em: Delete.
* emulparams/bfin.sh: Lose reference to bfin.em.
* Makefile.am (eelf32bfin.c): Likewise.
(eelf32bfinfd.c): New.
* Makefile.in: Regenerate.
* configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
targ_extra_emuls.

18 years ago * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
Bernd Schmidt [Sun, 26 Mar 2006 00:38:42 +0000 (00:38 +0000)]
* config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
* configure.in: Likewise.
* configure: Regenerate.
* elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h".
(BFIN_RELOC_MAX): Now 0x21.
(bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs.
(bfd_elf32_bfinfdpic_vec): Declare.
(IS_FDPIC): New macro.
(struct bfinfdpic_elf_link_hash_table): New struct.
(bfinfdpic_hash_table, bfinfdpic_got_section,
bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section,
bfinfdpic_plt_setion, bfinfdpic_pltrel_section,
bfinfdpic_relocs_info, bfinfdpic_got_initial_offset,
bfinfdpic_plt_initial_offset): Accessor macros for it.
(BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros.
(struct bfinfdpic_relocs_info): New struct.
(LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES,
BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC,
DEFAULT_STACK_SIZE): New macros.
(bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash,
bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find,
bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local,
bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc,
_bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment,
_bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section,
bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook,
_bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section,
elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry,
_bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry,
_bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries,
_bfinfdpic_resolve_final_relocs_info,
elf32_bfinfdpic_size_dynamic_sections,
elf32_bfinfdpic_always_size_sections,
elf32_bfinfdpic_modify_segment_map,
_bfinfdpic_count_got_plt_entries,
elf32_bfinfdpic_finish_dynamic_sections,
elf32_bfinfdpic_adjust_dynamic_symbol,
elf32_bfinfdpic_finish_dynamic_symbol,
elf32_bfinfdpic_elf_use_relative_eh_frame,
elf32_bfinfdpic_elf_encode_eh_address,
elf32_bfin_object_p, bfin_elf_copy_private_bfd_data,
elf32_bfinfdpic_copy_private_bfd_data,
(struct _bfinfdpic_dynamic_got_info,
struct _bfinfdpic_dynamic_got_plt_info): New structs.
(elf32_bfin_print_private_bfd_data): Print PIC flags.
(elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC.
(TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed,
elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create,
elf_backend_always_size_sectinos, elf_backend_modify_segment_map,
bfd_elf32_bfd_copy_private_bfd_data,
elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections, elf_backend_relocate_section,
elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs,
elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p,
elf_backend_may_use_rela_p, elf_backend_default_use_rela_p,
elf_backend_omit_section_dynsym): Redefine these macros and include
"elf32-target.h" again to create the elf32-bfinfdpic target.
* reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI,
BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC,
BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI,
BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE,
BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI,
BFD_RELOC_BFIN_GOTOFFLO): New.
* targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target.
(_bfd_target_vector): Add it.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

18 years ago*** empty log message ***
gdbadmin [Sun, 26 Mar 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Sun, 26 Mar 2006 00:00:09 +0000 (00:00 +0000)]
daily update

18 years ago * elf/bfin.h (R_BFIN_GOT17M4, R_BFIN_GOTHI, R_BFIN_GOTLO,
Bernd Schmidt [Sat, 25 Mar 2006 18:21:47 +0000 (18:21 +0000)]
* elf/bfin.h (R_BFIN_GOT17M4, R_BFIN_GOTHI, R_BFIN_GOTLO,
R_BFIN_FUNCDESC, R_BFIN_FUNCDESC_GOT17M4,  R_BFIN_FUNCDESC_GOTHI,
R_BFIN_FUNCDESC_GOTLO, R_BFIN_FUNCDESC_VALUE,
R_BFIN_FUNCDESC_GOTOFF17M4, R_BFIN_FUNCDESC_GOTOFFHI,
R_BFIN_FUNCDESC_GOTOFFLO, R_BFIN_GOTOFF17M4, R_BFIN_GOTOFFHI,
R_BFIN_GOTOFFLO): New relocs.
(EF_BFIN_PIC, EF_BFIN_FDPIC, EF_BFIN_PIC_FLAGS): New macros.

18 years ago * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
Bernd Schmidt [Sat, 25 Mar 2006 18:17:42 +0000 (18:17 +0000)]
* elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty,
reloc_stack_push, reloc_stack_pop, reloc_stack_operate,
bfin_areloc_howto_table): Delete.  All
uses deleted as well.
(bfin_reloc_map): Delete all stack relocs.
(bfin_info_to_howto, bfin_bfd_reloc_type_lookup,
bfin_reloc_type_lookup): Don't support them.
(bfin_relocate_section): Don't try to handle them.

18 years ago(gdbmi-send): Improve regexp to repeat commands.
Nick Roberts [Sat, 25 Mar 2006 10:46:38 +0000 (10:46 +0000)]
(gdbmi-send): Improve regexp to repeat commands.
Try to deal with continuation line.
(gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
variable names.
(gdb-break-list-regexp, gdb-stack-list-frames-regexp):
Future proof against new fields being added to MI output.
(gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
(gdbmi-frame-handler): Update to new variable name
gdb-get-buffer-create.
(gdbmi-frame-handler): Use hollow-right-triangle for all selected
frames which except the innermost (where execution has stopped).

18 years ago*** empty log message ***
Nick Roberts [Sat, 25 Mar 2006 10:46:02 +0000 (10:46 +0000)]
*** empty log message ***

18 years agobfd/
Richard Sandiford [Sat, 25 Mar 2006 10:24:27 +0000 (10:24 +0000)]
bfd/
* cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
incompatible.  Likewise MAC and EMAC code.
* elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
bfd_get_compatible to set the new bfd architecture.  Rely on it
to detect incompatibilities.

gas/
* config/tc-m68k.c (m68k_cpus): Change cpu_cf5208 entries to use
mcfemac instead of mcfmac.

ld/testsuite/
* ld-m68k/merge-error-1a.s, ld-m68k/merge-error-1b.s,
* ld-m68k/merge-error-1a.d, ld-m68k/merge-error-1b.d,
* ld-m68k/merge-error-1c.d, ld-m68k/merge-error-1d.d,
* ld-m68k/merge-error-1e.d, ld-m68k/merge-ok-1a.d,
* ld-m68k/merge-ok-1b.d: New tests.
* ld-m68k/m68k.exp: Run them.

18 years ago*** empty log message ***
gdbadmin [Sat, 25 Mar 2006 00:00:38 +0000 (00:00 +0000)]
*** empty log message ***

18 years ago2006-03-24 Randolph Chung <tausq@debian.org>
Randolph Chung [Fri, 24 Mar 2006 23:49:56 +0000 (23:49 +0000)]
2006-03-24  Randolph Chung  <tausq@debian.org>

* solib-som.c (link_map_start): Don't error out if there is
not yet a link map.

18 years ago * linux-nat.c (linux_ops_saved): New.
Daniel Jacobowitz [Fri, 24 Mar 2006 23:08:16 +0000 (23:08 +0000)]
* linux-nat.c (linux_ops_saved): New.
(super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
(child_mourn_inferior, child_wait, linux_nat_create_inferior)
(linux_nat_fetch_registers, linux_nat_store_registers)
(linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
(init_lwp_list): Don't set threaded.
(add_lwp): Don't modify threaded.
(delete_lwp): Don't mention non-threaded mode.
(linux_nat_switch_fork): New.
(linux_nat_attach): Update inferior_ptid.
(linux_nat_wait): Handle num_lwps == 0 at entry.  Don't check
threaded flag.
(linux_nat_kill): Handle pending forks and saved forks.
(linux_nat_mourn_inferior): Handle saved forks.
(linux_nat_pid_to_str): Don't use the LWP form when there is
only one thread.
(linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
(linux_nat_add_target): New.
(_initialize_linux_nat): Don't initialize the linux native target
here.
* linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
prototypes.
* linux-fork.c: Include "linux-nat.h".
(add_fork): Update initial PID.
(fork_load_infrun_state): Call linux_nat_switch_fork.
* Makefile.in (linux-fork.o): Update.

* alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
linux_nat_add_target instead of add_target.
* amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
* arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
* hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
* ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
* i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
* m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
* m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
* mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
* ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
* s390-nat.c (_initialize_s390_nat): Likewise.
* sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
* sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.

18 years agomerge from gcc
DJ Delorie [Fri, 24 Mar 2006 23:02:57 +0000 (23:02 +0000)]
merge from gcc

18 years agodaily update
Alan Modra [Fri, 24 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update

18 years ago * linux-fork.c: Include "gdb_assert.h".
Daniel Jacobowitz [Fri, 24 Mar 2006 22:44:05 +0000 (22:44 +0000)]
* linux-fork.c: Include "gdb_assert.h".
(fork_load_infrun_state): Set inferior_ptid and stop_pc here.
Update the register cache and selected frame also.
(linux_fork_mourn_inferior): Use fork_load_infrun_state.  Return
to single fork mode if necessary.
(linux_fork_context): Remove bits handled by fork_load_infrun_state.
* Makefile.in (linux_fork_h): New.
(linux-fork.o, linux-nat.o): Update.

18 years ago2006-03-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 24 Mar 2006 05:07:53 +0000 (05:07 +0000)]
2006-03-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/rep.s: Pad with .p2align.
* gas/i386/rep.d: Adjust.

18 years ago*** empty log message ***
gdbadmin [Fri, 24 Mar 2006 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Thu, 23 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update

18 years ago * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
Andreas Schwab [Thu, 23 Mar 2006 14:05:29 +0000 (14:05 +0000)]
* config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.

18 years agoPatch by matz@suse.de:
Andreas Jaeger [Thu, 23 Mar 2006 08:23:09 +0000 (08:23 +0000)]
Patch by matz@suse.de:
bfd/ChangeLog:
* reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
BFD_RELOC_X86_64_PLTOFF64.
* bfd-in2.h: Regenerated.
* libbfd.h: Regenerated.
* elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
Add howtos for above relocs.
(x86_64_reloc_map): Add mappings for new relocs.
(elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
R_X86_64_GOTPLT64 need a got entry.  R_X86_64_GOTPLT64 also a PLT
entry.  R_X86_64_GOTPC64 needs a .got section.  R_X86_64_PLTOFF64
needs a PLT entry.
(elf64_x86_64_gc_sweep_hook): Reflect changes from
elf64_x86_64_check_relocs for the new relocs.
(elf64_x86_64_relocate_section): Handle new relocs.

gas/ChangeLog:
* config/tc-i386.c (type_names): Correct placement of 'static'.
(reloc): Map some more relocs to their 64 bit counterpart when
size is 8.
(output_insn): Work around breakage if DEBUG386 is defined.
(output_disp): A BFD_RELOC_64 with GOT_symbol as operand also
needs to be mapped to BFD_RELOC_X86_64_GOTPC64 or
BFD_RELOC_X86_64_GOTPC32.  Also x86-64 handles pcrel addressing
different from i386.
(output_imm): Ditto.
(lex_got): Recognize @PLTOFF and @GOTPLT.  Make @GOT accept also
Imm64.
(md_convert_frag): Jumps can now be larger than 2GB away, error
out in that case.
(tc_gen_reloc): New relocs are passed through.  BFD_RELOC_64
and BFD_RELOC_64_PCREL are mapped to BFD_RELOC_X86_64_GOTPC64.

gas/testsuite/ChangeLog:
* gas/i386/reloc64.s: Accept 64-bit forms.
* gas/i386/reloc64.d: Adjust.
* gas/i386/reloc64.l: Adjust.

include/ChangeLog:
* elf/x86-64.h: Add the new relocations with their official
numbers.

18 years ago*** empty log message ***
gdbadmin [Thu, 23 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Wed, 22 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update

18 years ago * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
Bob Wilson [Wed, 22 Mar 2006 21:46:16 +0000 (21:46 +0000)]
* elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
rel->r_addend is zero.

18 years ago * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
Richard Sandiford [Wed, 22 Mar 2006 17:15:08 +0000 (17:15 +0000)]
* elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
of "loc".

18 years ago Richard Sandiford <richard@codesourcery.com>
Richard Sandiford [Wed, 22 Mar 2006 09:28:15 +0000 (09:28 +0000)]
Richard Sandiford  <richard@codesourcery.com>
Daniel Jacobowitz  <dan@codesourcery.com>
Phil Edwards  <phil@codesourcery.com>
Zack Weinberg  <zack@codesourcery.com>
Mark Mitchell  <mark@codesourcery.com>
Nathan Sidwell  <nathan@codesourcery.com>

bfd/
* bfd-in2.h: Regenerate.
* config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
* configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
(bfd_elf32_littlemips_vxworks_vec): Likewise.
(bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
(bfd_elf32_littlemips_vec): Likewise.
(bfd_elf32_nbigmips_vec): Likewise.
(bfd_elf32_nlittlemips_vec): Likewise.
(bfd_elf32_ntradbigmips_vec): Likewise.
(bfd_elf32_ntradlittlemips_vec): Likewise.
(bfd_elf32_tradbigmips_vec): Likewise.
(bfd_elf32_tradlittlemips_vec): Likewise.
(bfd_elf64_bigmips_vec): Likewise.
(bfd_elf64_littlemips_vec): Likewise.
(bfd_elf64_tradbigmips_vec): Likewise.
(bfd_elf64_tradlittlemips_vec): Likewise.
* elf32-mips.c: Include elf-vxworks.h.
(mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
instead of calling mips_elf32_rtype_to_howto directly.
(mips_vxworks_copy_howto_rela): New reloc howto.
(mips_vxworks_jump_slot_howto_rela): Likewise.
(mips_vxworks_bfd_reloc_type_lookup): New function.
(mips_vxworks_rtype_to_howto): Likewise.
(mips_vxworks_final_write_processing): Likewise.
(TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
(TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
(elf_backend_want_got_plt): Likewise.
(elf_backend_want_plt_sym): Likewise.
(elf_backend_got_symbol_offset): Likewise.
(elf_backend_want_dynbss): Likewise.
(elf_backend_may_use_rel_p): Likewise.
(elf_backend_may_use_rela_p): Likewise.
(elf_backend_default_use_rela_p): Likewise.
(elf_backend_got_header_size: Likewise.
(elf_backend_plt_readonly): Likewise.
(bfd_elf32_bfd_reloc_type_lookup): Likewise.
(elf_backend_mips_rtype_to_howto): Likewise.
(elf_backend_adjust_dynamic_symbol): Likewise.
(elf_backend_finish_dynamic_symbol): Likewise.
(bfd_elf32_bfd_link_hash_table_create): Likewise.
(elf_backend_add_symbol_hook): Likewise.
(elf_backend_link_output_symbol_hook): Likewise.
(elf_backend_emit_relocs): Likewise.
(elf_backend_final_write_processing: Likewise.
(elf_backend_additional_program_headers): Likewise.
(elf_backend_modify_segment_map): Likewise.
(elf_backend_symbol_processing): Likewise.
* elfxx-mips.c: Include elf-vxworks.h.
(mips_elf_link_hash_entry): Add is_relocation_target and
is_branch_target fields.
(mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
(MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
(MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
Return 3 for VxWorks.
(ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
mips_elf_link_hash_table.  Return 0 for VxWorks.
(MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
mips_elf_link_hash_table.  Update the call to ELF_MIPS_GP_OFFSET.
(mips_vxworks_exec_plt0_entry): New variable.
(mips_vxworks_exec_plt_entry): Likewise.
(mips_vxworks_shared_plt0_entry): Likewise.
(mips_vxworks_shared_plt_entry): Likewise.
(mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
(mips_elf_rel_dyn_section): Change the bfd argument to a
mips_elf_link_hash_table.  Use MIPS_ELF_REL_DYN_NAME to get
the name of the section.
(mips_elf_initialize_tls_slots): Update the call to
mips_elf_rel_dyn_section.
(mips_elf_gotplt_index): New function.
(mips_elf_local_got_index): Add an input_section argument.
Update the call to mips_elf_create_local_got_entry.
(mips_elf_got_page): Likewise.
(mips_elf_got16_entry): Likewise.
(mips_elf_create_local_got_entry): Add bfd_link_info and input_section
arguments.  Create dynamic relocations for each entry on VxWorks.
(mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
(mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
and MIPS_RESERVED_GOTNO.
(mips_elf_create_got_section): Update the uses of
MIPS_ELF_GOT_MAX_SIZE.  Create .got.plt on VxWorks.
(is_gott_symbol): New function.
(mips_elf_calculate_relocation): Use a dynobj local variable.
Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
mips_elf_got_page_entry.  Set G to the .got.plt entry when calculating
VxWorks R_MIPS_CALL* relocations.  Calculate and use G for all GOT
relocations on VxWorks.  Add dynamic relocations for references
to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols.  Don't
create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
in VxWorks executables.
(mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
Don't allocate a null entry on VxWorks.
(mips_elf_create_dynamic_relocation): Update the call to
mips_elf_rel_dyn_section.  Use absolute rather than relative
relocations for VxWorks, and make them RELA rather than REL.
(_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
read-only on VxWorks.  Update the call to mips_elf_rel_dyn_section.
Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
VxWorks.  Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
Call elf_vxworks_create_dynamic_sections for VxWorks and
initialize the plt_header_size and plt_entry_size fields.
(_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
used in VxWorks executables.  Don't allocate dynamic relocations
for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
Set is_relocation_target for each symbol referenced by a relocation.
Allocate .rela.dyn entries for relocations against the special
VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols.  Create GOT
entries for all VxWorks R_MIPS_GOT16 relocations.  Don't allocate
a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations.  Update the calls
to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
relocations.  Don't set no_fn_stub on VxWorks.
(_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
mips_elf_allocate_dynamic_relocations.
(_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
(_bfd_mips_elf_always_size_sections): Do not allocate GOT page
entries for VxWorks, and do not create multiple GOTs.
(_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
Handle .got specially for VxWorks.  Update the uses of
MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
Check for sgotplt and splt.  Allocate the .rel(a).dyn contents last,
once its final size is known.  Set DF_TEXTREL for VxWorks.  Add
DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
tags on VxWorks.  Do not add the MIPS-specific tags for VxWorks.
(_bfd_mips_vxworks_finish_dynamic_symbol): New function.
(mips_vxworks_finish_exec_plt): Likewise.
(mips_vxworks_finish_shared_plt): Likewise.
(_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
to mips_elf_rel_dyn_section.  Use a VxWorks-specific value of
DT_PLTGOT.  Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
DT_PLTRELSZ and DT_JMPREL.  Update the uses of MIPS_RESERVED_GOTNO
and mips_elf_rel_dyn_section.  Use a different GOT header for
VxWorks.  Don't sort .rela.dyn on VxWorks.  Finish the PLT on VxWorks.
(_bfd_mips_elf_link_hash_table_create): Initialize the new
mips_elf_link_hash_table fields.
(_bfd_mips_vxworks_link_hash_table_create): New function.
(_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
on VxWorks.  Update the call to ELF_MIPS_GP_OFFSET.
* elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
(_bfd_mips_vxworks_link_hash_table_create): Likewise.
* libbfd.h: Regenerate.
* Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
(elf32-mips.lo): Likewise.
* Makefile.in: Regenerate.
* reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
* targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
(bfd_elf32_littlemips_vxworks_vec): Likewise.
(_bfd_target_vector): Add entries for them.

gas/
* config/tc-mips.c (mips_target_format): Handle vxworks targets.
(md_begin): Complain about -G being used for PIC.  Don't change
the text, data and bss alignments on VxWorks.
(reloc_needs_lo_p): Don't return true for R_MIPS_GOT16 when
generating VxWorks PIC.
(load_address): Extend SVR4_PIC handling to VXWORKS_PIC.
(macro): Likewise, but do not treat la $25 specially for
VxWorks PIC, and do not handle jal.
(OPTION_MVXWORKS_PIC): New macro.
(md_longopts): Add -mvxworks-pic.
(md_parse_option): Don't complain about using PIC and -G together here.
Handle OPTION_MVXWORKS_PIC.
(md_estimate_size_before_relax): Always use the first relaxation
sequence on VxWorks.
* config/tc-mips.h (VXWORKS_PIC): New.

gas/testsuite/
* gas/mips/vxworks1.s, gas/mips/vxworks1.d,
* gas/mips/vxworks1-xgot.d: New tests.
* gas/mips/mips.exp: Run them.  Do not run other tests on VxWorks.

include/elf/
* mips.h (R_MIPS_COPY, R_MIPS_JUMP_SLOT): New relocs.

ld/
* configure.tgt (mips*el-*-vxworks*, mips*-*-vxworks*): Use
separate VxWorks emulations.
* emulparams/elf32ebmipvxworks.sh: New file.
* emulparams/elf32elmipvxworks.sh: New file.
* Makefile.am (ALL_EMULATIONS): Add eelf32ebmipvxworks.o and
eelf32elmipvxworks.o.
(eelf32ebmipvxworks.c, eelf32elmipvxworks.c): New rules.
* Makefile.in: Regenerate.

ld/testsuite/
* ld-mips/vxworks1.dd, ld-mips/vxworks1.ld, ld-mips/vxworks1-lib.dd,
* ld-mips/vxworks1-lib.nd, ld-mips/vxworks1-lib.rd,
* ld-mips/vxworks1-lib.s, ld-mips/vxworks1.rd, ld-mips/vxworks1.s,
* ld-mips/vxworks1-static.d, ld-mips/vxworks2.s, ld-mips/vxworks2.sd,
* ld-mips/vxworks2-static.sd: New tests.
* ld-mips/mips-elf.exp: Run them.

18 years ago * corefile.c (core_init): Report that the executable is not in the
Ben Elliston [Wed, 22 Mar 2006 03:51:02 +0000 (03:51 +0000)]
* corefile.c (core_init): Report that the executable is not in the
expected executable format rather than "a.out" format.

18 years ago*** empty log message ***
gdbadmin [Wed, 22 Mar 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Tue, 21 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update

18 years ago2006-03-21 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 21 Mar 2006 22:52:06 +0000 (22:52 +0000)]
2006-03-21  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (md_apply_fix): Fix typo in offset mask.

18 years ago * config/tc-xtensa.c (enforce_three_byte_loop_align): New flag.
Bob Wilson [Tue, 21 Mar 2006 20:34:38 +0000 (20:34 +0000)]
* config/tc-xtensa.c (enforce_three_byte_loop_align): New flag.
(xtensa_setup_hw_workarounds): Set this new flag for older hardware.
(get_loop_align_size): New.
(xtensa_end): Skip xtensa_mark_narrow_branches when not aligning.
(xtensa_mark_zcl_first_insns): Prevent widening of first loop frag.
(get_text_align_power): Rewrite to handle inputs in the range 2-8.
(get_noop_aligned_address): Use get_loop_align_size.
(get_aligned_diff): Likewise.

18 years ago * histfile.c (read_history_range): Remove '\r' character from
Daniel Jacobowitz [Tue, 21 Mar 2006 14:58:24 +0000 (14:58 +0000)]
* histfile.c (read_history_range): Remove '\r' character from
history lines.

18 years ago2006-03-21 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 21 Mar 2006 14:35:27 +0000 (14:35 +0000)]
2006-03-21  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (insns): Correct opcodes for ldrbt and strbt.
gas/testsuite/
* gas/arm/thumb32.d: Correct expected output.

18 years ago*** empty log message ***
gdbadmin [Tue, 21 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Mon, 20 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update

18 years ago * BRANCHES: Remove binutils-csl-arm-2006q1-branch. Document
Nathan Sidwell [Mon, 20 Mar 2006 18:53:48 +0000 (18:53 +0000)]
* BRANCHES: Remove binutils-csl-arm-2006q1-branch.  Document
binutils-csl-2_17-branch instead.

18 years ago2006-03-20 Paul Brook <paul@codesourcery.com>
Paul Brook [Mon, 20 Mar 2006 15:38:02 +0000 (15:38 +0000)]
2006-03-20  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (BAD_BRANCH, BAD_NOT_IT): Define.
(do_t_branch): Encode branches inside IT blocks as unconditional.
(do_t_cps): New function.
(do_t_blx, do_t_bkpt, do_t_branch23, do_t_bx, do_t_bxj, do_t_cpsi,
do_t_czb, do_t_it, do_t_setend, do_t_tb): Add IT constaints.
(opcode_lookup): Allow conditional suffixes on all instructions in
Thumb mode.
(md_assemble): Advance condexec state before checking for errors.
(insns): Use do_t_cps.
gas/testsuite/
* gas/arm/thumb2_bcond.d: New test.
* gas/arm/thumb2_bcond.s: New test.
* gas/arm/thumb2_it_bad.d: New test.
* gas/arm/thumb2_it_bad.l: New test.
* gas/arm/thumb2_it_bad.s: New test.

18 years ago2006-03-20 Paul Brook <paul@codesourcery.com>
Paul Brook [Mon, 20 Mar 2006 15:14:49 +0000 (15:14 +0000)]
2006-03-20  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (output_relax_insn): Call dwarf2_emit_insn before
outputting the insn.

18 years ago * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
Dave Anglin [Mon, 20 Mar 2006 01:12:30 +0000 (01:12 +0000)]
* elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
section from SHF_PARISC_WEAKORDER to SHF_HP_TLS.
(elf_backend_special_sections): Remove #undef.

18 years ago * hppa.h (SHF_HP_TLS, SHF_HP_NEAR_SHARED, SHF_HP_FAR_SHARED,
Dave Anglin [Mon, 20 Mar 2006 01:07:29 +0000 (01:07 +0000)]
* hppa.h (SHF_HP_TLS, SHF_HP_NEAR_SHARED, SHF_HP_FAR_SHARED,
SHF_HP_COMDAT, SHF_HP_CONST, SHN_TLS_COMMON, SHN_NS_COMMON,
SHN_NS_UNDEF, SHN_FS_UNDEF, SHN_HP_EXTERN, SHN_HP_EXTHINT,
SHN_HP_UNDEF_BIND_IMM, SHT_HP_OVLBITS, SHT_HP_DLKM, SHT_HP_COMDAT,
SHT_HP_OBJDICT, SHT_HP_ANNOT, STB_HP_ALIAS): Define.

18 years ago*** empty log message ***
gdbadmin [Mon, 20 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Sun, 19 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update

18 years ago2006-03-20 Paul Brook <paul@codesourcery.com>
Paul Brook [Sun, 19 Mar 2006 22:27:19 +0000 (22:27 +0000)]
2006-03-20  Paul Brook  <paul@codesourcery.com>

* BRANCHES: Mention binutils-csl-arm-2006q1-branch.

18 years ago*** empty log message ***
gdbadmin [Sun, 19 Mar 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Sat, 18 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update

18 years ago * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
Dave Anglin [Sat, 18 Mar 2006 18:53:46 +0000 (18:53 +0000)]
* elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
for undefined weak symbols.

18 years ago2006-03-18 Jim Blandy <jimb@codesourcery.com>
Jim Blandy [Sat, 18 Mar 2006 18:40:04 +0000 (18:40 +0000)]
2006-03-18  Jim Blandy  <jimb@codesourcery.com>

* symtab.h (enum address_class): Doc fix.

18 years ago * config/tc-vax.c: Update copyright year.
Jan-Benedict Glaw [Sat, 18 Mar 2006 11:23:38 +0000 (11:23 +0000)]
* config/tc-vax.c: Update copyright year.
* config/tc-vax.h: Likewise.

18 years ago * config/tc-vax.c (md_chars_to_number): Used only locally, so
Jan-Benedict Glaw [Sat, 18 Mar 2006 11:06:47 +0000 (11:06 +0000)]
* config/tc-vax.c (md_chars_to_number): Used only locally, so
make it static.
* config/tc-vax.h (md_chars_to_number): Remove obsolete declaration.

18 years ago*** empty log message ***
gdbadmin [Sat, 18 Mar 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

18 years agodaily update
Alan Modra [Fri, 17 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update

18 years ago2006-03-17 Daniel Jacobowitz <dan@codesourcery.com>
H.J. Lu [Fri, 17 Mar 2006 18:37:21 +0000 (18:37 +0000)]
2006-03-17  Daniel Jacobowitz  <dan@codesourcery.com>

PR ld/2462
* elflink.c (bfd_elf_final_link): Remove
bed->elf_backend_emit_relocs from emit_relocs.

18 years ago2006-03-17 Paul Brook <paul@codesourcery.com>
Paul Brook [Fri, 17 Mar 2006 14:03:36 +0000 (14:03 +0000)]
2006-03-17  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (insns): Add ldm and stm.
gas/testsuite/
* gas/arm/thumb32.d: Add ldm and stm tests.
* gas/arm/thumb32.s: Ditto.