2011-12-13 Chung-Lin Tang <cltang@codesourcery.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 9ae63911a389edd8e1af0bb1d0e9fb85f48a5524..f6f8300f6f4b0112da79c552b7fcc851272e1ce2 100644 (file)
@@ -1,3 +1,298 @@
+2011-12-13  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_calculate_relocation): Correct
+       R_MIPS16_HI16/R_MIPS16_LO16 handling of two cleared lower bits,
+       update comments.
+
+2011-12-12  Iain Sandoe  <iains@gcc.gnu.org>
+
+       * mach-o.c (bfd_mach_o_read_section_32): Null-terminate sectname.
+       (bfd_mach_o_read_section_64): Likewise.
+
+2011-12-11  John Davis Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR binutils/13476
+       * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
+       R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations to
+       R_PARISC_DPREL21L when not doing a shared link.  Likewise convert
+       R_PARISC_TLS_GD14R, R_PARISC_TLS_LDM14R and R_PARISC_TLS_IE14R to
+       R_PARISC_DPREL14R.  Handle R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L
+       and R_PARISC_TLS_IE21L with R_PARISC_DLTIND21L.
+
+2011-12-10  David Daney  <david.daney@cavium.com>
+
+       * elfxx-mips.c (mips_elf_link_hash_table.rld_value): Remove.
+       (mips_elf_link_hash_table.rld_symbol): New field;
+       (MIPS_ELF_RLD_MAP_SIZE): New macro.
+       (_bfd_mips_elf_add_symbol_hook): Remember __rld_obj_head symbol
+       in rld_symbol.
+       (_bfd_mips_elf_create_dynamic_sections): Remember __rld_map symbol
+       in rld_symbol.
+       (_bfd_mips_elf_size_dynamic_sections): Set correct size for .rld_map.
+       (_bfd_mips_elf_finish_dynamic_symbol): Remove .rld_map handling.
+       (_bfd_mips_elf_finish_dynamic_sections): Use rld_symbol to
+       calculate DT_MIPS_RLD_MAP value.
+       (_bfd_mips_elf_link_hash_table_create): Initialize rld_symbol,
+       quit initializing rld_value.
+
+2011-12-08  Andrew Pinski  <apinski@cavium.com>
+            Adam Nemet  <anemet@caviumnetworks.com>
+
+       * archures.c (bfd_mach_mips_octeon2): New macro
+       * bfd-in2.h: Regenerate.
+       * cpu-mips.c (I_mipsocteon2): New enum value.
+       (arch_info_struct): Add bfd_mach_mips_octeon2.
+       * elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2.
+       (mips_set_isa_flags): Add bfd_mach_mips_octeon2.
+       (mips_mach_extensions): Add bfd_mach_mips_octeon2.
+
+2011-12-07  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12772
+       * elflink.c (elf_gc_sweep_symbol): Discard unmarked symbols
+       defined in shared libraries.
+
+2011-12-07  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_canonicalize_symtab): Fix indentation.
+       Adjust the condition.
+       (bfd_mach_o_read_symtab_symbol): Now returns a bfd_boolean.
+       Adjust return statements.
+       (bfd_mach_o_read_symtab_strtab): Likewise.
+       (bfd_mach_o_read_symtab_symbols): Likewise.
+       (bfd_mach_o_scan_start_address): Likewise.  Make it static.
+       (bfd_mach_o_scan): Likewise.
+       (bfd_mach_o_read_dysymtab_symbol): Remove unused function.
+       (bfd_mach_o_header_p): Adjust call.
+       (bfd_mach_o_cpu_name): Make it const.
+       (bfd_mach_o_filetype_name): Likewise.
+       (bfd_mach_o_header_flags_name): Likewise.
+       (bfd_mach_o_section_type_name): Likewise.
+       (bfd_mach_o_section_attribute_name): Likewise.
+       (bfd_mach_o_load_command_name): Likewise.
+       (bfd_mach_o_get_section_type_from_name): Add a const qualifier
+       after above change.
+       (bfd_mach_o_get_section_attribute_from_name): Likewise.
+       * mach-o.h (bfd_mach_o_read_dysymtab_symbol)
+       (bfd_mach_o_scan_start_address, bfd_mach_o_scan): Remove.
+
+2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * elf-bfd.h (elfcore_write_s390_last_break): Add prototype.
+       (elfcore_write_s390_system_call): Likewise.
+       * elf.c (elfcore_write_s390_last_break): New function.
+       (elfcore_write_s390_system_call): Likewise.
+       (elfcore_write_register_note): Call them.
+       (elfcore_grok_s390_last_break): New function.
+       (elfcore_grok_s390_system_call): Likewise.
+       (elfcore_grok_note): Call them.
+
+2011-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_symtab_symbol): Accept indirect symbols.
+
+2011-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
+       (bfd_mach_o_read_dylib): Likewise.
+       (bfd_mach_o_read_command): Likewise.
+       (bfd_mach_o_bfd_print_private_bfd_data): Likewise.
+
+2011-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_read_command): Add the bfd in the error
+       message.
+       (bfd_mach_o_openr_next_archived_file): Use arch name as member name.
+       (bfd_mach_o_fat_extract): Ditto.
+
+2011-12-03  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13468
+       * elflink.c (bfd_elf_final_link): Don't segfault when checking
+       for DT_TEXTREL and .dynamic does not exist.
+
+2011-12-03  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13470
+       * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive
+       change in 2011-07-01 commit.  Comment.
+       * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
+
+2011-12-01  Mikael Pettersson  <mikpe@it.uu.se>
+
+       * elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
+       non-SEC_ALLOC sections break before GOT and PLT accounting.
+
+2011-12-01  Hans-Peter Nilsson  <hp@axis.com>
+
+       * elf32-cris.c (cris_elf_check_relocs) <plt accounting for
+       R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
+       non-SEC_ALLOC sections before GOT and PLT accounting.
+
+2011-11-29  Andrew Pinski  <apinski@cavium.com>
+
+       * archures.c (bfd_mach_mips_octeonp): New macro.
+       * bfd-in2.h: Regenerate.
+       * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
+       (arch_info_struct): Add bfd_mach_mips_octeonp.
+       * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
+       (mips_mach_extensions): Add bfd_mach_mips_octeonp.
+
+2011-11-23  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-lib.c (get_idxlen): Add comments.  Fix type in sizeof.
+       (vms_write_index): Add comments.
+
+2011-11-22  DJ Delorie  <dj@redhat.com>
+
+       * elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
+       avoid using the special non-swapping target when not explicitly
+       requested.
+
+2011-11-22  Daniel Calcoen  <Daniel.Calcoen@cern.ch>
+
+       * elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
+
+2011-11-22  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_print_symbol): Display COM for common
+       symbols.  Print section name in brackets.
+
+2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
+
+       * config.bfd: Add vectors for powerpc and powerpc64-freebsd.
+       * configure.in (TDEFINES): Add rules for powerpc*-freebsd.
+       * configure: Regenerate.
+       * elf32-ppc.c: Add powerpc-freebsd definitions.
+       * elf64-ppc.c: Add powerpc64-freebsd definitions.
+       * targets.c: Add bits for powerpc and powerpc64-freebsd.
+
+2011-11-17  Philipp Thomas  <philipp@thogro.org>
+
+       * elf32-arm.c (elf32_thumb_to_arm_stub): Sync message so that it
+       needs to be translated only once.
+
+2011-11-16  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elf64-mips.c (mips_elf64_howto_table_rela): Set src_mask to
+       zero throughout.
+       (mips16_elf64_howto_table_rela): Likewise.
+       (micromips_elf64_howto_table_rela): Likewise.
+       * elfn32-mips.c (elf_mips_howto_table_rela): Likewise.
+       (elf_mips16_howto_table_rela): Likewise.
+       (elf_micromips_howto_table_rela): Likewise.
+
+2011-11-15  Alan Modra  <amodra@gmail.com>
+           Andreas Tobler  <andreast@fgznet.ch>
+
+       * elflink.c (_bfd_elf_create_got_section): Replace
+       bfd_make_section_with_flags with bfd_make_section_anyway_with_flags.
+       (_bfd_elf_link_create_dynamic_sections): Likewise.
+       * elf32-ppc.c (ppc_elf_create_glink): Likewise.
+       (ppc_elf_create_dynamic_sections): Likewise.
+
+2011-11-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       * elfxx-mips.c (mips_n64_exec_plt0_entry): Use 64-bit move.
+
+2011-11-08  Nick Clifton  <nickc@redhat.com>
+
+       * elf-m10300.c (mn10300_elf_relax_section): Fix check for an
+       immediate move into an address register.
+
+2011-11-09  Alan Modra  <amodra@gmail.com>
+
+       * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
+       executables when export_dynamic.
+
+2011-11-08  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename
+       ha_relocs_not_using_r2 to unexpected_toc_insn.
+       (ok_lo_toc_insn): New function.
+       (ppc64_elf_edit_toc): Check insn on lo toc reloc.  Emit warning.
+       (ppc64_elf_relocate_section): Don't check insn on lo toc reloc here.
+       Handle addic on lo toc reloc.
+
+2011-11-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR ld/13387
+       * elf32-hppa.c (elf32_hppa_hide_symbol): Make STT_GNU_IFUNC symbol
+       go through PLT.  Reset plt field with init_plt_offset.
+       (elf32_hppa_adjust_dynamic_symbol): Ensure that a PLT slot is
+       allocated for symbols referenced by a plabel.
+
+2011-11-02  DJ Delorie  <dj@redhat.com>
+
+       * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Delete unused
+       variable.
+
+2011-11-02  Jan Beulich  <jbeulich@suse.com>
+
+       * coffgen.c (coff_write_alien_symbol): Make public. Add 'struct
+       internal_syment *' parameter. Extend 'dummy' to an array with two
+       elements. Set n_numaux early. Handle BSF_FILE.
+       (coff_write_symbols): Pass NULL as new third argument to
+       coff_write_alien_symbol().
+       * cofflink.c (_bfd_coff_final_link): Don't use COFF-specific
+       obj_raw_syment_count() on non-COFF input BFD. Insert local symbols
+       from non-COFF input BFDs.
+       * libcoff-in.h (coff_write_alien_symbol): Declare.
+       * libcoff.h (coff_write_alien_symbol): Re-generate.
+
+2011-11-01  DJ Delorie  <dj@redhat.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-rl78.lo.
+       (ALL_MACHINES_CFILES): Add cpu-rl78.c.
+       (BFD32_BACKENDS): Add elf32-rl78.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-rl78.c.
+       (Makefile.in): Regenerate.
+       * archures.c (bfd_architecture): Define bfd_arch_rl78.
+       (bfd_archures_list): Add bfd_rl78_arch.
+       * config.bfd: Add rl78-*-elf.
+       * configure.in: Add bfd_elf32_rl78_vec.
+       * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_RL78_* relocations.
+       * targets.c (bfd_target_vector): Add bfd_elf32_rl78_vec.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * configure: Regenerate.
+       * libbfd.h: Regenerate.
+       * cpu-rl78.c: New file.
+       * elf32-rl78.c: New file.
+
+2011-10-26  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/13049
+       * elf64-ppc.c (STUB_SUFFIX): Revert previous delta.
+       * elf32-hppa.c (STUB_SUFFIX): Likewise.
+
+2011-10-25  Joern Rennecke  <joern.rennecke@embecosm.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo.
+       (ALL_MACHINES_CFILES): Add cpu-epiphany.c.
+       (BFD32_BACKENDS): Add elf32-epiphany.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-epiphany.c.
+       * archures.c (bfd_arch_epiphany): Add.
+       (bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
+       (bfd_epiphany_arch): Declare.
+       (bfd_archures_list): Add &bfd_epiphany_arch.
+       * config.bfd (epiphany-*-elf): New target case.
+       * configure.in (bfd_elf32_epiphany_vec): New target vector case.
+       * reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
+       (BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
+       (BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
+       (BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
+       * targets.c (bfd_elf32_epiphany_vec): Declare.
+       (_bfd_target_vector): Add bfd_elf32_epiphany_vec.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * configure: Regenerate.
+       * libbfd.h: Regenerate.
+       * po/SRC-POTFILES.in: Regenerate.
+       * po/bfd.pot: Regenerate.
+       * cpu-epiphany.c: New file.
+       * elf32-epiphany.c: New file.
+
 2011-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
This page took 0.026161 seconds and 4 git commands to generate.