+2010-06-17 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
+ (BFD64_BACKENDS_CFILES): ... here.
+ (BFD32_BACKENDS): Move vms-alpha.lo to ...
+ (BFD64_BACKENDS): ... here.
+ * Makefile.in: Regenerate.
+
+2010-06-15 Joseph Myers <joseph@codesourcery.com>
+
+ * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
+ * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
+ elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
+ elf32_tic6x_merge_private_bfd_data): New.
+ (bfd_elf32_bfd_merge_private_bfd_data,
+ elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
+ elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
+ Define.
+ * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
+
+2010-06-15 Joseph Myers <joseph@codesourcery.com>
+
+ * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
+ (struct elf_backend_data): Update comment on obj_attrs_order.
+ * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
+ _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
+ instead of hardcoded 4.
+ * elf32-arm.c (elf32_arm_obj_attrs_order): Use
+ LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
+ instead of hardcoded 4 and 5.
+ (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
+ instead of hardcoded 4.
+
+2010-06-14 Kevin Buettner <kevinb@redhat.com>
+
+ * elf32-h8300.c (elf_symbol_leading_char): Define.
+
+2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
+
+2010-06-11 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
+ sections to 0.
+
+2010-06-11 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
+
+2010-06-11 Tristan Gingold <gingold@adacore.com>
+
+ * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
+ Adjust cast.
+ (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
+ * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
+ * vms-alpha.c (evax_section_flags): Make it const.
+ (vms_secflag_by_name): Remove unused ABFD argument.
+ Make SECTION_FLAGS and NAME arguments const. Clarify comment.
+ (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
+ (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
+ (_bfd_vms_write_egsd): Remove useless cast.
+
+2010-06-10 Tristan Gingold <gingold@adacore.com>
+
+ * config.bfd: Remove #if/#endif so that som can be compiled on any
+ host.
+ * targets.c (_bfd_target_vector): Remove #if/#endif so that som
+ can be used on any host.
+
+2010-06-10 Tristan Gingold <gingold@adacore.com>
+
+ * som.c: Can now be compiled on any host.
+ Include bfd headers instead of system one.
+ (som_compute_checksum): Parameter is now a pointer to a
+ som_external_header structure. Adjust.
+ (struct section_to_type): Field section is now const.
+ (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
+ definition.
+ (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
+ (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
+ (som_swap_clock_in, som_swap_clock_out): New functions.
+ (som_swap_header_in, som_swap_header_out): Likewise.
+ (som_swap_space_dictionary_in): Likewise.
+ (som_swap_space_dictionary_out): Likewise.
+ (som_swap_subspace_dictionary_in): Likewise.
+ (som_swap_subspace_dictionary_record_out): Likewise.
+ (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
+ (som_swap_string_auxhdr_out): Likewise.
+ (som_swap_compilation_unit_out): Likewise.
+ (som_swap_exec_auxhdr_in): Likewise.
+ (som_swap_exec_auxhdr_out): Likewise.
+ (som_swap_lst_header_in): Likewise.
+ (som_object_setup): Adjust parameter type using bfd types.
+ (setup_sections): Likewise. Ditto for object file types.
+ Use intermediate variables for external representation and use the
+ swap functions to convert.
+ (som_object_p): Ditto. Remove #ifdef/#endif on always defined
+ macros.
+ (som_prep_headers): Likewise.
+ (som_write_symbol_strings): Likewise.
+ (som_begin_writing): Likewise.
+ (som_finish_writing): Likewise.
+ (som_build_and_write_symbol_table): Likewise.
+ (bfd_section_from_som_symbol): Likewise.
+ (som_slurp_symbol_table): Likewise.
+ (som_bfd_print_private_bfd_data): Likewise.
+ (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
+ (bfd_som_attach_compilation_unit): Likewise.
+ (som_bfd_count_ar_symbols): Likewise.
+ (som_bfd_fill_in_ar_symbols): Likewise.
+ (som_slurp_armap): Likewise.
+ (som_bfd_ar_write_symbol_stuff): Likewise.
+ (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
+ sprintf to write header fields.
+ * som.h: Include bfd headers instead of system one.
+ (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
+ (struct somdata): Use bfd structures instead of system ones.
+ (struct som_section_data_struct): Likewise.
+ (struct som_subspace_dictionary_record): Removed (now in
+ include/som/internal.h)
+
+2010-06-10 Tristan Gingold <gingold@adacore.com>
+
+ * targets.c (bfd_target_list): Remove hp/ux compiler work-around
+ as bfd requires an ANSI-C compiler.
+
+2010-06-09 Tristan Gingold <gingold@adacore.com>
+
+ * bfdio.c (bfd_bread): Fix the code to prevent reading past the
+ end of archive members.
+
+2010-06-08 Tristan Gingold <gingold@adacore.com>
+
+ * som.c (som_bfd_free_cached_info): Do not free relocations as
+ they were allocated with bfd_zalloc.
+
+2010-06-08 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
+ for the first block.
+
+2010-06-08 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
+ * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
+ * libbfd.h: Regenerate.
+ * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
+ (bfd_elfNN_mkarchive): Ditto.
+
+2010-06-02 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
+
+2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * configure: Regenerate.
+
+2010-06-01 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (struct vms_private_data_struct): Add
+ transfer_address field. Remove unused dst_info field.
+ (alpha_vms_write_exec): Use transfer_address.
+ (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
+ (alpha_vms_bfd_final_link): Set transfer_address.
+
+2010-05-31 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (credat_lo, credat_hi): New fields.
+ (vms_read_block): Adjust comments.
+ (vms_write_block): New function.
+ (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
+ hard-coded values with constants. Set credat_lo and credat_hi.
+ (_bfd_vms_lib_mkarchive): Add argument kind.
+ Set ver, mhd_size and type according to kind.
+ (_bfd_vms_lib_alpha_mkarchive): New function.
+ (struct lib_index): Renamed from struct vms_index
+ (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
+ (get_idxlen): Type of idx argument adjusted. Add is_elfidx
+ argument and handle it.
+ (vms_write_index): Adjust argument idx. Handle elf indexes.
+ (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
+ (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
+ use it. Handle elf indexes. Set credat.
+ * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
+ (_bfd_vms_lib_alpha_mkarchive): ... this.
+ * libbfd.h: Regenerated.
+ * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
+
+2010-05-28 Sterling Augustine <sterling@tensilica.com>
+
+ * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
+ of code to change the bits in the instructions to match the changes
+ in the relocations. Declare dest_addr and sym_sec to help.
+
+2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Workaround GCC PR middle-end/4210.
+ * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
+ and val[3].
+
+2010-05-27 Tristan Gingold <gingold@adacore.com>
+
+ * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
+ (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
+ (vms_time_to_time_t): Use them instead of local const.
+ (vms_time_t_to_vms_time): New function.
+ (vms_get_time): Likewise.
+ (vms_raw_get_time): Likewise.
+ * vms.h (vms_time_t_to_vms_time): New declaration.
+ (vms_get_time): Likewise.
+ (vms_raw_get_time): Likewise.
+
+2010-05-26 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c: Update comments.
+ (alpha_vms_write_exec): Set lnkflags. Write the GST.
+ (alpha_vms_link_output_symbol): New function.
+ (alpha_vms_bfd_final_link): Generate the VMS symbol table.
+ Set dst_section private field.
+ (alpha_vms_bfd_final_link): Remove code that set dst_section.
+
+2010-05-26 Tristan Gingold <gingold@adacore.com>
+
+ * bfdio.c: Declare and define _bfd_memory_iovec.
+ (bfd_bread): Move code for BFD_IN_MEMORY...
+ (bfd_bwrite): ... Ditto ...
+ (bfd_tell): ... Ditto ...
+ (bfd_flush): ... Ditto ...
+ (bfd_stat): ... Ditto ...
+ (bfd_seek): ... Ditto ...
+ (bfd_get_size): ... Ditto ...
+ (bfd_mmap): ... Ditto ...
+ (memory_bread): ... to these new functions.
+ (memory_bwrite): Ditto.
+ (memory_btell): Ditto.
+ (memory_bseek): Ditto.
+ (memory_bflush): Ditto.
+ (memory_bstat): Ditto.
+ (memory_bmmap): Ditto.
+ (memory_bclose): New function.
+ * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
+ * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
+ * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
+ (bfd_make_writable): Use _bfd_memory_iovec.
+ * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
+ * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
+ _bfd_memory_iovec.
+ (alpha_ecoff_openr_next_archived_file): Use proxy_origin
+ instead of origin.
+ * libbfd.h: Regenerate.
+
+2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+ Andrew Stubbs <ams@codesourcery.com>
+
+ * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
+ bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
+ * configure.in: Handle FDPIC vectors.
+ * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
+ * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
+ (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
+ SYMBOL_REFERENCES_LOCAL for function descriptors.
+ (fdpic_object_p): New.
+ (sh_reloc_map): Add FDPIC and movi20 relocations.
+ (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
+ range.
+ (struct elf_sh_plt_info): Add got20 and short_plt. Update all
+ definitions.
+ (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
+ (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
+ (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
+ (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
+ (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
+ New.
+ (get_plt_info): Handle FDPIC.
+ (MAX_SHORT_PLT): Define.
+ (get_plt_index, get_plt_offset): Handle short_plt.
+ (union gotref): New.
+ (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
+ got_type and adjust all uses. Add GOT_FUNCDESC.
+ (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
+ local_got_tls_type to local_got_type.
+ (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
+ users changed.
+ (sh_elf_local_funcdesc): Define.
+ (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
+ and srofixup.
+ (sh_elf_link_hash_newfunc): Initialize new fields.
+ (sh_elf_link_hash_table_create): Set fdpic_p.
+ (sh_elf_omit_section_dynsym): New.
+ (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
+ and .rofixup.
+ (allocate_dynrelocs): Allocate local function descriptors and space
+ for R_SH_FUNCDESC-related relocations, and for rofixups.
+ Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
+ require function descriptors.
+ (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
+ (sh_elf_modify_program_headers): New.
+ (sh_elf_size_dynamic_sections): Allocate function descriptors for
+ local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
+ Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
+ local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
+ entry in the .dynamic section.
+ (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
+ (sh_elf_add_rofixup, sh_elf_osec_to_segment)
+ (sh_elf_osec_readonly_p, install_movi20_field): New functions.
+ (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
+ R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
+ and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
+ read-only section warnings. Handle undefined weak symbols. Generate
+ fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
+ relocations and clear EF_SH_PIC. Handle 20-bit relocations.
+ Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
+ (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
+ R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
+ Handle 20-bit relocations.
+ (sh_elf_copy_indirect_symbol): Copy function descriptor reference
+ counts.
+ (sh_elf_check_relocs): Handle new relocations. Make symbols
+ dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
+ symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
+ for R_SH_DIR32.
+ (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
+ (sh_elf_merge_private_data): Copy initial flags. Do not clobber
+ non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
+ (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
+ here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
+ FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
+ Use install_movi20_field. Rename srel to srelgot. Always generate
+ R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
+ (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
+ Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
+ Rename sgot to sgotplt. Assert that the right number of rofixups
+ and dynamic relocations were allocated.
+ (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
+ (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
+ (elf_backend_can_make_relative_eh_frame)
+ (elf_backend_can_make_lsda_relative_eh_frame)
+ (elf_backend_encode_eh_address): Define.
+ (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
+ (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
+ Redefine for FDPIC vector.
+ * reloc.c: Add SH FDPIC and movi20 relocations.
+ * targets.c (_bfd_target_vector): Add FDPIC vectors.
+ * configure, bfd-in2.h, libbfd.h: Regenerated.
+
+2010-05-25 Jay Krell <jay.krell@cornell.edu>
+
+ PR ld/11624
+ * archive.c (_bfd_calloc_wrapper): New function.
+ (_bfd_add_bfd_to_archive_cache): Use it.
+
+ * configure.in: Add alpha*-*-*vms* to list of natives.
+ * configure: Regenerate.
+
+ * vms-misc.c: Define globalref if necessary.
+ (vms_convert_to_var_unix_filename): Rename to
+ _bfd_vms_convert_to_var_unix_filename and export.
+ * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
+ * vms-alpha.c (vms_close_and_cleanup): Update invocation of
+ vms_convert_to_var_unix_filename.
+
+2010-05-24 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (add_symbol_entry): New function extrated from ...
+ (add_symbol): ... adjusted.
+
+2010-05-24 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
+ (alpha_vms_write_exec): Add a comment.
+ (_bfd_vms_write_egsd): Ditto.
+ (alpha_vms_convert_symbol): Remove a blank line.
+
+2010-05-21 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
+ for the GST.
+
+2010-05-21 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
+ SEC_LOAD if isect has data.
+ (vms_get_symbol_info): Refine the condition for 'T' type.
+
+2010-05-18 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_write_emh): New function.
+ (_bfd_vms_write_lmn): New function.
+ (_bfd_vms_write_eeom): Moved.
+ (hash_string): Likewise.
+ (_bfd_vms_length_hash_symbol): Likewise.
+ (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
+ and _bfd_vms_write_lmn, and call these functions.
+
+2010-05-18 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
+ Add details in the messages.
+ (evax_bfd_print_image): Change message.
+
+2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/11600
+ * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
+ (elf_fake_sections): Likewise.
+
+ * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
+ SHF_EXCLUDE here.
+ * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
+
+2010-05-17 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c: Include esgps.h and eidc.h.
+ (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
+ (evax_bfd_print_egsd_flags): New function, extracted from ...
+ (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
+ EGSD__C_SPSC and EGSD__C_IDC.
+
+2010-05-14 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
+ (_bfd_vms_get_object_record): Handle align byte only in the
+ foreign case.
+
+2010-05-14 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
+ * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
+ * libbfd.h: Regenerate.
+ * configure.in (havevecs): Define HAVE_all_vecs when
+ --enable-targets=all is set. Use AC_SUBST on it.
+ (tdefaults): Do not add havevecs.
+ (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
+ * configure: Regenerate.
+ * Makefile.am (HAVEVECS): New variable.
+ (INCLUDES): Add HAVEVECS.
+ * Makefile.in: Regenerate.
+ * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
+ target is selected. Add #ifdef/#endif around vms specific code.
+ (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
+ bfd_elfNN_archive_slurp_extended_name_table,
+ bfd_elfNN_archive_construct_extended_name_table,
+ bfd_elfNN_archive_truncate_arname,
+ bfd_elfNN_archive_write_armap,
+ bfd_elfNN_archive_read_ar_hdr,
+ bfd_elfNN_archive_write_ar_hdr,
+ bfd_elfNN_archive_openr_next_archived_file,
+ bfd_elfNN_archive_get_elt_at_index,
+ bfd_elfNN_archive_generic_stat_arch_elt,
+ bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
+
+2010-05-11 Jie Zhang <jie@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
+ Tag_ABI_HardFP_use correctly.
+
+2010-05-11 Alan Modra <amodra@gmail.com>
+
+ * coffcode.h (coff_write_object_contents): Enclose all occurrences
+ of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
+
+2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
+ sym_name to improve packing.
+ (cortex_a8_erratum_scan): Check for PLT entries.
+ (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
+
+2010-05-07 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.in: Regenerate with automake 1.11.1.
+ * aclocal.m4: Ditto.
+
+2010-05-05 Nick Clifton <nickc@redhat.com>
+
+ * po/es.po: Updated Spanish translation.
+
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
+ selective_search flag.
+ Add comments.
+ * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
+ before output_has_begun is set.
+
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c: Add comments.
+ (struct vms_private_data_struct): Remove image_autoextend field.
+ (dst_check_allocation): Removed.
+ (image_write): Remove call to dst_check_allocation.
+ (vms_slurp_debug): Do not set image_autoextend. Adjust section
+ size.
+ (_bfd_vms_slurp_object_records): Remove useless new_type variable.
+ (alpha_vms_write_exec): Use dst_section to get the dst section.
+ Write the dmt section.
+ (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
+ (alpha_vms_read_sections_content): Do not set image_autoextend.
+ (alpha_vms_bfd_final_link): Generate the dst.
+
+2010-05-03 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
+ next array.
+ (vms_lib_dcx): Adjust for the above change.
+
+2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11542
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
+
+ * elf32-i386.c (elf_i386_relocate_section): Use it.
+ * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
+
+2010-04-30 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (vms_read_block): New function.
+ (vms_traverse_index): Use vms_read_block. Handle long key names.
+
+2010-04-30 Tristan Gingold <gingold@adacore.com>
+
+ * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
+ and syms removed.
+ (struct carsym_mem): New structure.
+ (vms_add_index): New function.
+ (vms_add_indexes_from_list): New function.
+ (vms_traverse_index): Parameter carsym changed to carsym_mem.
+ Code adjusted to handle elfidx.
+ (vms_lib_read_index): Adjusted for vms_traverse_index changes.
+ Parameter NBREL is now a pointer.
+ (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
+ archives.
+ (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
+ (_bfd_vms_lib_find_symbol): Ditto.
+ (vms_lib_bopen): Fix two typos: return FALSE in case of error,
+ check MHD id.
+ (_bfd_vms_lib_get_module): New function.
+ (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
+ function.
+ (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
+ (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
+ (vms_write_index): Adjust for structure renamed.
+ * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
+ changes of _bfd_vms_lib_find_symbol.
+
+2010-04-28 Kai Tietz <kai.tietz@onevision.com>
+
+ * config.bfd: Correct accidential reverted patch
+ about vax*-*-*vms*.
+
+2010-04-27 Kai Tietz <kai.tietz@onevision.com>
+
+ * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
+ to USE_MINGW64_LEADING_UNDERSCORES.
+ * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
+ * config.bfd: Change underscoring default for x64 mingw
+ to false.
+ * coffcode.h (coff_write_relocs): Add check that dereferenced
+ sym_ptr_ptr isn't NULL.
+ * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
+ * configure: Regenerated.
+ * configure.in: Add option '--enable-leading-mingw64-underscores'
+ and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
+
+2010-04-27 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/11512
+ * coffgen.c (coff_find_nearest_line): Incldue the section address
+ of function name symbols in address comparisons.
+
+2010-04-27 Nick Clifton <nickc@redhat.com>
+
+ * po/fr.po: Updated French translation.
+
+2010-04-23 Alan Modra <amodra@gmail.com>
+
+ * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
+ ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
+ throughout file.
+ (assign_file_positions_for_load_sections): Modify section in
+ segment warning to ignore overlay vmas.
+ * elf32-spu.c (spu_elf_object_p): Replace use of
+ ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
+
+2010-04-22 Nick Clifton <nickc@redhat.com>
+
+ * po/bfd.pot: Updated by the Translation project.
+ * po/vi.po: Updated Vietnamese translation.
+
+2010-04-22 Alan Modra <amodra@gmail.com>
+
+ * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
+ change. Tidy. Don't error on sections not allocated in segment.
+
+2010-04-15 Andrew Haley <aph@redhat.com>
+
+ * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
+ merge_exidx_entries.
+ * bfd-in2.h: Likewise.
+ * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
+ control merging of exidx entries.
+
+2010-04-20 Joseph Myers <joseph@codesourcery.com>
+
+ * elf32-tic6x.h: New.
+ * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
+ * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
+ elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
+ elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
+ elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
+ bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
+ (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
+ elf32_tic6x_relocate_section): Handle REL relocations.
+ (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
+
+2010-04-20 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
+ DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
+
+2010-04-19 Nick Clifton <nickc@redhat.com>
+
+ * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
+ arhdrpos variable.
+ * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
+ attribute to warned variable. Remove unused val, type and type2
+ variables.
+
+2010-04-16 Andreas Schwab <schwab@redhat.com>
+
+ * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
+ strict-aliasing rules.
+
+2010-04-16 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
+ (_bfd_vms_get_object_record): Always assume there is a pad byte
+ for alignment.
+
+ * vms-lib.c: Add a few comments.
+
+2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
+ attributes in v2.08 of the ABI.
+
+2010-04-15 Alan Modra <amodra@gmail.com>
+
+ * config.bfd (vax*-*-*vms*): Delete.
+
+2010-04-14 Tristan Gingold <gingold@adacore.com>
+
+ * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
+ vms-tir.lo, vms.lo and add vms-alpha.lo
+ (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
+ vms-tir.c, vms.c and add vms-alpha.c
+ * Makefile.in: Regenerate.
+ * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
+ Remove vms_vax_vec.
+ * configure: Regenerate.
+ * targets.c (vms_vax_vec): Remove the declaration.
+ (_bfd_target_vector): Remove vms_vax_vec.
+ * vms-alpha.c: New file.
+ * vms-gsd.c: Removed, rewritten in vms-alpha.c
+ * vms-hdr.c: Ditto.
+ * vms-tir.c: Ditto.
+ * vms.c: Ditto.
+ * vms-misc.c: Fix indentation and comments. Replace most of
+ #if VMS_DEBUG/vms_debug with vms_debug2.
+ (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
+ (hash_string): Ditto.
+ (_bfd_vms_length_hash_symbol): Ditto.
+ (maybe_adjust_record_pointer_for_object): Ditto.
+ (_bfd_vms_get_object_record): Ditto.
+ (vms_get_remaining_object_record): Ditto.
+ (_bfd_vms_push): Ditto.
+ (_bfd_vms_pop): Ditto.
+ (_bfd_vms_get_header_values): Removed.
+ (_bfd_vms_get_first_record): Removed.
+ (vms_get_remaining_image_record): Removed.
+ (new_symbol): Removed.
+ (_bfd_vms_enter_symbol): Removed.
+ (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
+ (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
+ parameter with struct vms_rec_wr.
+ (_bfd_vms_output_push): Removed and replaced by ...
+ (_bfd_vms_output_begin_subrec): ... new function.
+ (_bfd_vms_output_alignment): Replace bfd parameter with
+ struct vms_rec_wr, and adjust.
+ (_bfd_vms_output_check): Ditto
+ (_bfd_vms_output_byte): Ditto.
+ (_bfd_vms_output_short): Ditto.
+ (_bfd_vms_output_long): Ditto.
+ (_bfd_vms_output_quad): Ditto.
+ (_bfd_vms_output_counted): Ditto.
+ (_bfd_vms_output_dump): Ditto.
+ (_bfd_vms_output_fill): Ditto.
+ (_bfd_vms_output_pop): Removed and replaced by ...
+ (_bfd_vms_output_end_subrec): ... new function.
+ (_bfd_vms_output_flush): Removed.
+ (_bfd_vms_output_align): New function.
+ (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
+ parameter.
+ (vms_convert_to_var): New function imported from vms.c
+ (vms_convert_to_var_1): Ditto.
+ (vms_convert_to_var_unix_filename): Ditto.
+ (vms_get_module_name): Ditto.
+ (get_vms_time_string): Ditto.
+ (vms_time_to_time_t): Ditto.
+ (vms_rawtime_to_time_t): Ditto.
+ * vms.h: All macros for the VMS file format are now in include/vms.
+ Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
+ have been removed.
+ (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
+ (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
+ (struct funcinfo, struct vms_private_data_struct): Ditto.
+ (struct vms_section_data_struct): Ditto.
+ (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
+ (vms_get_module_name, get_vms_time_string): New declarations.
+ (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
+ (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
+ (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
+ (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
+ (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
+ (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
+ (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
+ (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
+ (_bfd_vms_output_fill): Ditto.
+ (bfd_vms_set_section_flags): Ditto.
+
+2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
+ exit due to merging the same weak symbol to test that the symbols are
+ actually weak.
+
+2010-04-13 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
+ when optimizing high got_tlsgd/ld insns.
+
+2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
+ define.
+ (HAVE_PRSTATUS32_T): Likewise.
+
+2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR corefiles/11467
+ * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
+ for x86_64-*-linux*.
+ * config.in: Regenerated.
+ * configure: Likewise.
+
+ * elf.c: Include CORE_HEADER if it is defined.
+
+2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * hosts/x86-64linux.h: New.
+
+2010-04-09 Nick Clifton <nickc@redhat.com>
+
+ * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
+ * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
+ variables htab and hdr_info and mark info parameter as unused.
+ * elf.c (prep_headers): Remove unused variable i_phdrp.
+ (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
+ * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
+ as unused.
+ * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
+ * verilog.c (verilog_write_section): Remove unused variable
+ address.
+
2010-04-07 Alan Modra <amodra@gmail.com>
* warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.