*** empty log message ***
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index d629360e93f3e7d522ace86846b82377a5fa1f3c..2589b5ded74c5edcca25037122beae151c053d9a 100644 (file)
@@ -1,3 +1,158 @@
+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
+       * elflink.c (elf_create_symbuf): Correct buffer size and
+       position.
+
+2008-02-22  Nick Clifton  <nickc@redhat.com>
+
+       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
+       * libbfd.c (bfd_realloc_or_free): New function.  Performs like
+       bfd_realloc, but if the (re)allocation fails, the pointer is
+       freed.
+       * libbfd-in.h: Prototype.
+       * libbfd.h: Regenerate.
+       * bfdio.c (bfd_bwrite): Use the new function.
+       (bfd_seek): Likewise.
+       * bfdwin.c:(bfd_get_file_window): Likewise.
+       * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
+       * elf32-ppc.c (ppc_elf_relax_section): Likewise.
+       * elf32-xtensa.c (vsprintf_msg): Likewise.
+       * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
+       * stabs.c (_bfd_link_seciton_stabs): Likewise.
+       * vms-misc.c (_bfd_vms_get_record): Likewise.
+       * vms-tir.c (check_section): Likewise.
+       * vms.c (vms_new_section_hook): Likewise.
+       * elf32-arm.c (elf32_arm_section_map_add): Check that the
+       allocation of sec_data->map succeeded before using it.
+       * elflink.c (elf_link_output_sym): Do not overwrite finfo->
+       symshndxbuf until it is known that the reallocation succeeded.
+
+2008-02-20  Diogo de Carvalho Kraemer  <diogo@kraemer.eng.br>
+           Nick Clifton  <nickc@redhat.com>
+
+       PR 868
+       * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
+       out of memory.
+       (decode_line_info): Free the line_info_table before returning a
+       failure result.
+       (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
+       Free the line table.  Free the function table.  Free the variable
+       table.
+
+2008-02-17  Mark Kettenis  <kettenis@gnu.org>
+
+       * elf.c (swap_out_syms): Avoid preprocessing directive within
+       macro arg.
+
+2008-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * elf.c (assign_file_positions_for_load_sections): Set the type of
+       PT_NOTE sections to SHT_NOTE.
+
+2008-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * simple.c (bfd_simple_get_relocated_section_contents): Set
+       link_info.output_bfd.
+
+2008-02-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * dwarf2.c (find_line): Don't trust debug information after an
+       unparseable compilation unit.
+
+2008-02-15  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 5765
+       * section.c (SEC_LINK_DUPLICATES): Correct.  Renumber following flags.
+       * bfd-in2.h: Regenerate.
+
+2008-02-15  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
+       * elf.c (bfd_elf_allocate_object): Don't check for already allocated
+       tdata.
+       * elf32-hppa.c (elf32_hppa_mkobject): New function.
+       (bfd_elf32_mkobject): Define.
+       * elf32-ppc.c (is_ppc_elf_target): Delete.  Replace all uses with..
+       (is_ppc_elf): ..this new macro.
+       * elf64-ppc.c (is_ppc64_elf_target): Delete.  Replace all uses with..
+       (is_ppc64_elf): ..this new macro.
+
 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
 
        * elflink.c: Replace all accesses to hash->creator field with
        (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.024498 seconds and 4 git commands to generate.