-2007-11-13 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/5307
- * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
- copy input subsystem if output is different from input.
-
-2007-11-13 Nick Clifton <nickc@redhat.com>
-
- * elf-m10300.c (mn10300_elf_final_link_relocate): Prevent the
- accidental termination of DWARF location list entries.
- (mn10300_elf_relax_delete_bytes): Stop deletion if an align reloc
- is encountered that is larger than or not a mutliple of the number
- of bytes being deleted.
- When adjusting symbols, any symbols inside the region being
- deleted must be moved to the end of the region.
- Move align relocs forward if there is room for them after the
- deletion of the region.
-
-2007-11-13 Alan Modra <amodra@bigpond.net.au>
-
- PR 5233
- * elf.c (rewrite_elf_program_header): Formatting. Add
- first_matching_lma and first_suggested_lma booleans and use
- instead of testing matching_lma and suggested_lma for zero.
-
-2007-11-12 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/5299
- * peicode.h (pe_bfd_object_p): Save and restore previous bfd
- state when calling coff_object_p.
-
-2007-11-12 Alan Modra <amodra@bigpond.net.au>
-
- * elf.c (_bfd_elf_get_synthetic_symtab): Only bump the symbol
- pointer when we have a valid symbol. Init udata.p to NULL.
-
-2007-11-09 Nathan Sidwell <nathan@codesourcery.com>
-
- * elf-vxworks.c (elf_vxworks_emit_relocs): Don't clobber
- rel_hash. Move loop inside if test.
-
-2007-11-08 Nathan Sidwell <nathan@codesourcery.com>
-
- * elf-vxworks.h (elf_vxworks_add_dynamic_entries): Declare.
- (elf_vxworks_finish_dynamic_entry): Declare.
- * elf-vxworks.c: Include elf/vxworks.h.
- (elf_vxworks_add_dynamic_entries): New.
- (elf_vxworks_finish_dynamic_entry): New.
- * Makefile.am (elf-vxworks.lo): Add dependency.
- * Makefile.in (elf-vxworks.lo): Add dependency.
- * elf32-i386.c (elf_i386_size_dynamic_sections,
- elf_i386_finish_dynamic_sections): Call
- elf_vxworks_add_dynamic_entries and
- elf_vxworks_finish_dynamic_entry.
- * elf32-ppc.c (ppc_elf_size_dynamic_sections,
- ppc_elf_finish_dynamic_sections): Likewise.
- * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections,
- sparc_finish_dyn): Likewise.
- * elf32-sh.c (sh_elf_size_dynamic_sections,
- sh_elf_finish_dynamic_sections): Likewise.
- * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections,
- _bfd_mips_elf_finish_dynamic_sections): Likewise.
- * elf32-arm.c (elf32_arm_size_dynamic_sections,
- elf32_arm_finish_dynamic_sections): Likewise.
-
-2007-11-07 Olivier Hainque <hainque@adacore.com>
-
- * bfd/elfxx-mips.c (_bfd_mips_elf_fake_sections): Force
- SHF_MIPS_NOSTRIP on .debug_frame for Irix.
-
-2007-11-06 Alan Modra <amodra@bigpond.net.au>
-
- * elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..
- (ppc64_elf_gc_sweep_hook): ..or here..
- (ppc64_elf_tls_optimize): ..or here. Make two passes through the
- relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
- (allocate_dynrelocs): Refcount tlsld_got here.
- (ppc64_elf_size_dynamic_sections): Allocate local got and call
- allocate_dynrelocs before allocating tlsld_got.
- (ppc64_elf_relocate_section): Remove check that a tls_get_addr
- call follows gd and ld relocs.
-
- * elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here..
- (ppc_elf_gc_sweep_hook): ..or here..
- (ppc_elf_tls_optimize): ..or here. Make two passes through the
- relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
- (allocate_dynrelocs): Refcount tlsld_got here.
- (ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before
- allocating tlsld_got.
- (ppc_elf_relocate_section): Remove check that a tls_get_addr
- call follows gd and ld relocs.
-
-2007-11-05 Alan Modra <amodra@bigpond.net.au>
-
- * merge.c (sec_merge_hash_lookup): Revert last change.
- (record_section): Likewise.
- (_bfd_merge_sections): Likewise.
- (_bfd_merged_section_offset): Properly handle NULL secinfo.
- (_bfd_add_merge_section): Allocate extra space for a zero
- terminator on SEC_STRINGS sections.
-
-2007-11-05 Danny Smith <dannysmith@users.sourceforge.net>
-
- * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text
- and .bss section use the default.
- * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
-
-2007-11-01 Joseph Myers <joseph@codesourcery.com>
-
- * merge.c (sec_merge_hash_lookup): Add parameter sec_end. Check
- for unterminated strings. All callers changed.
- (record_section): Add parameter abfd. Give error message for
- unterminated strings.
- (_bfd_merge_sections): Update call to record_section.
- (_bfd_write_merged_section, _bfd_merged_section_offset): Handle
- NULL secinfo from merge failures.
-
-2007-10-31 Nick Clifton <nickc@redhat.com>
-
- * elf-m10300.c (mn10300_elf_relax_delete_bytes): Do not look for
- align relocs when there are no relocs attached to the section.
-
-2007-10-31 Alan Modra <amodra@bigpond.net.au>
-
- * elf-bfd.h (bfd_elf_match_symbols_in_sections): Don't declare.
- * elflink.c (bfd_elf_match_symbols_in_sections): Make static.
- Remove section name comparisons.
-
-2007-10-30 Nick Clifton <nickc@redhat.com>
-
- * reloc.c (BFD_RELOC_MN10300_ALIGN): Add.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Regnerate.
- * elf-m10300.h: Handle R_MN10300_ALIGN relocs.
- (mn10300_elf_relax_delete_bytes): Honour R_MN10300_ALIGN relocs.
- Re-fix off by one error in comparisons.
-
-2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
-
- * bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case.
- * bfd-in2.h: Regenerate.
-
-2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
-
- * elf32-ppc.c (ppc_elf_merge_obj_attributes): Add support for
- Tag_GNU_Power_ABI_Vector.
-
-2007-10-25 Joseph Myers <joseph@codesourcery.com>
-
- * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Do not add
- PT_NULL header when not linking.
-
-2007-10-25 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
-
- * elf.c (elfcore_grok_ppc_vmx): New function.
- (elfcore_grok_note): Handle NT_PPC_VMX.
- (elfcore_write_ppc_vmx): New function.
- * elf-bfd.h (elfcore_write_ppc_vmx): Declare.
-
-2007-10-24 Alan Modra <amodra@bigpond.net.au>
-
- * Makefile.am: Run "make dep-am".
- * Makefile.in: Regenerate.
- * po/SRC-POTFILES.in: Regenerate.
-
-2007-10-23 Alan Modra <amodra@bigpond.net.au>
-
- * elf64-ppc.c (ppc_build_one_stub): Don't duplicate relocs
- emitted for ".brlt" entries.
- (toc_adjusting_stub_needed): Don't treat ".fixup" specially here..
- (ppc64_elf_next_input_section): ..instead do so here.
-
-2007-10-19 Nick Clifton <nickc@redhat.com>
-
- * config.bfd: Recognise am34-linux-gnu target.
- * reloc.c: Add BFD_RELOC_MN10300_SYM_DIFF relocation.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Regenerate.
- * elf-m10300.c (elf_mn10300_howto): Add R_MN10300_SYM_DIFF.
- (mn10300_reloc_map): Likewise.
- (mn10300_elf_check_relocs): Do not create dynamic relocs for
- symbol differences or relocations against absolute symbols.
- (mn10300_elf_final_link_relocate): Likewise.
- Handle R_MN10300_SYM_DIFF relocs.
- (mn10300_elf_relocate_section): Fix for creating local copys of
- dynamic relocs.
- (mn10300_elf_relax_delete_bytes): Adjust symbols at the end of the
- region. Adjust the size of function symbols.
- (mn10300_elf_relax_section): Ignore symbols that are in discarded
- sections.
-
-2007-10-19 Nick Clifton <nickc@redhat.com>
-
- * elf-m10300.c: Convert to ISO C.
-
-2007-10-18 H.J. Lu <hongjiu.lu@intel.com>
- Alan Modra <amodra@bigpond.net.au>
-
- PR ld/4424
- * config.bfd (targ_selvecs): Add bfd_elf64_alpha_vec for
- alpha/FreeBSD. Add bfd_elf64_sparc_vec for sparc64/FreeBSD.
- Add bfd_elf32_i386_vec and bfd_efi_app_ia32_vec for i386/FreeBSD.
- (targ64_selvecs): Set for i386/FreeBSD.
- * elf-bfd.h (elf_backend_data): Add relocs_compatible.
- (_bfd_elf_default_relocs_compatible): Declare.
- (_bfd_elf_relocs_compatible): Declare.
- * elfxx-target.h (elf_backend_relocs_compatible): Define.
- (elfNN_bed): Init new relocs_compatible field.
- * elflink.c (_bfd_elf_default_relocs_compatible): New function.
- (_bfd_elf_relocs_compatible): New function.
- (elf_link_add_object_symbols): Call bed->relocs_compatible.
- * elf32-i386.c (elf_backend_relocs_compatible): Define.
- * elf64-alpha.c: Likewise.
- * elf64-sparc.c: Likewise.
- * elf64-x86-64.c: Likewise.
-
-2007-10-16 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (relax_section): Check for a reference to a discarded
- DWARF section and anticipate its replacement with the kept section.
-
-2007-10-16 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (elf_xtensa_discard_info_for_section): Remove
- unnecessary size variables. Set sec->rawsize.
- (relax_section, relax_property_section): Likewise.
-
-2007-10-16 Bob Wilson <bob.wilson@acm.org>
-
- * section.c (struct bfd_section): Clarify comment for rawsize field.
- * bfd-in2.h: Regenerate.
-
-2007-10-16 Bob Wilson <bob.wilson@acm.org>
-
- * elflink.c (_bfd_elf_check_kept_section): Use the section rawsize
- values if they are set.
-
-2007-10-16 Nick Clifton <nickc@redhat.com>
-
- PR 5146
- * configure.in (AC_CHECK_HEADERS): Add alloca.h
- * configure: Regenerate.
- * config.in: Regenerate.
- * som.c: Replace alloca-conf.h inclusion with code recommended in
- autoconf documentation.
- * elf64-hppa.c: Likewise.
-
-2007-10-16 Nick Clifton <nickc@redhat.com>
-
- * configure.in (--enable-elf-stt-common): New configure
- option. If enabled then the tools can generate symbols with
- the ELF STT_COMMON type.
- * config.in: Regenerate.
- * configure: Regenerate.
- * elf.c (swap_out_syms): If USE_STT_COMMON is defined then set
- the type of emitted common symbols to STT_COMMON.
- * elfcode.h (elf_slurp_symbol_table): Accept STT_COMMON symbol
- types.
-
-2007-10-15 Alan Modra <amodra@bigpond.net.au>
-
- * coff-arm.c (arm_emit_base_file_entry): Check fwrite return value.
- Return status. Adjust callers.
- * coff-mcore.c (mcore_emit_base_file_entry): Likewise.
- * coff-ppc.c (write_base_file_entry): New function.
- (coff_ppc_relocate_section): Use it.
- * elf32-arm.c (find_thumb_glue): Check asprintf return status.
- (find_arm_glue): Likewise.
- * vms-misc.c (_bfd_vms_output_flush): Check fwrite return value.
-
-2007-10-12 Nick Clifton <nickc@redhat.com>
-
- PR 5160
- * elflink.c (eval_symbol): Remove bufsz variable and use
- sizeof(symbuf) where necessary.
-
-2007-10-12 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
-
- * elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.
-
-2007-10-12 Daniel Jacobowitz <dan@codesourcery.com>
-
- * elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced
- local symbols specially.
- (mips_elf_set_global_got_offset): Skip forced local symbols.
-
-2007-10-12 Alan Modra <amodra@bigpond.net.au>
-
- * elf.c (elfcore_grok_prxfpreg): Fix comment typo.
-
-2007-10-10 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf.c (get_program_header_size): Always add a PT_GNU_RELRO
- segment for -z relro.
- (_bfd_elf_map_sections_to_segments): Make a PT_GNU_RELRO
- segment only when needed.
-
-2007-10-05 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (relax_section): Call pin_internal_relocs when
- changing a relocation's offset. Adjust call to translate_reloc. Do
- not add a fix record for a DIFF reloc. For other relocs, only add a
- fix record if the translated target is in a different object file;
- otherwise, just update the relocation. Call pin_internal_relocs when
- updating a reloc but not when adding a fix record.
- (translate_reloc): Get the target section from a new argument, not
- from the relocation. Change check for relaxable sections to an
- assertion. Compute separate offset adjustments for the base symbol
- and the addend, and set the new relocation's addend correctly. Return
- the new target section.
-
-2007-10-05 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (elf_xtensa_relocate_section): Remove updates of
- r_type and howto after calling do_fix_for_relocateable_link and
- do_fix_for_final_link.
-
-2007-10-05 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (removed_by_actions): New.
- (offset_with_removed_text): Reimplement using removed_by_actions.
- (offset_with_removed_text_before_fill): Delete.
- (relax_property_section): Use removed_by_actions. Rearrange logic.
- (relax_section_symbols): Likewise.
-
-2007-10-04 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (reloc_bfd_fix_struct): Delete target_abfd field.
- (reloc_bfd_fix_init): Remove target_abfd argument.
- (relax_section, move_literal): Adjust calls to reloc_bfd_fix_init.
-
-2007-10-04 Nick Clifton <nickc@redhat.com>
-
- PR linker/5099
- * elf64-x86-64.c (elf64_x86_64_check_relocs): Add missing
- apostrophe to error message.
-
-2007-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
-
- * elf32-cr16.c: Fixed DISP8, DISP20 and IMM20 relocations at
- final relocation phase.
- Added the below relaxations: IMM32 -> IMM20/IM16 -> IMM4.
- * reloc.c: Added 3 new relocations: R_CR16_SWITCH8,
- R_CR16_SWITCH16, R_CR16_SWITCH32.
- * libbfd.h: Regenerate.
- * bfd-in2.h: Regenerate.
-
-2007-09-30 Alan Modra <amodra@bigpond.net.au>
-
- * elflink.c: Formatting.
-
-2007-09-29 Alan Modra <amodra@bigpond.net.au>
-
- * elflink.c (resolve_symbol): Handle symbols in SEC_MERGE
- sections. Don't test symbol st_shndx. Don't bother with
- bfd_link_hash_common symbols. Print longs rather than ints
- in debug messages.
- (eval_symbol): Replace "sym" and "advanced" params with "symp".
- Replace "addr" and "section_offset" params with "dot". Don't
- cast bfd_vma values to signed, cast them to bfd_signed_vma.
- (bfd_elf_perform_complex_relocation): Delete "output_bfd", "info",
- "local_syms" and "local_sections" params. Add "relocation".
- Delete code calculating relocation value.
- (evaluate_complex_relocation_symbols): Delete function. Fold into..
- (elf_link_input_bfd): ..existing code examining relocs.
- * elf-bfd.h (bfd_elf_perform_complex_relocation): Update prototype.
- * elf32-mep.c (mep_elf_check_relocs): Delete function.
- (mep_elf_gc_sweep_hook, mep_elf_gc_mark_hook): Likewise.
- (mep_elf_object_p): Don't set elf_bad_symtab.
- (elf_backend_check_relocs): Don't define.
- (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): Likewise.
- (elf_backend_can_gc_sections, USE_RELA): Likwise.
- (mep_elf_relocate_section): Move bfd_elf_perform_complex_relocation
- call after we have calculated reloc value. Delete local sym
- debug code. Use RELOC_FOR_GLOBAL_SYMBOL. Delete addend
- adjusting code..
- (elf_backend_rela_normal): ..instead define this.
-
-2007-09-28 Alan Modra <amodra@bigpond.net.au>
-
- * elf-m10300.c (mn10300_elf_check_relocs): Delete dead code.
- * elf32-arm.c (elf32_arm_check_relocs): Likewise.
- * elf32-avr.c (elf32_avr_check_relocs): Likewise.
- * elf32-bfin.c (bfinfdpic_check_relocs): Likewise.
- * elf32-cris.c (cris_elf_check_relocs): Likewise.
- * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
- * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
- * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
- * elf32-frv.c (_frvfdpic_check_discarded_relocs): Likewise.
- (elf32_frv_check_relocs): Likewise.
- * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
- * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
- * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
- * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
- * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
- * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
- * elf32-mt.c (mt_elf_check_relocs): Likewise.
- * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
- * elf32-sh.c (sh_elf_check_relocs): Likewise.
- * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
- * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
- * elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
- (score_elf_local_relocation_p): Likewise.
- (_bfd_score_elf_relocate_section): Likewise.
- (score_elf_final_link_relocate): Likewise.
-
-2007-09-26 Jan Beulich <jbeulich@novell.com>
-
- * elf32-i386.c (elf_i386_check_relocs): Revert NULL pointer
- check for R_386_GNU_VTINHERIT.
- * elf-m10300.c (mn10300_elf_check_relocs): Check for NULL
- pointer for R_xxx_GNU_VTENTRY.
- * elf32-arm.c (elf32_arm_check_relocs): Likewise.
- * elf32-bfin.c (bfin_check_relocs): Likewise.
- (bfinfdpic_check_relocs): Likewise.
- * elf32-cris.c (cris_elf_check_relocs): Likewise.
- * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
- * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
- * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
- * elf32-frv.c (elf32_frv_check_relocs): Likewise.
- * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
- * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
- * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
- * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
- * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
- * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
- * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
- * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
- * elf32-s390.c (elf_s390_check_relocs): Likewise.
- * elf32-score.c (_bfd_score_elf_check_relocs): Likewise.
- * elf32-sh.c (sh_elf_check_relocs): Likewise.
- * elf32-v850.c (v850_elf_check_relocs): Likewise.
- * elf32-vax.c (elf_vax_check_relocs): Likewise.
- * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
- * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
- * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
- * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
- * elf64-s390.c (elf_s390_check_relocs): Likewise.
- * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
- * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
- * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
- * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
-
-2007-09-26 Alan Modra <amodra@bigpond.net.au>
-
- * elflink.c (set_symbol_value): Add isymbuf and locsymcount
- params. Change symidx to a size_t. Don't access past end
- of symbol buffer.
- (resolve_symbol): Add isymbuf param and use instead of
- finfo->internal_syms.
- (eval_symbol, evaluate_complex_relocation_symbols): Likewise.
- (elf_link_input_bfd): Don't read symbols specially for
- evaluate_complex_relocation_symbols.
-
-2007-09-26 Tristan Gingold <gingold@adacore.com>
-
- * som.c (som_get_reloc_upper_bound): If there are no relocs return
- enough space to hold a NULL pointer.
-
-2007-09-26 Alan Modra <amodra@bigpond.net.au>
-
- * elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
-
-2007-09-25 Alan Modra <amodra@bigpond.net.au>
-
- * elf32-spu.c (struct spu_link_hash_table): Add ovly_load_r_symndx.
- (spu_elf_size_stubs): Count stub relocs.
- (write_one_stub): Emit relocs on overlay call stubs.
-
- * elf32-spu.c (struct spu_link_hash_table): Add "stubs".
- (spu_elf_link_hash_table_create): Init new field.
- (spu_elf_size_stubs): Store sorted stub syms in new htab field
- rather than local var.
- (spu_elf_build_stubs): Iterate over htab stubs rather than
- hash traversal.
- (struct stubarr): Delete.
- (allocate_spuear_stubs, populate_stubs, write_one_stub): Adjust.
-
-2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
-
- * elf.c (assign_file_positions_for_load_sections): Trust
- p_align_valid.
- (copy_elf_program_header): Copy PT_NULL segments.
-
-2007-09-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
-
- * elf32-spu.c (is_indirect_branch): New function.
- (find_function_stack_adjust): End scan on hitting indirect branch.
- (sum_stack): Cast %v arg to correct type.
-
-2007-09-21 H.J. Lu <hongjiu.lu@intel.com>
-
- * Makefile.am: Run "make dep-am".
- * Makefile.in: Regenerated.
-
-2007-09-21 Doug Kwan <dougkwan@google.com>
-
- * Makefile.am (BFD32_LIBS): Add arange-set.lo.
- (BFD32_LIBS_CFILES): Add arange-set.c.
- (SOURCE_HFILES): Add arange-set.h
- (dwarf2.lo): Add dependency upon arange-set.h.
- (arange-set.lo): New target.
- * Makefile.in: Regenerate.
- * arange-set.c: New file.
- * arange-set.h: New file.
- * dwarf2.c: Include arange-set.h.
- (struct dwarf2_debug) Add new fields comp_unit_count and
- comp_unit_arange_set.
- (struct comp_unit) Replace field arange with a new field arange_set.
- (dwarf2_arange_set_allocate, dwarf2_arange_set_deallocate,
- dwarf2_combine_arange_value, dwarf2_arange_set_new,
- dwarf2_arange_set_with_value_new, dwarf2_comp_unit_arange_add): New
- functions to utilize arange set in dwarf2.c.
- (arange_add): Formatting change for a line longer than 80 characters.
- (decode_line_info): Replace call target arange_add with
- dwarf2_comp_unit_arange_add.
- (read_rangelist_insert_arange_list,
- read_rangelist_comp_unit_arange_add): New functions used as callbacks
- for read_rangelist.
- (read_rangelist): Change interface to accept a callback and data to
- allow caller to select the action peformed on a new range list read.
- (scan_unit_for_symbols): Use new interface of read_rangelist.
- (parse_comp_unit): Create an arange set for each new comp unit. Use new
- interface of read_rangelist. Replace call to arange_add with that to
- dwarf2_comp_unit_arange_add.
- (comp_unit_contains_address): Replace sequential search with a call to
- arange_set_lookup_address, which can handles large set efficiently.
- (stash_copy_local_aranges, stash_maybe_enable_arange_set,
- stash_find_nearest_line_fast): New functions maintaining and using a
- valued global arange set for all compilation units to speed up
- bfd_dwarf2_find_nearest_line.
- (find_line): Use global arange set. Replace sequential search over all
- compilation units with a call to stash_find_nearest_line_fast. Add
- book keeping to count number of compilation units. Replace empty
- arange list test with a call to arange_set_empty_p.
-
-2007-09-21 Olivier Hainque <hainque@adacore.com>
- Tristan Gingold <gingold@adacore.com>
-
- * syms.c (_bfd_stab_section_find_nearest_line): Look at the
- specific SOM sections for stabs if the regular ones are not found.
- * som.h (struct somdata): Add a line_info field, to be used by
- som_find_nearest_line.
- * som.c (som_find_nearest_line): Implement using the bfd stabs
- function above.
-
-2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
-
- * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make sure .got
- will be output.
-
-2007-09-19 Alan Modra <amodra@bigpond.net.au>
- Doug Kwan <dougkwan@google.com>
-
- * bfd-in.h (bfd_hash_insert): Declare.
- * bfd-in2.h: Regenerate.
- * hash.c (bfd_hash_insert): New function. Split out from..
- (bfd_hash_lookup): ..here.
- * merge.c (sec_merge_hash_lookup): Use bfd_hash_insert.
-
-2007-09-18 Alan Modra <amodra@bigpond.net.au>
-
- * elf.c (bfd_section_from_shdr): Check bfd_alloc return.
- (elfcore_write_note): Check realloc return.
- * elflink.c (_bfd_elf_link_find_version_dependencies): Check
- bfd_zalloc return.
- (_bfd_elf_link_assign_sym_version): Check bfd_malloc return.
- (elf_link_add_object_symbols): Likewise.
- (struct hash_codes_info): New.
- (elf_collect_hash_codes): Return bfd_malloc error.
- (struct collect_gnu_hash_codes): Add "error".
- (elf_collect_gnu_hash_codes): Return bfd_malloc error.
- (bfd_elf_size_dynamic_sections): Check return status of
- _bfd_elf_link_find_version_dependencies.
- (bfd_elf_size_dynsym_hash_dynstr): Adjust for elf_collect_hash_codes
- and elf_collect_gnu_hash_codes changes.
- (elf_sym_name_compare): Formatting.
- (elf_fixup_link_order): Use bfd_malloc, not xmalloc.
-
-2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/3281
- PR binutils/5037
- * elf-bfd.h (elf_obj_tdata): Remove relro.
-
- * elf.c (get_program_header_size): Check info->relro instead
- of elf_tdata (abfd)->relro.
- (_bfd_elf_map_sections_to_segments): Likewise.
- (assign_file_positions_for_load_sections): Don't set
- PT_GNU_RELRO segment alignment here.
- (assign_file_positions_for_non_load_sections): Properly set up
- PT_GNU_RELRO segment for copying executable/shared library.
- (rewrite_elf_program_header): Remove PT_GNU_RELRO segment.
- (copy_elf_program_header): Set p_size and p_size_valid fields for
- PT_GNU_RELRO segment.
-
-2007-09-17 Nick Clifton <nickc@redhat.com>
-
- * po/fi.po: New Finnish translation.
- * po/es.po: Updated Spanish translation.
- * configure.in (ALL_LINGUAS): Add fi.
- * configure: Regenerate.
- * po/bfd.pot: Regenerate.
-
-2007-09-15 Nick Clifton <nickc@redhat.com>
-
- * bfd.c (_bfd_default_error_handler): fflush stdout.
-
-2007-09-14 Alan Modra <amodra@bigpond.net.au>
-
- * opncls.c (find_separate_debug_file): Ensure bfd_set_error has
- been called on all error return paths.
- (bfd_fill_in_gnu_debuglink_section): Use bfd_malloc, not malloc.
- Clear padding after filename
-
-2007-09-14 Alan Modra <amodra@bigpond.net.au>
-
- * format.c (bfd_check_format_matches): Record matching targets even
- when "matching" is NULL to allow bfd_associated_vector matches.
- Consolidate error return code. Consolidate ok return code. Always
- restore original target and format on error.
-
-2007-09-14 Alan Modra <amodra@bigpond.net.au>
-
- * configure.in: Delete BFD_HOST_LONG_LONG and bfd checks for
- long long. Partly revert 2007-07-12 change, so that
- BFD_HOST_64BIT_LONG and BFD_HOST_64BIT_LONG_LONG are set
- independent of "void *" size.
- * configure: Regenerate.
- * config.in: Regenerate.
- * Makefile.in: Regenerate.
-
-2007-09-12 Alan Modra <amodra@bigpond.net.au>
-
- * elf-bfd.h (struct elf_backend_data): Delete elf_backend_sprintf_vma
- and elf_backend_fprintf_vma.
- (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
- * elf.c (_bfd_elf_sprintf_vma, _bfd_elf_fprintf_vma): Delete.
- * elfxx-target.h (elf_backend_sprintf_vma): Don't define.
- (elf_backend_fprintf_vma): Likewise.
- (elfNN_bed): Don't init removed fields.
- * bfd.c (is32bit): New function.
- (bfd_sprintf_vma, bfd_fprintf_vma): Use the above.
-
-2007-09-11 Nathan Sidwell <nathan@codesourcery.com>
-
- * archures.c: Add bfd_mach_mcf_isa_c_nodiv,
- bfd_mach_mcf_isa_c_nodiv_mac & bfd_mach_mcf_isa_c_nodiv_emac.
- * ieee.c (ieee_write_processor): Update coldfire architecture
- list.
- * bfd-in2.h: Rebuilt.
- * cpu-m68k.c (arch_info_struct): Add isa_c nodiv architectures.
- (m68k_arch_features): Likewise.
- * elf32-m68k.c (elf32_m68k_object_p): Add EF_M68K_CF_ISA_C_NODIV.
- (elf32_m68k_print_private_bfd_data): Likewise.
-
-2007-09-11 Jan Beulich <jbeulich@novell.com>
-
- * elf64-i386.c (elf64_i386_tls_transition): Remove redundant 'const'.
- * elf64-x86_64.c (elf64_x86_64_tls_transition): Likewise.
-
-2007-09-08 Alan Modra <amodra@bigpond.net.au>
-
- * elf64-ppc.c (func_desc_adjust): When resolving undefined
- references to dot-symbols, transfer def_regular and
- def_dynamic from the descriptor symbol.
-
-2007-09-08 Alan Modra <amodra@bigpond.net.au>
-
- * config.bfd: Set want64 for spu-*-elf.
-
-2007-09-08 Alan Modra <amodra@bigpond.net.au>
-
- PR ld/2864, ld/5006
- * elf.c (special_sections): Comment typo.
- (elf_fake_sections): Force SHT_PROGBITS for sections that are
- SHT_NOBITS if BFD section flags say they have contents.
-
-2007-09-04 Michael Snyder <msnyder@access-company.com>
-
- * elf32-bfin.c (howto_table): Cut and paste error?
- Name field of reloc is wrong.
-
-2007-09-04 Alan Modra <amodra@bigpond.net.au>
-
- * elf32-spu.c (elf_howto_table): Formatting.
-
-2007-09-02 H.J. Lu <hongjiu.lu@intel.com>
-
- PR ld/4986
- * dwarf2.c (new_line_sorts_after): Undo the last change.
- (add_line_info): Only keep the last entry with the same address
- and end sequence.
-
-2007-08-31 H.J. Lu <hongjiu.lu@intel.com>
-
- PR ld/4986
- * dwarf2.c (new_line_sorts_after): Also compare line number.
-
-2007-08-31 Jesse Michael <jmichael@suse.de>
-
- * mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non
- zerofill sections.
-
-2007-08-28 David Heine <dlheine@tensilica.com>
-
- * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
- narrowing instructions.
-
-2007-08-28 Mark Shinwell <shinwell@codesourcery.com>
- Joseph Myers <joseph@codesourcery.com>
-
- * elf32-arm.c (elf32_arm_compare_mapping): Compare first on vma,
- then on type.
-
-2007-08-28 Robert Sebastian Gerus <arachnist@gmail.com>
-
- * config.bfd: Add support for i[3-7]86-*-dragonfly*.
- * configure.in: Likewise.
- * configure: Regenerate.
-
-2007-08-25 Ulrich Weigand <uweigand@de.ibm.com>
- Alan Modra <amodra@bigpond.net.au>
-
- * elf.c (elfcore_grok_spu_note): New function.
- (elf_parse_notes): Call it.
-
-2007-08-24 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf64-x86-64.c (elf64_x86_64_relocate_section): Adjust
- indentation.
-
-2007-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
-
- * elf.c (elfcore_grok_win32pstatus): Remove HAVE_WIN32_PSTATUS_T
- guard. Make it host independent.
- (elfcore_grok_note): Remove HAVE_WIN32_PSTATUS_T guard around
- NT_WIN32PSTATUS.
-
-2007-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * elf-bfd.h (struct elf_obj_tdata): New BUILD_ID_SIZE, BUILD_ID.
- * elf.c (elfcore_read_notes): Split to ...
- (elf_read_notes) ... here ...
- (elf_parse_notes): ... and here. Check `bfd_get_format (abfd)' with
- the former subfunctions called only for BFD_CORE.
- Call ELFOBJ_GROK_GNU_NOTE for BFD_OBJECT files with the owner "GNU".
- (_bfd_elf_make_section_from_shdr): Call ELF_PARSE_NOTES for SHT_NOTEs.
- (bfd_section_from_phdr): Update the call for renamed ELFCORE_READ_NOTES.
- (elfobj_grok_gnu_build_id, elfobj_grok_gnu_note): New functions.
- Code advisory: Roland McGrath
-
-2007-08-24 Daniel Jacobowitz <dan@codesourcery.com>
-
- * elf64-mips.c (elf_backend_sign_extend_vma): Define.
-
-2007-08-24 Alan Modra <amodra@bigpond.net.au>
-
- * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Warning fix.
-
-2007-08-23 H.J. Lu <hongjiu.lu@intel.com>
-
- * Makefile.am: Run "make dep-am".
- * Makefile.in: Regenerated.
-
-2007-08-23 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf32-i386.c: Include "bfd_stdint.h".
- (elf_i386_rtype_to_howto): New function.
- (elf_i386_info_to_howto_rel): Use it.
- (x86_64_opcode16): New union type.
- (elf_i386_check_tls_transition): New function.
- (elf_i386_tls_transition): Updated to check transition and
- issue an error if a transition isn't supported.
- (elf_i386_check_relocs): Return FALSE if
- elf_i386_tls_transition returns FALSE.
- (elf_i386_gc_sweep_hook): Likewise.
- (elf_i386_relocate_section): Likewise. Remove BFD_ASSERT
- on TLS transitions.
-
- * elf64-x86-64.c: Include "bfd_stdint.h".
- (x86_64_opcode16): New union type.
- (x86_64_opcode32): Likewise.
- (elf64_x86_64_check_tls_transition): New function.
- (elf64_x86_64_tls_transition): Updated to check transition and
- issue an error if a transition isn't supported.
- (elf64_x86_64_check_relocs): Return FALSE if
- elf64_x86_64_tls_transition returns FALSE.
- (elf64_x86_64_gc_sweep_hook): Likewise.
- (elf64_x86_64_relocate_section): Likewise. Remove BFD_ASSERT
- on TLS transitions.
-
-2007-08-22 H.J. Lu <hongjiu.lu@intel.com>
-
- * elfxx-ia64.c: Convert to ISO C90 prototypes.
- (elfNN_hpux_backend_section_from_bfd_section): Make it static.
-
-2007-08-22 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf64-x86-64.c: Remove trailing whitespace.
- * elfxx-ia64.c: Likewise.
-
-2007-08-21 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf32-i386.c (elf_i386_tls_transition): Accept a pointer
- to ELF hash entry instead of an integer for local test.
- (elf_i386_check_relocs): Updated.
- (elf_i386_gc_sweep_hook): Likewise.
- (elf_i386_relocate_section): Likewise.
-
- * elf64-x86-64.c (elf64_x86_64_tls_transition): Accept a
- pointer to ELF hash entry instead of an integer for local
- test.
- (elf64_x86_64_check_relocs): Updated.
- (elf64_x86_64_gc_sweep_hook): Likewise.
- (elf64_x86_64_relocate_section): Likewise.
-
-2007-08-20 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf32-i386.c (elf_i386_tls_transition): Break long line.
- * elf64-x86-64.c (elf64_x86_64_tls_transition): Likewise.
-
-2007-08-20 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * elfxx-target.h [ELF_COMMONPAGESIZE && ELF_MAXPAGESIZE]
- (ELF_MINPAGESIZE): Fixed its size guess. Sanity checked its size.
- (ELF_COMMONPAGESIZE, ELF_MAXPAGESIZE): Sanity checked their size.
-
-2007-08-20 Nick Clifton <nickc@redhat.com>
-
- * elflink.c (elf_fixup_link_order): Rewrite conversion of
- s->alignment_power into an offset mask in order to avoid a gcc
- error message.
-
-2007-08-17 Jakub Jelinek <jakub@redhat.com>
-
- * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*.
- Change sparc64-*-linux-* to sparc64*-*-linux-*.
-
-2007-08-17 Alan Modra <amodra@bigpond.net.au>
-
- * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
-
-2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf.c: Revert last change.
-
-2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR.
- (bfd_section_from_phdr): Likewise.
- (get_program_header_size): Likewise. Add a PT_GNU_ATTR segment
- if there is an attribute section.
- (_bfd_elf_map_sections_to_segments): Likewise.
- (IS_SECTION_IN_INPUT_SEGMENT): Likewise.
-
-2007-08-14 H.J. Lu <hongjiu.lu@intel.com>
-
- PR ld/4918
- * elf32-i386.c (elf_i386_relocate_section): Allow R_386_PC32
- on ___tls_get_addr for GD->LE/LD->LE transitions when not
- building shared library.
-
- * elf64-x86-64.c (elf64_x86_64_relocate_section): Allow
- R_X86_64_PC32 on __tls_get_addr for GD->LE/LD->LE transitions
- when not building shared library.
-
-2007-08-14 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): LOADBASE is now
- initialized only on the first PT_LOAD. New variable LOADBASE_SET.
- Removed PF_R checking for IA-64 vDSOs as redundant now.
- Code advisory: Roland McGrath
-
-2007-08-13 Richard Sandiford <richard@codesourcery.com>
-
- * elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes.
- (mips_elf_record_global_got_symbol): Increment local_gotno for
- each forced-local symbol.
- (_bfd_mips_elf_check_relocs): Pass forced-local call symbols to
- mips_elf_record_global_got_symbol for VxWorks too.
- (_bfd_mips_elf_always_size_sections): Set computed_got_sizes
- to true after computing the GOT size.
- (_bfd_mips_elf_hide_symbol): Increase local_gotno whenever
- got.offset == 1. Only adjust global_gotno if computed_got_sizes.
- For VxWorks, add a local entry when hiding a symbol that needs a
- plt but has not been marked as needing a global got entry.
- (_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to
- false.
-
-2007-08-12 Daniel Jacobowitz <dan@codesourcery.com>
-
- * coffgen.c (coff_get_normalized_symtab): Correct cast.
-
-2007-08-13 Alan Modra <amodra@bigpond.net.au>
-
- * elf.c (elf_modify_segment_map): Add remove_empty_load param.
- Don't remove empty PT_LOAD header if false.
- (_bfd_elf_map_sections_to_segments): If user phdrs, pass false
- to elf_modify_segment_map.
- (assign_file_positions_for_load_sections): Pass false to
- elf_modify_segment_map.
-
-2007-08-13 Alan Modra <amodra@bigpond.net.au>
-
- * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define.
- Update stub comments.
- (build_plt_stub): Build two variants, one without "addis".
- (ppc_build_one_stub): Build stubs without "addis" if possible.
- (ppc_size_one_stub): Size new stubs.
-
-2007-08-11 Richard Sandiford <richard@codesourcery.com>
-
- * config.bfd (sh-*-vxworks): Define targ_underscore to "yes".
-
-2007-08-09 Michael Snyder <msnyder@access-company.com>
-
- * aoutx.h (aout_get_external_symbols): Return if count is zero.
-
-2007-08-09 H.J. Lu <hongjiu.lu@intel.com>
-
- PR ld/4909
- * elf.c (print_segment_map): New function.
- (assign_file_positions_for_load_sections): Call print_segment_map
- when a section can't be allocated in segment.
-
-2007-08-09 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
-
-2007-08-07 Nick Clifton <nickc@redhat.com>
-
- * po/bfd.pot: Updated template.
- * po/BLD-POTFILES.in: Regenerate.
-
-2007-08-07 Alan Modra <amodra@bigpond.net.au>
-
- * elf.c: (_bfd_elf_make_section_from_phdr): Properly handle
- bss segments.
-
-2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
-
- * Makefile.am (BUILD_HFILES): Clean bfd_stdint.h.
- * Makefile.in: Regenerated.
-
-2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
-
- * configure.in: Update version to 2.18.50.
- * configure: Regenerated.
-
-2007-08-06 Paul Brook <paul@codesourcery.com>
-
- * elf32-arm.c (elf32_arm_link_hash_entry): Add
- plt_maybe_thumb_refcount.
- (elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
- (elf32_arm_copy_indirect_symbol): Ditto.
- (elf32_arm_adjust_dynamic_symbol): Ditto.
- (bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
- (arm_add_to_rel): Ditto.
- (elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
- R_ARM_THM_CALL. Handle R_ARM_THM_JUMP19 against a PLT stub.
- (elf32_arm_gc_sweep_hook): Call check_use_blx. Update plt counts
- for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
- (elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
- and R_ARM_THM_JUMP19.
- (allocate_dynrelocs): Use plt_maybe_thumb_refcount.
- (elf32_arm_finish_dynamic_symbol): Ditto.
- (elf32_arm_output_plt_map): Ditto.
-
-2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
-
- * elf.c (rewrite_elf_program_header): Handle sections not sorted
- by address.
- (copy_elf_program_header): Likewise.
-
-2007-08-04 H.J. Lu <hongjiu.lu@intel.com>
-
- * elf-bfd.h (xvec_get_elf_backend_data): Add const.
-
- * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data.
- * elfcore.h (elf_core_file_p): Likewise.
-
-2007-08-02 H.J. Lu <hongjiu.lu@intel.com>
-
- * coffcode.h (ALIGN_SET): Removed.
- (ELIFALIGN_SET): Likewise.
- (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
- IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
- IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
- IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.
-
-2007-08-01 Michael Snyder <msnyder@access-company.com>
-
- * vms-tir.c (new_section): Fix cut and paste error.
-
- * aoutx.h (aout_link_add_symbols): Return if count is zero.
-
- * elf.c (bfd_elf_print_symbol): Macro dereferences pointer, so
- pointer must be non-null.
-
-2007-08-01 Tristan Gingold <gingold@adacore.com>
-
- * coffcode.h (coff_sort_func_alent): New function.
- (coff_slurp_line_table): Sort line table if not already sorted.
-
-2007-08-01 Jakub Jelinek <jakub@redhat.com>
-
- * elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
- GCC 3.4.x warning.
-
-2007-08-01 Alan Modra <amodra@bigpond.net.au>
-
- * aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
- r_type.
- (swap_std_reloc_in): Likewise.
- (aout_link_input_section_std): Likewise. Return with an error
- on unexpected relocation type.
- (aout_link_input_section_ext): Likewise.
-
-2007-08-01 Alan Modra <amodra@bigpond.net.au>
-
- PR4694
- * aoutx.h (final_link): Write a zero in first word of
- stringtab if no symbols rather than corrupting last byte
- of text/data.
-
-2007-07-31 Jakub Jelinek <jakub@redhat.com>
-
- * elf.c (get_program_header_size): Adjacent loadable .note*
- sections need just one PT_NOTE segment.
- (_bfd_elf_map_sections_to_segments): Likewise.
-
-2007-07-30 Michael Snyder <msnyder@access-company.com>
-
- * coffgen.c (_bfd_coff_read_internal_relocs): Revert change of
- 2007-07-26. Buffer still in use, can't be freed.
-
-2007-07-27 Michael Snyder <msnyder@access-company.com>
-
- * cofflink.c (coff_link_add_symbols): Return if count is zero.
-
- * coff-i386.c (coff_i386_rtype_to_howto): Off by one error.
-
- * aoutx.h (slurp_symbol_table): Return if count == 0.
-
- * coffgen.c (_bfd_coff_read_internal_relocs): Return if count is zero.
-
- * elf32-i386.c (elf_i386_check_relocs): Check for null pointer.
-
-2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
-
- * config.bfd (x86_64-*-mingw*): Don't include x86_64coff_vec.
-
-2007-07-26 Michael Snyder <msnyder@access-company.com>
-
- * coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
-
- * linker.c (bfd_section_already_linked_table_insert): Change
- return type from void to boolean. Return FALSE on failure.
- (_bfd_generic_section_already_linked): Test return value of
- bfd_section_already_linked_table_insert, call fatal on error.
-
- * elflink.c (_bfd_elf_section_already_linked): Test return value
- of bfd_section_already_linked_table_insert, call fatal on error.
-
- * libbfd-in.h (bfd_section_already_linked_table_insert): Update
- return type to bfd_boolean.
-
- * libbfd.h: Regenerate.
-
-2007-07-26 Adam Nemet <anemet@caviumnetworks.com>
-
- * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap,
- bfd_slurp_armap): Improve function comment.
-
-2007-07-26 Michael Snyder <msnyder@access-company.com>
-
- * linker.c (already_linked_newfunc): Check for NULL return from
- bfd_hash_allocate.
-
- * coffgen.c (fixup_symbol_value): Guard against null;
- bfd_is_com_section will dereference the section pointer.
-
- * syms.c (bfd_decode_symclass): Guard against NULL, since
- bfd_is_com_section dereferences the pointer.
-
- * srec.c (srec_scan): Check for EOF (critical because return value
- will be used as array index).
-
- * coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
- are not to be cached, free the temporary buffer.
-
- * aoutx.h (slurp_reloc_table): Return TRUE if reloc_size == zero
- or count == zero.
-
- * tekhex.c (first_phase): Check return value for null.
-
- * elf.c (_bfd_elf_get_synthetic_symtab): Remove meaningless
- pointer increment.
-
-2007-07-26 Alan Modra <amodra@bigpond.net.au>
-
- * elflink.c (_bfd_elf_fix_symbol_flags): Remove unnecessary
- check on dynobj. Remove bed shadow.
-
- * srec.c (srec_get_section_contents): Return immediately on
- count zero. Check that offset and count are within section.
- * libbfd.c (_bfd_generic_get_section_contents): Check that
- offset + count does not overflow.
-
- * srec.c (srec_canonicalize_symtab): Don't alloc when symcount
- is zero. Correct return value on error.
- * mmo.c (mmo_canonicalize_symtab): Likewise.
- * binary.c (binary_canonicalize_symtab) Correct return on error.
-
-2007-07-26 Thiemo Seufer <ths@mips.com>
-
- * bfd.c (_bfd_set_gp_value): Use abort instead of BFD_FAIL.
-
-2007-07-26 Alan Modra <amodra@bigpond.net.au>
-
- * reloc.c (bfd_generic_get_relocated_section_contents): Avoid
- bfd_canonicalize_reloc call when bfd_get_reloc_upper_bound
- says there are no relocs.
-
-2007-07-26 Doug Kwan <dougkwan@google.com>
-
- Speed up bfd_dwarf2_find_line.
- * dwarf2.c (struct dwarf2_debug): Add new fields to support function
- and variable info hash tables. Add last_comp_unit, info_hash_count,
- funcinfo_hash_table, varinfo_hash_table, hash_units_head.
- (struct comp_unit): Add prev_unit, cached.
- (struct info_list_node, struct info_hash_entry,
- struct info_hash_table): New.
- (info_hash_table_newfunc, create_info_hash_table,
- insert_info_hash_table, lookup_info_hash_table): New functions
- implementing function and variable info hash tables.
- (scan_unit_for_symbols): Add checks to make sure hash tables are
- consistent with compilation units.
- (comp_unit_maybe_decode_line_info): New function.
- (comp_unit_find_line): Use comp_unit_maybe_decode_line_info.
- (reverse_funcinfo_list, reverse_varinfo_list, comp_unit_hash_info,
- info_hash_lookup_funcinfo, info_hash_lookup_varinfo,
- stash_maybe_update_info_hash_table, stash_verify_info_hash_table,
- stash_maybe_enable_info_hash_tables, stash_find_line_fast): New
- functions. Make use of info hash tables to speed up
- bfd_dwarf2_find_line.
- (find_line): Use hash table for faster lookup if it is turned on.
- Also add code to maintain bi-directional link in comp units.
-
-2007-07-25 Michael Snyder <msnyder@access-company.com>
-
- * coffgen.c (_bfd_coff_get_external_symbols): Nothing to be done
- if size == 0; return and avoid possible null pointer issues.
-
-2007-07-25 Alan Modra <amodra@bigpond.net.au>
-
- * linker.c (generic_link_add_symbol_list): Warning fix.
-
-2007-07-24 Michael Snyder <msnyder@access-company.com>
-
- * opncls.c (bfd_make_writable): Check return from bfd_malloc.
-
- * elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
- on bfd_malloc error rather than goto error_return.
-
-2007-07-24 Alan Modra <amodra@bigpond.net.au>
-
- * elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
- _bfd_elf_merge_sections, _bfd_elf_link_hash_newfunc,
- _bfd_elf_link_hash_copy_indirect, _bfd_elf_link_hash_hide_symbol,
- _bfd_elf_link_hash_table_init, _bfd_elf_link_hash_table_create,
- bfd_elf_set_dt_needed_name, bfd_elf_get_dyn_lib_class,
- bfd_elf_set_dyn_lib_class, bfd_elf_get_needed_list,
- bfd_elf_get_runpath_list, bfd_elf_get_dt_soname,
- bfd_elf_get_bfd_needed_list, struct elf_symbuf_symbol,
- struct elf_symbuf_head, struct elf_symbol, elf_sort_elf_symbol,
- elf_sym_name_compare, elf_create_symbuf,
- bfd_elf_match_symbols_in_sections,
- _bfd_elf_match_sections_by_type): Move to here..
- * elf.c: ..from here.
-
-2007-07-23 Richard Sandiford <richard@codesourcery.com>
-
- * elflink.c (_bfd_elf_fix_symbol_flags): Only assert the type
- of weakdef->root.type if weakdef has no regular definition.
-
-2007-07-22 Adam Nemet <anemet@caviumnetworks.com>
-
- * elfxx-mips.c (struct mips_elf_link_hash_table): Add new field
- small_data_overflow_reported.
- (_bfd_mips_elf_link_hash_table_create): Initialize it.
- (_bfd_mips_elf_relocate_section) <bfd_reloc_overflow>: Report
- small-data section overflow.
-
-2007-07-19 Doug Kwan <dougkwan@google.com>
-
- PR binutils/4797
- * dwarf2.c: (find_line) Do not dereference functionname_ptr if
- do_line is true.
-
-2007-07-18 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
- non-ELF sections.
-
-2007-07-18 Bob Wilson <bob.wilson@acm.org>
-
- * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
- vma and size for dynamic tags from the output sections.
-
-2007-07-18 Alan Modra <amodra@bigpond.net.au>
-
- * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
- * elf.c (bfd_section_from_r_symndx): Don't cache bfd section of
- symbol. Instead cache ELF section index. Remove redundant
- checks of st_shndx.
-
-2007-07-15 Mike Frysinger <vapier@gentoo.org>
-
- * trad-core.c (NBPG): If not defined, set to getpagesize().
-
-2007-07-13 Roland McGrath <roland@redhat.com>
-
- * elf-bfd.h (struct elf_obj_tdata): Revert last change.
- Add after_write_object_contents, after_write_object_contents_info.
- * elf.c (_bfd_elf_write_object_contents): Revert last change.
- Instead, call after_write_object_contents if set.
-
-2007-07-12 Kai Tietz <kai.tietz@onevision.com>
-
- * bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
- (BFD_HOSTPTR_T): Host pointer type for casting a
- pointer to an integer type.
- (bfd_hostptr_t): The typedef of BFD_HOSTPTR_T.
- (sprintf_vma, fprintf_vma): Add support for long long prints.
- * bfd-in2.h: Regenerate.
- * configure.in: (BFD_HOST_64BIT_LONG_LONG): New.
- (BFD_HOSTPTR_T): Host pointer type for casting a
- pointer to an integer type. Default is "unsigned long".
- (AC_CHECK_SIZEOF(void *)): New.
- (host64): Set it if the pointer size is 8.
- * configure: Regenerate.
- * config.in: Add macro SIZEOF_VOID_P.
- * coffcode.h: Replace host ptr type assuming "long" with
- bfd_hostptr_t type.
- * coffgen.c: Likewise.
- * elf-eh-frame.c: Likewise.
- * peicode.h: Likewise.
-
-2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
-
- * Makefile.in: Regenerated.
-
-2007-07-10 H.J. Lu <hongjiu.lu@intel.com>
-
- PR binutils/4756
- * simple.c (bfd_simple_get_relocated_section_content): Don't
- apply relocation on executable and shared library.
-
-2007-07-10 Nathan Sidwell <nathan@codesourcery.com>
-
- * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate
- copy relocs on vxworks.
-
-2007-07-10 Alan Modra <amodra@bigpond.net.au>
-
- * elf32-arm.c (elf32_arm_size_info): Init checksum_contents field.
- * elf64-alpha.c (alpha_elf_size_info): Likewise.
- * elf64-hppa.c (hppa64_elf_size_info): Likewise.
- * elf64-mips.c (mips_elf64_size_info): Likewise.
- * elf64-s390.c (s390_elf64_size_info): Likewise.
- * elf64-sparc.c (elf64_sparc_size_info): Likewise.
-
-2007-07-09 H.J. Lu <hongjiu.lu@intel.com>
-
- * elflink.c (bfd_elf_record_link_assignment): Handle indirect
- symbol.
- (_bfd_elf_merge_symbol): Properly update normal symbol when
- overriding the versioned symbol from a dynamic library.
-
-2007-07-09 Roland McGrath <roland@redhat.com>
-
- * elf-bfd.h (struct elf_obj_tdata): Add members
- emit_note_gnu_build_id and note_gnu_build_id_sec.
- * elf.c (_bfd_id_note_section_size): New global function.
- (read_hex, _bfd_elf_write_build_id_section): New static functions.
- (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
- if emit_note_gnu_build_id is set.
- * Makefile.am (elf.lo): Update dependencies.
-
- * elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
- (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
- * elfcode.h (elf_checksum_contents): New macro and function.
- (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
-
-2007-07-06 Michael Snyder <msnyder@access-company.com>
-
- * elflink.c (elf_link_add_object_symbols): Return via
- error_free_vers on "notice" failure.
-
-2007-07-04 H.J. Lu <hongjiu.lu@intel.com>
-
- * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
- if arch is unknown.
-
-2007-07-04 Nick Clifton <nickc@redhat.com>
-
- Import this patch from an internal tree:
-
- 2001-07-17 Richard Henderson <rth@redhat.com>
-
- * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly
- compensate for high bit set in R_MEP_LOW16.
-
-2007-07-03 Joseph Myers <joseph@codesourcery.com>
-
- * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from
- input attributes if value has been copied.
-
-2007-07-03 Nick Clifton <nickc@redhat.com>
-
- * COPYING: Replace with GPLv3 text.
- * aix386-core.c: Update copyright notice to refer to GPLv3.
- * aix5ppc-core.c, aout0.c, aout32.c, aout64.c, aout-adobe.c,
- aout-arm.c, aout-cris.c, aoutf1.h, aout-ns32k.c, aout-sparcle.c,
- aout-target.h, aout-tic30.c, aoutx.h, archive64.c, archive.c,
- archures.c, armnetbsd.c, bfd.c, bfd-in.h, bfdio.c, bfdwin.c,
- binary.c, bout.c, cache.c, cf-i386lynx.c, cf-sparclynx.c,
- cisco-core.c, coff64-rs6000.c, coff-alpha.c, coff-apollo.c,
- coff-arm.c, coff-aux.c, coffcode.h, coffgen.c, coff-go32.c,
- coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, coff-i960.c,
- coff-ia64.c, cofflink.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
- coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
- coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
- coff-svm68k.c, coffswap.h, coff-tic30.c, coff-tic4x.c,
- coff-tic54x.c, coff-tic80.c, coff-u68k.c, coff-w65.c,
- coff-we32k.c, coff-x86_64.c, coff-z80.c, coff-z8k.c, corefile.c,
- cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, cpu-bfin.c,
- cpu-cr16.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
- cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
- cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
- cpu-i960.c, cpu-ia64.c, cpu-ia64-opc.c, cpu-ip2k.c, cpu-iq2000.c,
- cpu-m10200.c, cpu-m10300.c, cpu-m32c.c, cpu-m32r.c, cpu-m68hc11.c,
- cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
- cpu-mep.c, cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-mt.c,
- cpu-ns32k.c, cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c,
- cpu-powerpc.c, cpu-rs6000.c, cpu-s390.c, cpu-score.c, cpu-sh.c,
- cpu-sparc.c, cpu-spu.c, cpu-tic30.c, cpu-tic4x.c, cpu-tic54x.c,
- cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, cpu-we32k.c,
- cpu-xc16x.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z80.c, cpu-z8k.c,
- demo64.c, doc/chew.c, dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c,
- ecoffswap.h, efi-app-ia32.c, efi-app-ia64.c, efi-app-x86_64.c,
- elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
- elf32-avr.h, elf32-bfin.c, elf32.c, elf32-cr16.c, elf32-cr16c.c,
- elf32-cris.c, elf32-crx.c, elf32-d10v.c, elf32-d30v.c,
- elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
- elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
- elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
- elf32-iq2000.c, elf32-m32c.c, elf32-m32r.c, elf32-m68hc11.c,
- elf32-m68hc12.c, elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c,
- elf32-m88k.c, elf32-mcore.c, elf32-mep.c, elf32-mips.c,
- elf32-msp430.c, elf32-mt.c, elf32-openrisc.c, elf32-or32.c,
- elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, elf32-score.c,
- elf32-sh64.c, elf32-sh64-com.c, elf32-sh64.h, elf32-sh.c,
- elf32-sh-symbian.c, elf32-sparc.c, elf32-spu.c, elf32-spu.h,
- elf32-v850.c, elf32-vax.c, elf32-xc16x.c, elf32-xstormy16.c,
- elf32-xtensa.c, elf64-alpha.c, elf64.c, elf64-gen.c, elf64-hppa.c,
- elf64-hppa.h, elf64-mips.c, elf64-mmix.c, elf64-ppc.c,
- elf64-ppc.h, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
- elf64-x86-64.c, elf-attrs.c, elf-bfd.h, elf.c, elfcode.h,
- elfcore.h, elf-eh-frame.c, elf-hppa.h, elflink.c, elf-m10200.c,
- elf-m10300.c, elfn32-mips.c, elf-strtab.c, elf-vxworks.c,
- elf-vxworks.h, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
- elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, epoc-pe-arm.c,
- epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, genlink.h,
- hash.c, host-aout.c, hosts/alphavms.h, hp300bsd.c, hp300hpux.c,
- hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
- i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
- i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
- libaout.h, libbfd.c, libbfd-in.h, libcoff-in.h, libecoff.h,
- libhppa.h, libieee.h, libnlm.h, liboasys.h, libpei.h, libxcoff.h,
- linker.c, lynx-core.c, m68k4knetbsd.c, m68klinux.c, m68knetbsd.c,
- m88kmach3.c, m88kopenbsd.c, mach-o.c, mach-o.h, mach-o-target.c,
- mep-relocs.pl, merge.c, mipsbsd.c, mmo.c, netbsd-core.c, netbsd.h,
- newsos3.c, nlm32-alpha.c, nlm32.c, nlm32-i386.c, nlm32-ppc.c,
- nlm32-sparc.c, nlm64.c, nlm.c, nlmcode.h, nlmswap.h, nlm-target.h,
- ns32k.h, ns32knetbsd.c, oasys.c, opncls.c, osf-core.c,
- pc532-mach.c, pdp11.c, pe-arm.c, pe-arm-wince.c, pef.c, pef.h,
- pef-traceback.h, pe-i386.c, pei-arm.c, pei-arm-wince.c, peicode.h,
- pei-i386.c, pei-mcore.c, pei-mips.c, pei-ppc.c, pei-sh.c,
- pei-x86_64.c, pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c,
- pe-x86_64.c, peXXigen.c, ppcboot.c, ptrace-core.c, reloc16.c,
- reloc.c, riscix.c, rs6000-core.c, sco5-core.c, section.c,
- simple.c, som.c, som.h, sparclinux.c, sparclynx.c, sparcnetbsd.c,
- srec.c, stabs.c, stab-syms.c, stamp-h.in, sunos.c, syms.c,
- sysdep.h, targets.c, targmatch.sed, tekhex.c, ticoff.h,
- trad-core.c, vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c,
- vms.c, vms-gsd.c, vms.h, vms-hdr.c, vms-misc.c, vms-tir.c,
- xcofflink.c, xcoff-target.h, xsym.c, xsym.h, xtensa-isa.c,
- xtensa-modules.c: Likewise.
- * elf32-sh-relocs.h: Add copyright notice.
- * hosts/alphalinux.h, hosts/decstation.h, hosts/delta68.h,
- hosts/dpx2.h, hosts/hp300bsd.h, hosts/i386bsd.h,
- hosts/i386linux.h, hosts/i386mach3.h, hosts/i386sco.h,
- hosts/i860mach3.h, hosts/m68kaux.h, hosts/m68klinux.h,
- hosts/m88kmach3.h, hosts/mipsbsd.h, hosts/mipsmach3.h,
- hosts/news.h, hosts/news-mips.h, hosts/pc532mach.h,
- hosts/riscos.h, hosts/symmetry.h, hosts/tahoe.h, hosts/vaxbsd.h,
- hosts/vaxlinux.h, hosts/vaxult2.h, hosts/vaxult.h: Likewise.
- * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
-
-2007-07-02 Joseph Myers <joseph@codesourcery.com>
-
- * elfxx-mips.c (mips_elf_calculate_relocation): Handle
- R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
- * elf64-mips.c (mips_elf64_howto_table_rela): Support
- R_MIPS_TLS_DTPREL64.
-
-2007-07-02 Alan Modra <amodra@bigpond.net.au>
-
- * Makefile.am: Run "make dep-am".
- * Makefile.in: Regenerate.
- * aclocal.m4: Regenerate.
- * config.in: Regenerate.
- * po/SRC-POTFILES.in: Regenerate.
- * po/bfd.pot: Regenerate.
-
-2007-07-02 Alan Modra <amodra@bigpond.net.au>
-
- * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
- symsec != NULL tests.
-
-2007-07-02 Alan Modra <amodra@bigpond.net.au>
-
- PR 4712
- * elf.c (assign_file_positions_for_load_sections): Adjust lma
- by p_vaddr_offset.
-
-2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
-
- * aclocal.m4: Regenerated.
- * Makefile.in: Likewise.
-
-2007-06-29 Joseph Myers <joseph@codesourcery.com>
-
- * elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
- (ppc_elf_merge_private_bfd_data): Call it.
-
-2007-06-29 Joseph Myers <joseph@codesourcery.com>
-
- * elfxx-mips.c (mips_elf_merge_obj_attributes): New.
- (_bfd_mips_elf_merge_private_bfd_data): Call it.
-
-2007-06-29 Joseph Myers <joseph@codesourcery.com>
-
- * elf-attrs.c: New.
- * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
- (BFD32_BACKENDS_CFILES): Add elf-attrs.c.
- (elf-attrs.lo): Generate dependencies.
- * Makefile.in: Regenerate.
- * configure.in (elf): Add elf-attrs.lo.
- * configure: Regenerate.
- * elf-bfd.h (struct elf_backend_data): Add entries for object
- attributes.
- (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
- OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
- Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
- New.
- (struct elf_obj_tdata): Add entries for object attributes.
- (elf_known_obj_attributes, elf_other_obj_attributes,
- elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
- New.
- (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
- bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
- bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
- bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
- bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
- _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
- _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
- * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
- (bfd_section_from_shdr): Handle attributes sections.
- * elflink.c (bfd_elf_final_link): Handle attributes sections.
- * elfxx-target.h (elf_backend_obj_attrs_vendor,
- elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
- elf_backend_obj_attrs_section_type): New.
- (elfNN_bed): Update.
- * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
- aeabi_attribute_list): Remove.
- (struct elf32_arm_obj_tdata): Remove object attributes fields.
- (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
- elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
- Update for new object attributes interfaces.
- (uleb128_size, is_default_attr, eabi_attr_size,
- elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
- elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
- elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
- elf32_arm_add_eabi_attr_int, attr_strdup,
- elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
- copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
- to generic code in elf-attrs.c.
- (elf32_arm_obj_attrs_arg_type): New.
- (elf32_arm_fake_sections): Do not handle .ARM.attributes.
- (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
- (bfd_elf32_bfd_final_link): Remove.
- (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
- elf_backend_obj_attrs_arg_type,
- elf_backend_obj_attrs_section_type): New.
- * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
- attributes.
- * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
- * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
- * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
- * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
- * elf32-sh.c (sh_elf_copy_private_data): Likewise.
- * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
-
-2007-06-29 Paul Brook <paul@codesourcery.com>
-
- * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
- call veneers for call relocations against undefined symbols.
- (elf32_arm_final_link_relocate): Turn call to undefined symbol
- into a jump to the next instruction.
-
-2007-06-29 Michael Snyder <msnyder@access-company.com>
-
- * bfd.c (bfd_demangle): Plug memory leak (Coverity).
-
-2007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
-
- * Makefile.am: Add cr16 related entry
- * Makefile.in: Regenerate
- * archures.c: Add bfd_cr16_arch
- * bfd-in2.h: Regenerate
- * config.bfd: Add cr16-elf
- * configure.in: Add bfd_elf32_cr16_vec
- * configure: Regenerate.
- * targets.c: Added cr16 related information
- * cpu-cr16.c: New file.
- * elf32-cr16.c: New file.
- * reloc.c: Added cr16 relocs.
-
-2007-06-29 Alan Modra <amodra@bigpond.net.au>
-
- * elflink.c (_bfd_elf_link_assign_sym_version): Improve error
- message for undefined version nodes.
- (elf_gc_sweep): Don't warn when zero size sections are
- removed.
-
-2007-06-29 Nathan Froyd <froydnj@codesourcery.com>
-
- * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
- types.