bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index a2a6470eb1ece9c014cb7f5dc1dc97f033eed548..5a1cbd34543114653e3889853f1ea8a98812216f 100644 (file)
@@ -1,3 +1,313 @@
+2006-10-20  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Allocate
+       a PT_NULL header for dynamic objects.
+       (_bfd_mips_elf_modify_segment_map): Add it.
+
+2006-10-19  Mei Ligang  <ligang@sunnorth.com.cn>
+
+       * elf32-score.c (score_elf_rel_dyn_section): Replace
+       bfd_make_section with bfd_make_section_with_flags.
+       (_bfd_score_elf_create_dynamic_sections): Ditto.
+       (score_elf_create_got_section): Ditto.
+       (score_elf_final_link_relocate): Delete referrence to
+       EF_SCORE_HASENTRY.
+
+2006-10-19  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (sort_dynamic_relocs): Sort relocations against the
+       same symbol by increasing r_offset.
+       (sort_dynamic_relocs_64): Likewise.  Fix comparisons between very
+       large and very small symbol indexes.
+
+2006-10-19  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG
+       and DT_MIPS_RLD_MAP tags for position-independent executables.
+       Do not add DT_DEBUG to shared libraries for any MIPS target.
+
+2006-10-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/3290
+       * elflink.c (elf_link_add_object_symbols): Hide definitions in
+       debug sections.
+
+2006-10-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-arm.c (bfd_elf32_arm_allocate_interworking_sect): Check,
+       don't set, glue section size.
+       (record_arm_to_thumb_glue): Set glue section size here.
+       (record_thumb_to_arm_glue): Likewise.
+       (bfd_elf32_arm_add_glue_sections_to_bfd): Formatting.
+       (bfd_elf32_arm_process_before_allocation): Ignore exluded sections.
+
+2006-10-18  Roy Marples  <uberlord@gentoo.org>
+
+       * elf64-sparc.c: Add FreeBSD support.
+       (elf64_sparc_fbsd_post_process_headers): New function.
+       * targets.c (_bfd_target_vector): Add bfd_elf64_sparc_freebsd_vec.
+       * config.bfd (sparc64-*-freebsd*): Set targ_defvec to bfd_elf64_sparc_freebsd_vec.
+       * configure.in: Add entry for bfd_elf64_sparc_freebsd_vec.
+       * configure: Regenerate.
+
+2006-10-17  Mark Shinwell  <shinwell@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Add support for
+       R_ARM_MOVW_BREL_NC, R_ARM_MOVW_BREL, R_ARM_MOVT_BREL,
+       R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVW_BREL and
+       R_ARM_THM_MOVT_BREL relocations.
+
+2006-10-17  Mark Shinwell  <shinwell@codesourcery.com>
+
+        * elf32-arm.c (elf32_arm_howto_table_1): Change offset for
+        R_THM_CALL to 25 and remove FIXME comment.
+        (using_thumb2): New function.
+        (elf32_arm_final_link_relocate): Cope with Thumb-2 BL encoding.
+
+2006-10-17  Mark Shinwell  <shinwell@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Add cases
+       for R_ARM_ABS32_NOI and R_ARM_REL32_NOI.
+       (elf32_arm_gc_sweep_hook): Likewise.
+       (elf32_arm_check_relocs): Likewise.
+       (allocate_dynrelocs): Likewise.
+
+2006-10-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct elf_link_hash_table): Reorder.  Add
+       text_index_section and data_index_section.
+       (struct elf_backend_data): Add elf_backend_init_index_section.
+       (_bfd_elf_init_1_index_section): Declare.
+       (_bfd_elf_init_2_index_sections): Declare.
+       * elfxx-target.h (elf_backend_init_index_section): Define.
+       (elfNN_bed): Init new field.
+       * elflink.c (_bfd_elf_link_omit_section_dynsym): Keep first tls
+       section and text_index_section plus data_index_section.
+       (_bfd_elf_link_renumber_dynsyms): Clear dynindx on omitted sections.
+       (_bfd_elf_init_1_index_section): New function.
+       (_bfd_elf_init_2_index_sections): New function.
+       (bfd_elf_size_dynsym_hash_dynstr): Call elf_backend_init_index_section.
+       (elf_link_input_bfd): When emitting relocs, use text_index_section
+       and data_index_section for removed sections.
+       * elf-m10300.c (elf_backend_omit_section_dynsym): Define.
+       * elf32-i386.c: Likewise.
+       * elf32-m32r.c: Likewise.
+       * elf32-sh.c: Likewise.
+       * elf32-xstormy16.c: Likewise.
+       * elf32-xtensa.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elf64-hppa.c: Likewise.
+       * elf64-mmix.c: Likewise.
+       * elf64-sh64.c: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * elf32-arm.c (elf32_arm_final_link_relocate): Use text_index_section
+       and data_index_section sym for relocs against sections with no dynamic
+       section sym.
+       (elf_backend_init_index_section): Define.
+       * elf32-cris.c: Similarly.
+       * elf32-hppa.c: Similarly.
+       * elf32-i370.c: Similarly.
+       * elf32-m68k.c: Similarly.
+       * elf32-mips.c: Similarly.
+       * elf32-ppc.c: Similarly.
+       * elf32-s390.c: Similarly.
+       * elf32-sparc.c: Similarly.
+       * elf32-vax.c: Similarly.
+       * elf64-mips.c: Similarly.
+       * elf64-ppc.c: Similarly.
+       * elf64-s390.c: Similarly.
+       * elf64-sparc.c: Similarly.
+       * elf64-x86-64.c: Similarly.
+       * elfn32-mips.c: Similarly.
+       * elfxx-mips.c: Similarly.
+       * elfxx-sparc.c: Similarly.
+       * linker.c (fix_syms): Base symbols in removed sections on
+       previous section in preference to using absolute section.
+
+2006-10-16  Andreas Schwab  <schwab@suse.de>
+
+       * elfxx-ia64.c (addend_compare): Properly compute return value.
+
+2006-10-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/3314
+       * elf.c (assign_file_positions_for_non_load_sections): Don't
+       page align empty SHF_ALLOC sections.  
+
+2006-10-13  Jakub Jelinek  <jakub@redhat.com>
+
+       * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set
+       .plt sh_entsize to 0 if plt header size isn't multiple of
+       plt entry size or for 32-bit which adds a nop insn at the
+       end of the .plt section.
+
+2006-10-12  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_action_discarded): New.
+       (elf_backend_action_discarded): Define.
+
+2006-10-11  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_relocate_section): Return after
+       unresolvable relocation error.
+       (elf_xtensa_finish_dynamic_symbol): Set value of undefined, weak
+       symbols to zero.
+
+2006-10-10  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG
+       for PIE executables.
+
+2006-10-03  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer.
+       * elf-eh-frame.c (skip_cfa_op): Fix handling of DW_CFA_advance_loc.
+       Handle DW_CFA_{remember,restore}_state, DW_CFA_GNU_window_save,
+       DW_CFA_val_{offset{,_sf},expression}.
+       (skip_non_nops): Record number of DW_CFA_set_loc ops.
+       (_bfd_elf_discard_section_eh_frame): Require skip_non_nops recognizes
+       all ops.  If there are any DW_CFA_set_loc ops and they are pcrel
+       or going to be pcrel, compute set_loc array.
+       (_bfd_elf_eh_frame_section_offset): If make_relative, kill relocations
+       against DW_CFA_set_loc operands.
+       (_bfd_elf_write_section_eh_frame): Handle DW_CFA_set_loc adjusting.
+
+2006-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elflink.c (_bfd_elf_merge_symbol): Discard references to TLS
+       symbols from the --just-syms file.
+
+2006-10-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for
+       existence of PLT.
+
+2006-09-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/3283
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): Don't ignore
+       relocation overflow on branches to undefweaks.
+
+2006-09-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * po/BLD-POTFILES.in: Regenerate.
+       * po/SRC-POTFILES.in: Regenerate.
+
+2006-09-29  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       PR 3276
+       * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
+       alignment for .data$, .rdata$ and .text$ sections so that sse
+       and sse2 code will work for linkonce sections too. 
+       * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
+
+2006-09-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (_bfd_elf_gc_mark_hook): New function.
+       * elf-bfd.h (_bfd_elf_gc_mark_hook): Declare.
+       * elfxx-target.h (elf_backend_gc_mark_hook): Default to above.
+       * elf-m10300.c (mn10300_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       * elf32-arm.c (elf32_arm_gc_mark_hook): Likewise.
+       * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
+       * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
+       * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
+       * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
+       * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
+       * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
+       * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
+       * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
+       * elf32-score.c (_bfd_score_elf_gc_mark_hook): Likewise.
+       * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
+       * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
+       * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Likewise.
+       * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
+       * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Likewise.
+       * elf32-bfin.c (bfin_gc_mark_hook): Likewise.
+       (bfinfdpic_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define for elf32-bfinfdpic.
+       * elf32-d10v.c (elf32_d10v_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       (elf32_d10v_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-fr30.c (fr30_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       (fr30_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-frv.c (elf32_frv_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       (elf32_frv_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-iq2000.c (iq2000_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       (iq2000_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Use
+       _bfd_elf_gc_mark_hook.
+       (openrisc_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-v850.c (v850_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       (v850_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Use
+       _bfd_elf_gc_mark_hook.
+       (xstormy16_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf64-sh64.c (sh_elf64_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
+       (sh_elf64_gc_sweep_hook): Delete.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-avr.c (elf32_avr_gc_mark_hook): Delete.
+       (elf32_avr_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-cr16c.c (elf32_cr16c_gc_mark_hook): Delete.
+       (elf32_cr16c_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-crx.c (elf32_crx_gc_mark_hook): Delete.
+       (elf32_crx_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-h8300.c (elf32_h8_gc_mark_hook): Delete.
+       (elf32_h8_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-ip2k.c (ip2k_elf_gc_mark_hook): Delete.
+       (ip2k_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-m32c.c (m32c_elf_gc_mark_hook, m32c_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-m68hc11.c (elf_backend_gc_mark_hook): Don't define.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-m68hc12.c (elf_backend_gc_mark_hook): Don't define.
+       (elf_backend_gc_sweep_hook): Don't define.
+       * elf32-m68hc1x.c (elf32_m68hc11_gc_mark_hook): Delete.
+       (elf32_m68hc11_gc_sweep_hook): Delete.
+       * elf32-m68hc1x.h (elf32_m68hc11_gc_mark_hook): Delete.
+       (elf32_m68hc11_gc_sweep_hook): Delete.
+       * elf32-msp430.c (elf32_msp430_gc_mark_hook): Delete.
+       (elf32_msp430_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+       * elf32-mt.c (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook): Delete.
+       (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
+
+2006-09-25 Pedro Alves <pedro_alves@portugalmail.pt>
+
+       * bfd-in.h (CONST_STRNCPY) : Delete.
+       (LITSTRCPY) : New.
+       (LITMEMCPY) : New.
+       * bfd-in2.h : Regenerate.
+       * elflink.c  (bfd_elf_gc_sections) : Use LITMEMCPY. Don't manually
+       calculate string lengths.
+       * nlmcode.h (nlm_swap_auxiliary_headers_in) : Use LITMEMCPY.
+
+2006-09-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/3223
+       PR ld/3267
+       * elf.c (assign_file_positions_for_non_load_sections): Don't
+       warn zero size allocated sections.
+
+2006-09-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-score.c (_bfd_score_elf_relocate_section): Move assignment
+       to "name" so that compiler realizes it is never uninitialized.
+       Use bfd_elf_sym_name.
+
 2006-09-26  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/3262
This page took 0.026314 seconds and 4 git commands to generate.