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.
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.
gdbadmin [Wed, 22 Mar 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 21 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update
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.
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.
Daniel Jacobowitz [Tue, 21 Mar 2006 14:58:24 +0000 (14:58 +0000)]
* histfile.c (read_history_range): Remove '\r' character from
history lines.
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.
gdbadmin [Tue, 21 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 20 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
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.
gdbadmin [Mon, 20 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 19 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update
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.
gdbadmin [Sun, 19 Mar 2006 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 18 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
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.
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.
gdbadmin [Sat, 18 Mar 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 17 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update
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.
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.
Alexandre Oliva [Fri, 17 Mar 2006 06:44:37 +0000 (06:44 +0000)]
bfd/ChangeLog:
* elf32-ppc.c (ppc_elf_relocate_section): Copy addend from
first relocation to the second when relaxing TLS GD to LE;
zero it out when relaxing to IE.
ld/testsuite/ChangeLog:
* ld-powerpc/tls32.s: Verify that +32768 @plt addend is
discarded.
Alan Modra [Fri, 17 Mar 2006 03:19:56 +0000 (03:19 +0000)]
PR 2434
* elflink.c (elf_link_add_object_symbols): Save and restore
warning sym's linked sym.
Ben Elliston [Fri, 17 Mar 2006 00:45:13 +0000 (00:45 +0000)]
PR gas/2446
* doc/as.texinfo (Ident): Document this directive more thoroughly.
Michael Snyder [Fri, 17 Mar 2006 00:38:19 +0000 (00:38 +0000)]
2006-03-16 Michael Snyder <msnyder@redhat.com>
* tracepoint.c (tracepoint_save_command): Fix typo in error msg.
Michael Snyder [Fri, 17 Mar 2006 00:30:34 +0000 (00:30 +0000)]
2006-03-16 Michael Snyder <msnyder@redhat.com>
* target.c (push_target): Fix typo in comment.
Michael Snyder [Fri, 17 Mar 2006 00:25:45 +0000 (00:25 +0000)]
2006-03-16 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_watch_data_address): Fix typo in comment.
Michael Snyder [Fri, 17 Mar 2006 00:14:24 +0000 (00:14 +0000)]
2006-03-16 Michael Snyder <msnyder@redhat.com>
* i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
gdbadmin [Fri, 17 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 16 Mar 2006 23:00:08 +0000 (23:00 +0000)]
daily update
Bernd Schmidt [Thu, 16 Mar 2006 19:09:48 +0000 (19:09 +0000)]
* bfin-dis.c (decode_dsp32shiftimm_0): Simplify and correct the
logic to identify halfword shifts.
Bernd Schmidt [Thu, 16 Mar 2006 19:09:25 +0000 (19:09 +0000)]
* gas/bfin/shift2.s: Add new tests.
* gas/bfin/shift.d: Match changed disassembler behaviour.
* gas/bfin/parallel2.d: Likewise.
* gas/bfin/shift2.d: Likewise; also match new tests.
Paul Brook [Thu, 16 Mar 2006 15:08:48 +0000 (15:08 +0000)]
2006-03-16 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (insns): Add "svc".
gas/testsuite/
* gas/arm/svc.d: New test.
* gas/arm/svc.s: New test.
* gas/arm/inst.d: Accept svc mnemonic.
* gas/arm/thumb.d: Ditto.
* gas/arm/wince_inst.d: Ditto.
opcodes/
* arm-dis.c (arm_opcodes): Rename swi to svc.
(thumb_opcodes): Ditto.
Alan Modra [Thu, 16 Mar 2006 12:20:16 +0000 (12:20 +0000)]
PR 2434
bfd/
* elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
(elf_link_add_object_symbols): Delete unnecessary locals. Rename
hash_table -> htab. Formatting. Save entire symbol table
before loading as-needed syms, and restore afterwards if lib not
needed. Use bfd_hash_allocate rather than bfd_alloc for sym
name. Free some buffers earlier.
* bfd-in.h (struct bfd_hash_table): Add entsize.
(bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
* elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
* hash.c (bfd_hash_table_init_n): Add entsize param, save to
hash table.
(bfd_hash_table_init): Add param, adjust calls.
* aoutx.h: Adjust all hash_table_init functions and calls.
* bfd.c: Likewise.
* coff-arm.c: Likewise.
* coff-h8300.c: Likewise.
* coff-ppc.c: Likewise.
* cofflink.c: Likewise.
* ecoff.c: Likewise.
* ecofflink.c: Likewise.
* elf-m10300.c: Likewise.
* elf-strtab.c: Likewise.
* elf.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-vax.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* i386linux.c: Likewise.
* libaout.h: Likewise.
* libbfd-in.h: Likewise.
* libcoff-in.h: Likewise.
* linker.c: Likewise.
* m68klinux.c: Likewise.
* merge.c: Likewise.
* opncls.c: Likewise.
* pdp11.c: Likewise.
* sparclinux.c: Likewise.
* stabs.c: Likewise.
* sunos.c: Likewise.
* vms.c: Likewise.
* xcofflink.c: Likewise.
* section.c (struct section_hash_entry): Move to..
* libbfd-in.h: ..here.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* libcoff.h: Regenerate.
binutils/
* ieee.c (write_ieee_debugging_info): Adjust bfd_hash_table_init calls.
* wrstabs.c (write_stabs_in_sections_debugging_info): Likewise.
ld/
* ldcref.c (add_cref): Adjust bfd_hash_table_init calls.
* ldlang.c (output_statement_table_init, lang_init): Likewise.
* ldmain.c (add_ysym, add_wrap, add_keepsyms_file): Likewise.
(undefined_symbol): Likewise.
gdbadmin [Thu, 16 Mar 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Kevin Buettner [Wed, 15 Mar 2006 23:38:09 +0000 (23:38 +0000)]
Add FR-V Linux core file support.
Alan Modra [Wed, 15 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update
Daniel Jacobowitz [Wed, 15 Mar 2006 22:44:21 +0000 (22:44 +0000)]
Second typo fix.
Daniel Jacobowitz [Wed, 15 Mar 2006 22:43:31 +0000 (22:43 +0000)]
Typo fix.
Daniel Jacobowitz [Wed, 15 Mar 2006 17:13:36 +0000 (17:13 +0000)]
* Makefile.in (mips_linux_tdep_h): New.
(mpis-linux-nat.o, mips-linux-tdep.o): Update.
* mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
<sys/ptrace.h>.
(have_ptrace_regsets, super_fetch_registers, super_store_registers)
(mips64_linux_regsets_fetch_registers)
(mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
(mips64_linux_store_registers): New.
(_initialize_mips_linux_nat): Override to_fetch_registers and
to_store_registers.
* mips-linux-tdep.h: New file.
* mips-linux-tdep.c: Include "mips-linux-tdep.c".
(ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
(elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
(FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
(EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
(MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
(mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
(MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
(MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
(MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
(MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
(MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
(supply_32bit_reg): Use gdb_byte.
(supply_64bit_reg): New.
(mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
(mips_fill_fpregset, fetch_core_registers, supply_gregset)
(fill_gregset, supply_fpregset): Update for renamed types.
(mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
(mips64_fill_gregset): Make global. Handle 32-bit register
sizes.
(mips64_fill_fpregset): Make global. Use gdb_byte. Handle
FP regsets properly.
Daniel Jacobowitz [Wed, 15 Mar 2006 17:12:24 +0000 (17:12 +0000)]
* mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
(mips_fill_gregset): Renamed from fill_gregset.
(mips_supply_fpregset): Renamed from supply_fpregset.
(mips_fill_fpregset): Renamed from fill_fpregset.
(fetch_core_registers): Update calls.
(supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
functions.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:59:54 +0000 (16:59 +0000)]
* mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:55:05 +0000 (16:55 +0000)]
* mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
Correct arithmetic for 64-bit CORE_ADDR.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:37:52 +0000 (16:37 +0000)]
* mips-linux-tdep.c: Include "floatformat.h".
(mips_linux_init_abi): Use 128-bit long double for N32 and N64.
(mips_n32n64_return_value): Support 128-bit long double.
(print_gp_register_row): Don't print spaces before ignored
or floating point registers.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:29:08 +0000 (16:29 +0000)]
* mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
for code addresses.
(non_heuristic_proc_desc): Likewise.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:26:02 +0000 (16:26 +0000)]
* linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
(PTRACE_GET_THREAD_AREA): Define.
(ps_get_thread_area): New function.
* Makefile.in (linux-i386-low.o, linux-mips-low.o)
(linux-x86-64-low.o): Update.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:13:29 +0000 (16:13 +0000)]
* configure.ac: Remove checks for prfpregset_t.
* gdb_proc_service.h: New file.
* linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
new "gdb_proc_service.h".
* proc-service.c: Likewise.
(ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
(ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
* Makefile.in (gdb_proc_service_h): Updated.
* configure, config.in: Regenerated.
Daniel Jacobowitz [Wed, 15 Mar 2006 16:08:24 +0000 (16:08 +0000)]
* mips-linux-nat.c: Include "gdb_proc_service.h".
(PTRACE_GET_THREAD_AREA): Define.
(ps_get_thread_area): New.
* Makefile.in (mips-linux-nat.o): Update.
Alan Modra [Wed, 15 Mar 2006 14:30:19 +0000 (14:30 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
last change to REL32 relocs so that they are counted as
possibly dynamic as per REL24 and REL14.
Alan Modra [Wed, 15 Mar 2006 13:52:58 +0000 (13:52 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
checks from REL32.
gdbadmin [Wed, 15 Mar 2006 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Ben Elliston [Tue, 14 Mar 2006 23:58:07 +0000 (23:58 +0000)]
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
in_list elements, not just the first.
Alan Modra [Tue, 14 Mar 2006 23:00:07 +0000 (23:00 +0000)]
daily update
Paolo Bonzini [Tue, 14 Mar 2006 16:26:44 +0000 (16:26 +0000)]
2006-03-14 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in: Regenerate.
Paolo Bonzini [Tue, 14 Mar 2006 16:10:08 +0000 (16:10 +0000)]
2006-03-14 Paolo Bonzini <bonzini@gnu.org>
Sync with gcc:
2006-03-10 Aldy Hernandez <aldyh@redhat.com>
* configure.in: Handle --disable-<component> generically.
* configure: Regenerate.
2006-02-21 Rafael Avila de Espindola <rafael.espindola@gmail.com>
* Makefile.tpl (BUILD_CONFIGDIRS): Remove.
(TARGET_CONFIGDIRS): Remove.
* configure.in: Remove AC_SUBST(target_configdirs).
* Makefile.in, configure: Regenerated.
Richard Sandiford [Tue, 14 Mar 2006 07:47:49 +0000 (07:47 +0000)]
bfd/
* elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
out from...
(_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
for final links too.
ld/testsuite/
* ld-mips/emit-relocs-1a.s, ld-mips/emit-relocs-1b.s,
* ld-mips/emit-relocs-1.ld, ld-mips/emit-relocs-1.d: New test.
* ld-mips/mips-elf.exp: Run it.
Jim Blandy [Tue, 14 Mar 2006 06:16:13 +0000 (06:16 +0000)]
2006-03-13 Jim Blandy <jimb@codesourcery.com>
* MAINTAINERS: Use my work address.
DJ Delorie [Tue, 14 Mar 2006 04:23:52 +0000 (04:23 +0000)]
* m32c-asm.c: Regenerate.
* m32c-desc.c: Likewise.
* m32c-desc.h: Likewise.
* m32c-dis.c: Likewise.
* m32c-ibld.c: Likewise.
* m32c-opc.c: Likewise.
* m32c-opc.h: Likewise.
DJ Delorie [Tue, 14 Mar 2006 04:20:53 +0000 (04:20 +0000)]
* m32c.cpu (Bit3-S): New.
(btst:s): New.
* m32c.opc (parse_bit3_S): New.
DJ Delorie [Tue, 14 Mar 2006 03:34:28 +0000 (03:34 +0000)]
* mem.c (mem_put_byte): Hook simulated UART to stdout.
(mem_put_hi): Hook in simulated trace port.
(mem_get_byte): Hook in simulated uart control port.
* opc2c: Be more picky about matching special comments.
* r8c.opc (shift_op): Limit shift counts to -16..16.
(BMcnd): Map conditional codes.
* reg.c (condition_true): Mask condition code to 4 bits.
* syscalls.c: Include local syscall.h.
* syscall.h: New, copied from libgloss.
DJ Delorie [Tue, 14 Mar 2006 02:37:35 +0000 (02:37 +0000)]
* MAINTAINERS: Add self as m32c sim maintainer.
DJ Delorie [Tue, 14 Mar 2006 00:30:59 +0000 (00:30 +0000)]
i* m32c-desc.c: Regenerate.
* m32c-opc.c: Likewise.
* m32c-opc.h: Likewise.
DJ Delorie [Tue, 14 Mar 2006 00:29:59 +0000 (00:29 +0000)]
* m32c.cpu (decimal-subtraction16-insn): Add second operand.
(btst): Add optional :G suffix for MACH32.
(or.b:S): New.
(pop.w:G): Add optional :G suffix for MACH16.
(push.b.imm): Fix syntax.
gdbadmin [Tue, 14 Mar 2006 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 13 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update
Ben Elliston [Mon, 13 Mar 2006 22:27:22 +0000 (22:27 +0000)]
* bucomm.c (display_target_list): Make local variable `a' to be of
type enum bfd_architecture. Thus no need to cast enums to int.
(display_info_table): Likewise.
Bob Wilson [Mon, 13 Mar 2006 21:46:53 +0000 (21:46 +0000)]
* config/tc-xtensa.c (xg_translate_sysreg_op): Remove has_underbar
flag and avoid double underscore prefixes.
DJ Delorie [Mon, 13 Mar 2006 20:00:44 +0000 (20:00 +0000)]
merge from gcc
Richard Sandiford [Mon, 13 Mar 2006 19:14:23 +0000 (19:14 +0000)]
bfd/
* elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
gdbadmin [Mon, 13 Mar 2006 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 12 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 12 Mar 2006 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 11 Mar 2006 23:00:05 +0000 (23:00 +0000)]
daily update
H.J. Lu [Sat, 11 Mar 2006 15:01:18 +0000 (15:01 +0000)]
2006-03-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2443
* dwarf2.c (concat_filename): Don't issue an error if file is
0.
DJ Delorie [Sat, 11 Mar 2006 02:23:19 +0000 (02:23 +0000)]
* m32c.cpu (mul.l): New.
(mulu.l): New.
* m32c-desc.c: Regenerate with mul.l, mulu.l.
* m32c-opc.c: Likewise.
* m32c-opc.h: Likewise.
gdbadmin [Sat, 11 Mar 2006 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 10 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update
Michael Snyder [Fri, 10 Mar 2006 20:15:42 +0000 (20:15 +0000)]
2006-03-09 Michael Snyder <msnyder@redhat.com>
* linux-nat.c (kill_inferior): Just call target_mourn_inferior
instead of getting tricky for the multi-fork case.
* linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
for each fork, and then use init_fork_list to delete them.
Paul Brook [Fri, 10 Mar 2006 17:20:30 +0000 (17:20 +0000)]
2006-03-10 Paul Brook <paul@codesourcery.com>
bfd/
* elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
(elf32_arm_print_private_bfd_data): Ditto.
binutils/
* readelf.c (decode_ARM_machine_flags): Handle EABIv5.
gas/
* config/tc-arm.c (md_begin): Handle EABIv5.
(arm_eabis): Add EF_ARM_EABI_VER5.
* doc/c-arm.texi: Document -meabi=5.
include/elf/
* arm.h (EF_ARM_EABI_VER5): Define.
Paul Brook [Fri, 10 Mar 2006 17:16:49 +0000 (17:16 +0000)]
2006-03-10 Paul Brook <paul@codesourcery.com>
include/opcode/
* arm.h (ARM_AEXT_V7_ARM): Include v6ZK extensions.
Alan Modra [Fri, 10 Mar 2006 13:30:10 +0000 (13:30 +0000)]
* dwarf.c (process_extended_line_op): Remove pointer_size param.
Use length instead to determine address size.
(get_pointer_size_and_offset_of_comp_unit): Delete.
(display_debug_lines): Adjust for above.
(display_debug_aranges): Don't stop on finding two zeros.
(display_debug_frames): For warning, print offset not pointer.
Ben Elliston [Fri, 10 Mar 2006 10:57:18 +0000 (10:57 +0000)]
* app.c (do_scrub_chars): Simplify string handling.
Joel Brobecker [Fri, 10 Mar 2006 02:05:51 +0000 (02:05 +0000)]
* MAINTAINERS (Patch Champions): Remove self.
gdbadmin [Fri, 10 Mar 2006 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Paul Brook [Thu, 9 Mar 2006 23:05:59 +0000 (23:05 +0000)]
2006-03-09 Paul Brook <paul@codesourcery.com>
bfd/
* cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
mapping symbols.
gas/testsuite/
* gas/arm/nomapping.d: New test.
* gas/arm/nomapping.s: New test.
Alan Modra [Thu, 9 Mar 2006 23:00:06 +0000 (23:00 +0000)]
daily update
Danny Smith [Thu, 9 Mar 2006 21:50:53 +0000 (21:50 +0000)]
* dlltool.c: Update copyright year.
* doc/binutils.texi: Likewise.
Jim Blandy [Thu, 9 Mar 2006 21:44:27 +0000 (21:44 +0000)]
2006-03-07 Jim Blandy <jimb@red-bean.com>
* gdb.texinfo (Connecting): Document 'target remote pipe'.
Jim Blandy [Thu, 9 Mar 2006 21:42:31 +0000 (21:42 +0000)]
2006-03-07 Jim Blandy <jimb@red-bean.com>
* gdb.texinfo (Target Commands): Update text describing how to
specify a target. Refer to the detailed section on remote
debugging, not the brief mention.
Danny Smith [Thu, 9 Mar 2006 20:28:49 +0000 (20:28 +0000)]
* dlltool.c (add_stdcall_underscore): New flag.
(xlate): Also add underscore to stdcall symbol if
add_stdcall_underscore set.
(usage): Document --add-stdcall-underscore option.
(OPTION_ADD_STDCALL_UNDERSCORE): New define.
(long_options): Use it for --add-stdcall-underscore option.
(main): Handle it.
* doc/binutils.texi: Document --add-stdcall-underscore option
and differentiate from --add-underscore.
Jim Blandy [Thu, 9 Mar 2006 17:59:12 +0000 (17:59 +0000)]
2006-03-07 Jim Blandy <jimb@red-bean.com>
* gdb.texinfo (Connecting): Organize the different 'target remote'
connection methods into a table. Add a 'target remote' index
entry. (!!!)
Nick Clifton [Thu, 9 Mar 2006 17:28:11 +0000 (17:28 +0000)]
Update Swedish translations
Nick Clifton [Thu, 9 Mar 2006 17:06:58 +0000 (17:06 +0000)]
* elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned char type.