+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.