2008-03-07 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index ea813ff50af9f6da7b11cfd1f01121ec7d100b09..73c6a77c3b2d19d59b56077dc6ba42f23b2d5d92 100644 (file)
@@ -1,3 +1,110 @@
+2008-03-07  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and
+       MOVT relocations.
+       (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign
+       extension.
+       (elf32_arm_relocate_section): Handle MOVW and MOVT
+       relocations.  Improve safety check for other weird relocations.
+       (elf32_arm_check_relocs): Only set h->needs_plt for branch/call
+       relocations.
+
+2008-03-03  Bob Wilson  <bob.wilson@acm.org>
+       
+       * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and
+       only compute its value once.
+       
+2008-03-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (struct got_entry): Add "addend" field.
+       (count_stub, build_stub): Use a new stub if relocation addend
+       differs from existing stubs for this symbol.
+       (process_stubs): Deal with addends.
+       (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise.
+
+2008-03-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/5789
+       * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true
+       for hidden and local symbols.
+
+2008-03-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (allocate_dynrelocs): Discard relocs on
+       undefined symbols with internal or hidden visibility.
+       (ppc_elf_relocate_section): Likewise.  Use SYMBOL_CALLS_LOCAL
+       rather than SYMBOL_REFERENCES_LOCAL on branches.  Don't
+       return immediately on dynamic reloc error.
+
+2008-03-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs
+       if emitrelocations.
+       (get_relocs): New function, split out from..
+       (ppc_build_one_stub): ..here.  Add relocs on plt_branch stubs if
+       emitrelocations.  Remove indx temp.
+       (ppc_size_one_stub): Count new stub relocs.
+       (ppc64_elf_size_stubs): Count new glink reloc.
+       (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations.
+       (ppc64_elf_finish_dynamic_sections): Output glink relocs.
+       * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic
+       glink code.
+
+2008-02-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (mark_functions_via_relocs): Don't assume that
+       the "->start" pointer reaches to function origin, so that we
+       can handle functions split over more than two sections.
+       (build_call_tree): Likewise.
+       (pasted_function): Don't attempt to set fun->start back to the
+       function origin, just go back one section.
+
+2008-02-27  Catherine Moore  <clm@codesourcery.com>
+
+       * elf.c ( _bfd_elf_print_private_bfd_data): Call
+       elf_backend_get_target_dtag if defined.
+       * elf32-mips.c (elf_backend_get_target_dtag): Define.
+       * elf64-mips.c: Likewise.
+       * elfn32-mips.c: Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
+       * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
+       * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
+       * elfxx-target.h (elf_backend_get_target_dtag): Add default.
+       (elf_backend_data): Add elf_backend_get_target_dtag.
+
+2008-02-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
+       for R_PPC_REL32 syms.  Don't set non_got_ref on branch reloc syms,
+       and assume branch relocs are not dynamic when non-shared.
+       (readonly_dynrelocs): New function, split out from..
+       (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
+       (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
+       clear non_got_ref..
+       (allocate_dynrelocs): ..and don't set u.def for undefined weak.
+       Do allow dynamic relocs on undefined symbols.
+       (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
+       (ppc_elf_relocate_section): Mirror dynamic reloc changes in
+       check_relocs.
+       (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
+       plt symbols needing pointer_equality_needed.
+
+2008-02-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
+
+2008-02-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
+       pointer_equality_needed.
+       (ppc_elf_check_relocs): Split out non-branch relocs from others
+       that might emit dynamic relocs.  Set pointer_equality_needed
+       for their symbols.  Don't set non_got_ref on branch reloc symbols.
+       (ppc_elf_hash_symbol): New function.
+       (elf_backend_hash_symbol): Define.
+       (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
+       Error if pointer_equality_needed on weak plt symbol.
+
 2008-02-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/5788
@@ -9,7 +116,7 @@
        PR 868
        * dwarf2.c: Revert previous patch.  All of the allocate memory is
        on an obstack which will be freed at some other time.
-       
+
 2008-02-20  Nick Clifton  <nickc@redhat.com>
 
        PR 868
        (elf_s390_check_relocs): Use elf_symtab_hdr.
        (elf_s390_gc_sweep_hook): Likewise.
        (elf_s390_size_dynamic_sections): Likewise.
-       (elf_s390_relocate_section): Likewise.   
+       (elf_s390_relocate_section): Likewise.
        * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
        (is_sh_elf): New macro.  Checks a BFD to make sure that is an SH
        ELF bfd.
        (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
        being processed.
        (elf_s390_size_dynamic_sections): Likewise.
-       (elf_s390_relocate_section): Likewise.   
+       (elf_s390_relocate_section): Likewise.
        (elf_s390_check_relocs): Use elf_symtab_hdr.
        (elf_s390_gc_sweep_hook): Likewise.
        (elf_s390_size_dynamic_sections): Likewise.
        (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
        (_bfd_sparc_elf_gc_sweep_hook): Likewise.
        (_bfd_sparc_elf_size_dynamic_sections): Likewise.
-       (_bfd_sparc_elf_relocate_section): Likewise. 
+       (_bfd_sparc_elf_relocate_section): Likewise.
 
 2008-02-12  Alan Modra  <amodra@bigpond.net.au>
 
        Adjust initialisations relating to _ovly_buf_table.
 
 2008-02-04  Bob Wilson  <bob.wilson@acm.org>
-       
+
        * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
        relocation, do not continue processing it.  Ignore R_XTENSA_ASM_EXPAND
        relocations against dynamic symbols.
        (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
        .xt.lit section.
-       
+
 2008-02-04  Kai Tietz  <kai.tietz@onevision.com>
            H.J. Lu  <hongjiu.lu@intel.com>
 
This page took 0.024554 seconds and 4 git commands to generate.