2010-05-24 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 8e0e2ddbb02d91730948f40ada57035a57701912..0ef88f73682556f9890ed06d3f89cbe74afde206 100644 (file)
@@ -1,3 +1,844 @@
+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.
+       * configure: Regenerate.
+
+2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/11434
+       * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
+
+2010-04-06  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
+
+2010-04-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
+       provided that it has the expected address size and zero segment
+       length.
+
+       * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
+       (struct line_info): Add op_index field, change end_sequence type to
+       unsigned char.
+       (new_line_sorts_after): For the same address compare op_index.
+       (add_line_info): Add op_index argument, store it into the structure.
+       (decode_line_info): Complain about unknown versions of .debug_line.
+       Initialize maximum_ops_per_insn.  Add op_index state register and
+       track it.
+
+2010-04-01  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * elf32-ppc.c (apuinfo_set): New static var.
+       (ppc_elf_begin_write_processing): Set it here, always create an
+       APUinfo section if there were any in the inputs.
+       (ppc_elf_write_section): Check apuinfo_set.
+       (ppc_elf_final_write_processing): Likewise.
+
+2010-04-01  Tristan Gingold  <gingold@adacore.com>
+
+       * vms.h: Include time.h. Add prototypes for vms_get_module_name,
+       vms_time_to_time_t and vms_rawtime_to_time_t.
+       * vms.c (vms_alpha_vec): Add archives support.
+       * vms-misc.c: Include safe-ctype.h
+       (vms_get_module_name): New function.
+       (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
+       * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
+       vms_get_module_name function.  Use this function.
+       * targets.c: Declare vms_lib_txt_vec.  Add it to _bfd_target_vector.
+       * libbfd-in.h: Add prototype for _bfd_append_relative_path.
+       Add prototypes for vms-lib.c
+       * libbfd.h: Regenerate.
+       * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec.  Add
+       vms-lib.lo to vms_alpha_vec.
+       * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
+       * configure: Regenerate.
+       * bfd.c: Add selective_search field.
+       * bfd-in2.h: Regenerate.
+       * archive.c (append_relative_path): Rename to
+       _bfd_append_relative_path and make it public.
+       (_bfd_get_elt_at_filepos): Adjust for above renaming.
+       * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
+       (BFD32_BACKENDS_CFILES): Add vms-lib.c
+       * Makefile.in: Regenerate.
+
+2010-04-01  Jakub Jelinek  <jakub@redhat.com>
+
+       * dwarf2.c (read_attribute_value): Handle CU version 4
+       for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
+       and DW_FORM_flag_present.  For unknown form value return NULL.
+       (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
+       like DW_FORM_block.
+       (parse_comp_unit): Allow CU version 4.
+
+2010-04-01  Hans-Peter Nilsson  <hp@axis.com>
+
+       * elf32-cris.c (cris_elf_relocate_section): Correct first argument
+       to _bfd_elf_get_dynamic_reloc_section.
+       (elf_cris_discard_excess_dso_dynamics): Ditto.
+
+2010-03-31  Kai Tietz  <kai.tietz@onevision.com>
+
+       * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
+       * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
+
+2010-03-31  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
+       TPREL16_HI and TPREL16_HA insns.
+
+2010-03-31  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR ld/11458
+       * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
+       assert of empty pcrel_relocs_copied on the direct symbol.  Instead
+       of moving the list from the indirect symbol to the direct symbol,
+       merge into any existing list.
+       (cris_elf_check_relocs): Store the original section in the
+       pcrel_relocs_copied list, not the relocation section.
+       (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
+       the relocation section, for reducing its size.  Change the
+       BFD_ASSERT into a check for the section being read-only, and only
+       emit warnings and TEXTREL marker when there's an entry for a
+       read-only section.
+
+2010-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf32-arm.c (using_thumb_only): Handle v6-M.
+
+2010-03-26  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
+       * bfd-in.h (elf_discarded_section): Clarify comment.
+       * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
+       * bfd-in2.h: Regenerate.
+
+2010-03-26  Matt Rice  <ratmice@gmail.com>
+
+       * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
+       as unique in the armap.
+
+2010-03-26  Alan Modra  <amodra@gmail.com>
+
+       PR ld/11375
+       * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
+       possible stub on branches.
+
+2010-03-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
+       (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
+       (BFD32_BACKENDS): Add elf32-tic6x.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
+       * Makefile.in: Regenerate.
+       * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
+       (bfd_archures_list): Update.
+       * config.bfd (tic6x-*-elf): New.
+       * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
+       New.
+       * configure: Regenerate.
+       * cpu-tic6x.c, elf32-tic6x.c: New.
+       * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
+       BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
+       BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
+       BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
+       BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
+       BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
+       BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
+       BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
+       BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
+       BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
+       BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
+       BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
+       BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
+       * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
+       (_bfd_target_vector): Update.
+       * bfd-in2.h, libbfd.h: Regenerate.
+
+2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * aout-target.h: Update copyright year.
+       * aout-tic30.c: Likewise.
+       * coff-alpha.c: Likewise.
+       * coff-rs6000.c: Likewise.
+       * coff64-rs6000.c: Likewise.
+       * elf64-mips.c: Likewise.
+       * ieee.c: Likewise.
+       * libecoff.h: Likewise.
+       * mach-o-target.c: Likewise.
+       * mach-o.c: Likewise.
+       * oasys.c: Likewise.
+       * targets.c: Likewise.
+
+2010-03-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * libbfd-in.h: Update copyright year.
+
+2010-03-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/11413
+       * elflink.c (_bfd_elf_add_default_symbol): Check !executable
+       instead of shared.
+
+2010-03-19  Jie Zhang  <jie@codesourcery.com>
+
+       * elf32-arm.c (struct section_list): Remove.
+       (section_list): Remove typedef.
+       (record_section_with_arm_elf_section_data): Remove.
+       (find_arm_elf_section_entry): Remove.
+       (get_arm_elf_section_data): Use is_arm_elf.
+       (unrecord_section_with_arm_elf_section_data): Remove.
+       (elf32_arm_new_section_hook): Don't call
+       record_section_with_arm_elf_section_data.
+       (elf32_arm_write_section): Set mapcount to -1 when
+       the map has been used. Don't call
+       unrecord_section_with_arm_elf_section_data.
+       (unrecord_section_via_map_over_sections): Remove.
+       (elf32_arm_close_and_cleanup): Remove.
+       (elf32_arm_bfd_free_cached_info): Remove.
+       (bfd_elf32_close_and_cleanup): Don't define.
+       (bfd_elf32_bfd_free_cached_info): Don't define.
+
+2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/11396
+       * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
+       * libcoff.h: Regenerated.
+
+       * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
+       if dont_strip_reloc is set.
+       (_bfd_XX_bfd_copy_private_bfd_data_common): Set
+       dont_strip_reloc on output if there is no .reloc and
+       IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
+
+2010-03-18  Wei Guozhi  <carrot@google.com>
+
+       PR gas/11323
+       * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
+       R_ARM_GOT_PREL.
+       * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2010-03-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
+       (BFD_RELOC_SPU_STUB): Likewise.
+
+2010-03-17  Jie Zhang  <jie@codesourcery.com>
+
+       * elf.c (assign_file_positions_for_load_sections): Avoid
+       overflow.
+
+2010-03-17  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/11382
+       * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
+       proper type.
+
+2010-03-17  Alan Modra  <amodra@gmail.com>
+
+       * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
+
+2010-03-16  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
+       (ppc64_elf_edit_toc): Set it here.
+       (ha_reloc_match): New function.
+       (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
+
+2010-03-15  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
+       * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
+
+2010-03-14  Alan Modra  <amodra@gmail.com>
+
+       PR ld/11378
+       * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
+       * elf64-ppc.c (call_check_done): Define.
+       (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
+       (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
+       (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
+       (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
+       Simplify return logic.  Iterate over all .init and .fini fragments
+       by recursion.  Set makes_toc_func_call here..
+       (ppc64_elf_next_input_section): ..rather than here.
+       (check_pasted_section, ppc64_elf_check_init_fini): New functions.
+
+2010-03-13  Alan Modra  <amodra@gmail.com>
+
+       PR ld/11375
+       * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
+       function descriptor symbol if there is one, not just for plt stubs.
+       (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
+
+2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
+       version twice.
+       Skip it when constructing def.vd_next.
+
+       * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
+       bfd_elf32_i386_sol2_vec.
+       (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
+       (elf32_bed): Redefine to elf32_i386_sol2_bed.
+       (elf_backend_want_plt_sym): Redefine to 1.
+
+       * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
+       bfd_elf64_x86_64_sol2_vec.
+       (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
+       (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
+       (elf_backend_want_plt_sym): Redefine to 1.
+
+       * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
+       bfd_elf32_i386_sol2_vec.
+       Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
+       targ64_selvecs.
+       (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
+       Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
+       targ_selvecs.
+
+       * configure.in: Handle bfd_elf32_i386_sol2_vec,
+       bfd_elf64_x86_64_sol2_vec.
+       * configure: Regenerate.
+
+       * targets.c (bfd_elf32_i386_sol2_vec): Declare.
+       (bfd_elf64_x86_64_sol2_vec): Declare.
+       (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
+       bfd_elf64_x86_64_sol2_vec.
+
+2010-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
+       sections.
+
+2010-03-04  Alan Modra  <amodra@gmail.com>
+
+       PR 11302
+       * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
+       (read_attribute_value, decode_line_info): Likewise.
+       (add_line_info, read_rangelist): Return FALSE on alloc failures.
+       (arange_add, sort_line_sequences): Likewise.
+       (find_abstract_instance_name): Handle failures from called funcs.
+       (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
+       (find_line): Realloc to a temp, and handle alloc fail.
+
+2010-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
+       a mapping symbol to an empty section.
+
+2010-03-02  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
+       return value from the call to _bfd_elf_merge_object_attributes.
+
+2010-03-02  Christophe Lyon  <christophe.lyon@st.com>
+       Alan Modra  <amodra@gmail.com>
+
+       * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
+       destination mode of the a8 stub.
+       (elf32_arm_link_hash_table): Add top_id field.
+       (elf32_arm_link_hash_table_create): Initialize top_id.
+       (arm_type_of_stub): Update prototype, st_type can now be updated
+       by this function. Actual destination address in case of PLT is
+       computed here, to help factorizing code.
+       (elf32_arm_stub_name): Update prototype, use stub_type additional
+       parameter to build stub name.
+       (elf32_arm_get_stub_entry): Update prototype, use stub_type
+       additional parameter to build stub entry.
+       (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
+       put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
+       Call elf32_arm_final_link_relocate to process all in-stub
+       relocations.
+       (elf32_arm_setup_section_lists): Update top_id.
+       (cortex_a8_erratum_scan): Record stub destination mode.
+       (elf32_arm_size_stubs): Update call to arm_type_of_stub according
+       to new prototype.
+       (elf32_arm_final_link_relocate): Enable processing of in-stub
+       REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
+       needed, enabling code factorization.
+       (elf32_arm_final_link): Process stub sections.
+       (elf32_arm_output_map_sym): Add entry to code/data map.
+
+2010-03-01  David S. Miller  <davem@davemloft.net>
+
+       * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
+       h->def_regular, set h->ref_regular.
+       (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
+       and dynamic relocations if h->ref_regular.
+
+       * elfxx-sparc.c (struct elf_reloc_map): Delete.
+       (sparc_reloc_map): Delete.
+       (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
+       relocation type in switch statements.
+
+2010-02-25  Alan Modra  <amodra@gmail.com>
+
+       PR ld/11304
+       * elf.c (_bfd_elf_init_private_section_data): Rename need_group
+       to final_link and invert.  For final link allow some flags to
+       differ.  Don't specially allow flags to be all zero.
+
+2010-02-24  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/10858
+       * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
+       SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
+       table.
+
+2010-02-23  Andrew Zabolotny  <anpaza@mail.ru>
+
+       PR binutils/11297
+       * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
+       (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
+
+2010-02-22  Alan Modra  <amodra@gmail.com>
+
+       * reloc.c (bfd_check_overflow): When forming addrmask, shift
+       fieldmask left by rightshift.
+       (_bfd_relocate_contents): Likewise.  Use rightshift addrmask in all
+       overflow checks.
+
+2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
+       STT_GNU_IFUNC on large common symbol.
+
+2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
+       has_ifunc_symbols if the symbol comes from a shared library.
+       * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
+       * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
+       * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
+       * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
+
+2010-02-19  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
+       (_bfd_elf_copy_private_header_data): ..here.
+       * elflink.c (_bfd_elf_size_group_sections): New function.
+       (bfd_elf_size_dynamic_sections): Call it.
+       * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
+       (_bfd_elf_fixup_group_sections): Declare.
+
 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
 
        * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
        elfcore_write_s390_prefix): New.
        (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
        NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
-       (elfcore_write_register_note): Handle .reg-s390-timer, 
+       (elfcore_write_register_note): Handle .reg-s390-timer,
        .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
        .reg-s390-prefix section.
 
 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
            Alan Modra <amodra@gmail.com>
 
-        * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
+       * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
        (elf_object_p): Read e_phnum extension.
        (elf_write_shdrs_and_ehdr): Write e_phnum extension.
-        * elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
+       * elfcore.h (elf_core_file_p): Read e_phnum extension.  Sanity check
        that we can read last program header.
 
 2010-01-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
This page took 0.0557 seconds and 4 git commands to generate.