aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2010-08-182010-08-18 Pedro Alves <pedro@codesourcery.com>Pedro Alves46-41/+227
PR corefile/8210 bfd/ * 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. gdb/ 2010-08-18 Pedro Alves <pedro@codesourcery.com> PR corefile/8210 gdb/ * corelow.c (add_to_thread_list): Don't use gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid. (get_core_register_section): Don't use gdbarch_core_reg_section_encodes_pid. * gdbarch.sh (core_reg_section_encodes_pid): Delete. * gdbarch.h, gdbarch.c: Regenerate. * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set gdbarch_core_reg_section_encodes_pid. * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2010-08-18daily updateAlan Modra1-1/+1
2010-08-17daily updateAlan Modra1-1/+1
2010-08-16daily updateAlan Modra1-1/+1
2010-08-15daily updateAlan Modra1-1/+1
2010-08-14daily updateAlan Modra1-1/+1
2010-08-13Check if .got.plt section is discarded before using it.H.J. Lu3-0/+21
bfd/ 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. ld/testsuite/ 2010-08-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/11913 * ld-i386/discarded1.d: New. * ld-i386/discarded1.s: Likewise. * ld-i386/discarded1.t: Likewise. * ld-x86-64/discarded1.d: Likewise. * ld-x86-64/discarded1.s: Likewise. * ld-x86-64/discarded1.t: Likewise. * ld-i386/i386.exp: Run discarded1. * ld-x86-64/x86-64.exp: Likewise.
2010-08-13 bfd/Nathan Sidwell2-0/+8
* elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B variant. binutils/ * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B variants.
2010-08-13daily updateAlan Modra1-1/+1
2010-08-12Mention Makefile.in in ChangeLog.H.J. Lu1-0/+1
2010-08-12Disable -Werror on coff-tic4x.lo and coff-tic54x.lo.H.J. Lu3-0/+38
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.
2010-08-12 PR ld/11843Nick Clifton2-0/+12
* elflink.c (compute_bucket_count): Avoid futile long searches for the best bucket size.
2010-08-12daily updateAlan Modra1-1/+1
2010-08-11daily updateAlan Modra1-1/+1
2010-08-10daily updateAlan Modra1-1/+1
2010-08-09 PR ld/11891Richard Henderson2-10/+22
* 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-092010-08-09 Catherine Moore <clm@codesourcery.com>Catherine Moore2-1/+6
* elfxx-mips.c (mips_elf_perform_relocation): Improve interlinking error message. 2010-08-09 Catherine Moore <clm@codesourcery.com> * ld-mips-elf/mode-change-error-1.d: New. * ld-mips-elf/mode-change-error-1a.s: New. * ld-mips-elf/mode-change-error-1b.s: New. * ld-mips-elf/mips-elf.exp: Run new test.
2010-08-09daily updateAlan Modra1-1/+1
2010-08-08daily updateAlan Modra1-1/+1
2010-08-07daily updateAlan Modra1-1/+1
2010-08-06daily updateAlan Modra1-1/+1
2010-08-05 * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.Alan Modra2-10/+61
(ppc64_elf_relocate_section): Nop out high part insn of large toc code sequence when the high part of offset is zero.
2010-08-05daily updateAlan Modra1-1/+1
2010-08-04Add a missing chunk.Tristan Gingold1-0/+2
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+58
* 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-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+21
* vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable sections with relocs. (alpha_vms_add_fixup_lp): Set SEC_RELOC flag. (alpha_vms_add_fixup_ca): Ditto. (alpha_vms_add_fixup_qr): Ditto. Add comments.
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+6
* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make CODE sections writable.
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-16/+14
* vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ... (alpha_vms_add_fixup_lr): ... this for consistency. (alpha_vms_add_qw_fixup): Removed. Fix some comments. (vms_get_symbol_info): Adjust type for unknown sections.
2010-08-042010-08-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-34/+42
* vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute section for any absolute section. Remove some debugging code.
2010-08-04* elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.DJ Delorie2-1/+5
2010-08-04daily updateAlan Modra1-1/+1
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-4/+9
* vms-misc.c (vms_convert_to_var): Make it static. (_bfd_vms_convert_to_var_unix_filename): Make it public.
2010-08-03bfd/Tristan Gingold2-6/+7
2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Update list. gas/ Index: gas/ChangeLog 2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Add Add compress-debug.c.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+6
* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS nor SEC_RELOC for empty sections.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-44/+49
* vms-alpha.c (evax_section_flags): Fix flags for absolute section. Remove useless parenthesis.
2010-08-032010-08-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-3/+8
* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument. (vms_lib_bread, vms_lib_bopen): Adjust.
2010-08-03daily updateAlan Modra1-1/+1
2010-08-02 PR 11866Alan Modra2-1/+7
* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to calculate off_adjust rather than first section vma.
2010-08-02daily updateAlan Modra1-1/+1
2010-08-01daily updateAlan Modra1-1/+1
2010-07-31daily updateAlan Modra1-1/+1
2010-07-30Add ATTRIBUTE_UNUSED to info in compute_bucket_count.H.J. Lu2-1/+5
2010-07-30 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
2010-07-30Add moxie-rtems supportAnthony Green2-1/+5
2010-07-30daily updateAlan Modra1-1/+1
2010-07-29 * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms inAlan Modra2-30/+31
.toc section, even when none are used in relocs.
2010-07-29daily updateAlan Modra1-1/+1
2010-07-28daily updateAlan Modra1-1/+1
2010-07-27 * elfxx-mips.h: Include "elf/mips.h".Maciej W. Rozycki5-6/+23
(gprel16_reloc_p): New static inline function. * elfxx-mips.c (_bfd_mips_elf_check_relocs) [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]: Use got16_reloc_p. (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use gprel16_reloc_p. * elf32-mips.c (mips_info_to_howto_rel): Likewise. * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
2010-07-27Fix up last ChangeLog entry in gas/ and bfd/.Maciej W. Rozycki1-0/+15
2010-07-27 * elf64-mips.c (mips_elf64_howto_table_rela)Maciej W. Rozycki2-20/+20
[R_MIPS_TLS_DTPMOD64]: Clear partial_inplace. [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise. * elfn32-mips.c (elf_mips_howto_table_rela) [R_MIPS_TLS_DTPMOD32]: Likewise. [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.