* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 06b8335d6b3cd93b0b273099319da04f006cfd19..b2608ad22cdfb2497304ba0608df905c62fbf70c 100644 (file)
@@ -1,3 +1,174 @@
+2010-08-25  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
+       headers if any loaded section wraps the address space.  Simplify
+       ~(m-1) to -m.  Use lma rather than vma when determining whether
+       note sections are adjacent.
+
+2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/11933
+       * elflink.c (elf_link_add_object_symbols): Don't check relocation
+       if input ELF object ID doesn't match output.
+
+2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * configure: Regenerate.
+
+2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * merge.c (sec_merge_emit): Revert the last checkin.
+
+2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
+       BFD.
+
+2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
+       options unless an m68k hash table has been found.
+
+2010-08-20  Nick Clifton  <nickc@redhat.com>
+
+       * merge.c (sec_merge_emit): Do not zero pad sections that do not
+       have an alignment.
+
+2010-08-18  Pedro Alves  <pedro@codesourcery.com>
+
+       PR corefile/8210
+
+       * bfd-in2.h: Regenerate.
+       * corefile.c (bfd_core_file_pid): New.
+
+       * targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
+       (struct bfd_target) <_core_file_pid>: New.
+
+       * libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
+       * libbfd.c (_bfd_nocore_core_file_pid): New.
+
+       * elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
+       Declare.
+       * elfcode.h (elf_core_file_pid): New define.
+       * elfcore.h (elf_core_file_pid): New function.
+
+       * elf.c (elfcore_make_pid): Rewrite.
+       (elfcore_grok_prstatus): Only set core_pid if not set yet.
+       (elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
+       getting the lwpid from prstat.pr_pid.
+
+       * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       (elf64_x86_64_grok_psinfo): Extract the the main process's PID,
+       and store it in elf_tdata's core_pid field.
+       * elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       (elf_i386_grok_psinfo): Extract the the main process's PID, and
+       store it in elf_tdata's core_pid field.
+
+       * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
+       to elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
+       to elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
+       to elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       * elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
+       elf_tdata's core_lwpid instead of to core_pid.
+       
+       * plugin.c (bfd_plugin_core_file_pid): New function.
+       * aout-target.h (MY_core_file_pid): Define.
+       * aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
+       * coff-rs6000.c (coff_core_file_pid): New define.
+       (rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
+       * coff64-rs6000.c (coff_core_file_pid): New define.
+       (rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
+       (xcoff64_core_file_pid): New define.
+       (aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
+       * mach-o-target.c (bfd_mach_o_core_file_pid): New define.
+       * aix386-core.c (aix386_core_file_pid): New define.
+       * hppabsd-core.c (hppabsd_core_core_file_pid): New define.
+       * hpux-core.c (hpux_core_core_file_pid): New define.
+       * irix-core.c (irix_core_core_file_pid): New define.
+       * lynx-core.c (lynx_core_file_pid): New define.
+       * osf-core.c (osf_core_core_file_pid): New define.
+       * ptrace-core.c (ptrace_unix_core_file_pid): New define.
+       * sco5-core.c (sco5_core_file_pid): New define.
+       * xcoff-target.h (coff_core_file_pid): New define.
+       * netbsd-core.c (netbsd_core_core_file_pid): New define.
+
+2010-08-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/11913
+       * elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
+        .got.plt section is discarded.
+        * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
+
+2010-08-13  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
+       variant.
+
+2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/11909
+       * Makefile.am (coff-tic4x.lo): New.  Disable -Werror.
+       (coff-tic54x.lo): Likewise.
+       * Makefile.in: Regenerated.
+
+2010-08-12  Todd Veldhuizen  <todd.veldhuizen@logicblox.com>
+
+       PR ld/11843
+       * elflink.c (compute_bucket_count): Avoid futile long searches for
+       the best bucket size.
+
+2010-08-09  Richard Henderson  <rth@redhat.com>
+
+       PR ld/11891
+       * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
+       to tlshi/lo until pos0 and pos1 are adjacent.  Use the destination
+       register from the tldgd insn.
+
+2010-08-09  Catherine Moore  <clm@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_perform_relocation): Improve
+       interlinking error message.
+
+2010-08-06  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
+       (ppc64_elf_relocate_section): Nop out high part insn of large toc
+       code sequence when the high part of offset is zero.
+
+2010-08-04  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
+       (alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
+       Clear the SEC_RELOC flag.
+
 2010-08-04  Tristan Gingold  <gingold@adacore.com>
 
        * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
This page took 0.024408 seconds and 4 git commands to generate.