* aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 485f4da528e0a1c9f3e6f91cc2b43d95fb512f34..5e5efb00c2f103bf704308e8a1e1dc29b4a0e0cc 100644 (file)
@@ -1,3 +1,413 @@
+2010-07-22  Alan Modra  <amodra@gmail.com>
+
+       * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
+       relocs.
+
+2010-07-20  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (assign_file_positions_for_load_sections): Check that
+       zero size sections are allocated in segments too.
+       (assign_file_positions_for_non_load_sections): Warn if zero
+       size alloc sections are found here.
+       (copy_elf_program_header): Don't drop zero size sections from
+       segment map.
+       (copy_private_bfd_data): Check for changes in zero size sections.
+
+2010-07-17  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (_bfd_elf_map_sections_to_segments): Force new segment
+       for sections with overlapping LMAs.
+       (assign_file_positions_for_load_sections): Catch overlap for
+       sections that wrap around the address space.  Replace a
+       warning that duplicates ld's --check-sections error with a
+       warning that lma has been adjusted for overlapping sections.
+
+2010-07-14  Cary Coutant  <ccoutant@google.com>
+
+       PR ld/11817
+       * dwarf2.c (read_section): Revert patch for compressed debug sections.
+       (find_line): Likewise.
+       (read_and_uncompress_section): Remove.
+
+2010-07-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/11812
+       * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
+        allocate .got.plt section if there are no GOT nor PLT
+        entries.
+        * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
+
+2010-07-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/11791
+       * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
+       garbage collection against STT_GNU_IFUNC symbols.
+
+       * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
+       elf.plt.offset/elf.got.offset to -1.
+       (elf_i386_tls_transition): Skip TLS transition for functions.
+       (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
+
+       * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
+       elf.plt.offset/elf.got.offset to -1.
+       (elf64_x86_64_tls_transition): Skip TLS transition for functions.
+       (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
+
+2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_check_relocs): Re-indent.
+       (elf_i386_relocate_section): Likewise.
+
+2010-07-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dwarf2.c (add_line_info): Initialize prev_line.
+
+2010-07-06  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_relax_section): Insert branch around
+       trampolines only for .init and .fini sections.
+
+2010-07-05  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c: Formatting.
+       (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
+
+2010-07-03  Cary Coutant  <ccoutant@google.com>
+
+       * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
+       * dwarf2.c (read_and_uncompress_section): New function.
+       (read_section): Call it.
+       (find_line): Likewise.
+
+2010-07-01  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
+       than SYMBOL_REFERENCES_LOCAL.
+       (ppc64_elf_relocate_section): Likewise.
+
+2010-07-01  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
+
+2010-06-29  Alan Modra  <amodra@gmail.com>
+
+       * cpu-maxq.c: Delete file.
+       * coff-maxq.c: Delete file.
+       * Makefile.am: Remove references to maxq.
+       * archures.c: Likewise.
+       * coffcode.h: Likewise.
+       * configure.in: Likewise.
+       * targets.c: Likewise.
+       * config.bfd: Move maxq from obsolete to removed.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * configure: Regenerate.
+       * libbfd.h: Regenerate.
+       * po/SRC-POTFILES.in: Regenerate.
+
+2010-06-28  Alan Modra  <amodra@gmail.com>
+
+       * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
+       to silence gcc warning.
+
+2010-06-27  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
+       (group_sections): Likewise.
+
+2010-06-27  Alan Modra  <amodra@gmail.com>
+
+       * bout.c (aligncode): Delete set but unused variables.
+       * coff-mcore.c (coff_mcore_relocate_section): Likewise.
+       * coff-ppc.c (ppc_record_toc_entry): Likewise.
+       (coff_ppc_relocate_section): Likewise.
+       * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
+       * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
+       * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
+       (mn10300_elf_relax_section): Likewise.
+       * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
+       (record_vfp11_erratum_veneer): Likewise.
+       (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
+       (elf32_arm_final_link_relocate): Likewise.
+       (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
+       * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
+       (elf32_avr_relax_section): Likewise.
+       (avr_mark_stub_not_to_be_necessary): Likewise.
+       * elf32-bfin.c (_bfin_create_got_section): Likewise.
+       * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
+       (elf32_cr16_relax_delete_bytes): Likewise.
+       * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
+       * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
+       * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
+       * elf32-h8300.c (elf32_h8_relax_section): Likewise.
+       (elf32_h8_relax_delete_bytes): Likewise.
+       * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
+       * elf32-i370.c (i370_elf_check_relocs): Likewise.
+       (elf_relocate_section): Likewise.
+       * elf32-ip2k.c (adjust_all_relocations): Likewise.
+       (ip2k_elf_relax_section): Likewise.
+       * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
+       (lm32_elf_check_relocs): Likewise.
+       (lm32_elf_finish_dynamic_sections): Likewise.
+       (lm32_elf_finish_dynamic_symbol): Likewise.
+       * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
+       (m32c_elf_relax_delete_bytes): Likewise.
+       * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
+       (m32r_elf_finish_dynamic_sections): Likewise.
+       (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
+       * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
+       * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
+       * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
+       * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
+       (microblaze_elf_check_relocs): Likewise.
+       (microblaze_elf_finish_dynamic_symbol): Likewise.
+       * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
+       * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
+       * elf32-rx.c (rx_elf_relocate_section): Likewise.
+       (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
+       (elf32_rx_relax_section): Likewise.
+       * elf32-score.c (score_elf_got_offset_from_index): Likewise.
+       (score_elf_final_link_relocate): Likewise.
+       (s3_bfd_score_elf_relocate_section): Likewise.
+       * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
+       (s7_bfd_score_elf_relocate_section): Likewise.
+       * elf32-sh.c (sh_elf_check_relocs): Likewise.
+       * elf32-spu.c (spu_elf_relocate_section): Likewise.
+       * elf32-v850.c (v850_elf_check_relocs): Likewise.
+       (find_remembered_hi16s_reloc): Likewise.
+       * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
+       (elf_vax_relocate_section): Likewise.
+       * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
+       * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
+       (move_literal): Likewise.
+       * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
+       (elf64_hppa_check_relocs): Likewise.
+       (elf64_hppa_finish_dynamic_symbol): Likewise.
+       (elf64_hppa_relocate_section): Likewise.
+       * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
+       * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
+       (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
+       (elfNN_vms_section_from_shdr): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
+       (_bfd_sparc_elf_relocate_section): Likewise.
+       * hp300hpux.c (slurp_symbol_table): Likewise.
+       * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
+       * mach-o.c (bfd_mach_o_write_thread): Likewise.
+       * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
+       * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
+       * pdp11.c (pdp11_aout_link_input_section): Likewise.
+       (aout_link_input_section, aout_link_input_bfd): Likewise.
+       * pe-mips.c (mips_swap_reloc_out): Likewise.
+       (coff_pe_mips_relocate_section): Likewise.
+       * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
+       * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
+       * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
+
+       * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
+       * coffcode.h (coff_compute_section_file_positions): Likewise.
+       (coff_slurp_reloc_table): Likewise.
+       * cpu-arm.c (arm_check_note): Likewise.
+       * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
+       * elf32-avr.c (elf32_avr_relocate_section): Likewise.
+       * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
+       * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
+       * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
+       * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
+       * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
+       * ieee.c (parse_expression): Likewise.
+       (ieee_slurp_external_symbols, drop_int): Likewise.
+       * peXXigen.c (pe_print_pdata): Likewise.
+       * versados.c (process_esd): Likewise.
+
+2010-06-25  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
+       its flags.  Create an absolute section if needed.
+
+2010-06-25  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
+       sections.  Mark .vmsdebug section as SEC_DEBUGGING.  Do not create
+       dummy psect anymore.  Adjust.
+       (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
+       (_bfd_vms_write_etir): Ditto.
+       (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
+       section name.  Adjust.
+
+2010-06-25  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
+
+2010-06-25  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (toc_skip_enum): Define.
+       (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
+       Optimize largetoc sequences.
+       (adjust_toc_syms): Update for skip array change.
+       (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
+
+2010-06-25  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (is_static_defined): New function.
+       (get_tls_mask, ppc_type_of_stub): Use it here.
+       (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
+       (ppc64_elf_tls_setup): Typo fix.
+       (adjust_toc_syms): Correctly handle symbols defined past the end
+       of the toc.  Move syms on removed entries to next entry rather
+       than to start of toc.
+       (ppc64_elf_edit_toc): Likewise.  Ensure we only attempt to
+       edit ppc64 input.  Allocate one extra word in skip array.
+       Honour info->keep_memory when reading relocs if we can.
+       Adjust toc relocs after adjusting symbols.
+
+2010-06-23  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
+       when scaning map.
+
+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.
 
        * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
        to USE_MINGW64_LEADING_UNDERSCORES.
-        * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
+       * 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
This page took 0.029273 seconds and 4 git commands to generate.