X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2FChangeLog;h=1b54ff76e84619fb66861f36f7e2ea35e1a1160b;hb=625af618e73144b15dcb1ff188ce91439ec4bd5b;hp=d629360e93f3e7d522ace86846b82377a5fa1f3c;hpb=f13a99db51c0ca487f4a0a41b14dc255d386c4ff;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d629360e93..1b54ff76e8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,122 @@ +2008-02-26 Alan Modra + + * 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 + + * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change. + +2008-02-23 Alan Modra + + * 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 + + PR ld/5788 + * elflink.c (elf_create_symbuf): Correct buffer size and + position. + +2008-02-22 Nick Clifton + + 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 + + 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 + Nick Clifton + + 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 + + * elf.c (swap_out_syms): Avoid preprocessing directive within + macro arg. + +2008-02-17 Jan Kratochvil + + * elf.c (assign_file_positions_for_load_sections): Set the type of + PT_NOTE sections to SHT_NOTE. + +2008-02-17 Ulrich Weigand + + * simple.c (bfd_simple_get_relocated_section_contents): Set + link_info.output_bfd. + +2008-02-16 Nathan Sidwell + + * dwarf2.c (find_line): Don't trust debug information after an + unparseable compilation unit. + +2008-02-15 Alan Modra + + PR 5765 + * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags. + * bfd-in2.h: Regenerate. + +2008-02-15 Alan Modra + + * 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 * elflink.c: Replace all accesses to hash->creator field with @@ -138,7 +257,7 @@ (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. @@ -194,7 +313,7 @@ (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. @@ -220,7 +339,7 @@ (_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 @@ -256,13 +375,13 @@ Adjust initialisations relating to _ovly_buf_table. 2008-02-04 Bob Wilson - + * 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 H.J. Lu