aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-02-26 * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_neededgdb_6_8-branchpointAlan Modra2-75/+109
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-26Re-apply this patch which was accidentally deleted:Nick Clifton2-3/+10
2006-05-16 Carlos O'Donell <carlos@codesourcery.com> * doc/binutils.texi: Use "Binutils Index" for index name.
2008-02-26 * breakpoint.c (print_one_breakpoint_location): Revert Enb fieldVladimir Prus12-54/+62
to old format. Discard breakpoint address if shared library is unloaded. (breakpoint_1): Adjust formatting of table header accordingly.
2008-02-26*** empty log message ***gdbadmin1-1/+1
2008-02-25daily updateAlan Modra1-1/+1
2008-02-25(Set Breaks): Revert description of Enb column ofNick Roberts1-8/+5
breakpoint table.
2008-02-25*** empty log message ***Nick Roberts1-0/+5
2008-02-25 * remote.c (remote_get_threadlist): If the responseVladimir Prus2-3/+11
is empty, don't try to parse it.
2008-02-25*** empty log message ***gdbadmin1-1/+1
2008-02-24daily updateAlan Modra1-1/+1
2008-02-24*** empty log message ***gdbadmin1-1/+1
2008-02-23daily updateAlan Modra1-1/+1
2008-02-23 Unbreak 'target async'.Vladimir Prus2-4/+11
* serial.c (serial_async): Set the handler function before enabling async mode.
2008-02-23gas/testsuite/H.J. Lu10-141/+304
2008-02-23 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/jump.s: Add tests for far branches. * gas/i386/jump16.s: Likewise. * gas/i386/jump.d: Updated. * gas/i386/jump16.d: Likewise. * gas/i386/x86-64-inval.l: Likewise. * gas/i386/x86-64-inval.s: Add tests for 16-bit near indirect branches. opcodes/ 2008-02-23 H.J. Lu <hongjiu.lu@intel.com> * i386-opc.tbl: Disallow 16-bit near indirect branches for x86-64. * i386-tbl.h: Regenerated.
2008-02-23 * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.Alan Modra2-0/+7
2008-02-23 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): CopyAlan Modra2-23/+74
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-232008-02-22 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-6/+15
PR ld/5788 * elflink.c (elf_create_symbuf): Correct buffer size and position.
2008-02-23*** empty log message ***gdbadmin1-1/+1
2008-02-22 ld/testsuite/Mark Mitchell2-1/+10
* ld-elf/seg.d: Expect .reginfo section on MIPS.
2008-02-22daily updateAlan Modra1-1/+1
2008-02-22 * solib-svr4.c (enable_break): Convert r_brk to a code address.Daniel Jacobowitz2-0/+9
2008-02-22 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELFNick Clifton2-2/+2
targeted ARM ports, otherwise just skip generating the reloc.
2008-02-22* gas/m68hc11/bug-1825.d: Update to match changes in theNick Clifton6-5/+13
information generated with source-in-disassembly listings. * gas/m68hc11/indexed12.d: Likewise. * gas/m68hc11/insns-dwarf2.d: Likewise. * gas/m68hc11/lbranch-dwarf2.d: Likewise.
2008-02-22 PR 868Nick Clifton2-82/+21
*dwarf2.c: Revert previous patch. All of the allocate memory is on an obstack which will be freed at some other time.
2008-02-22 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELFNick Clifton2-0/+7
targeted ARM ports.
2008-02-22 PR ld/5785Nick Clifton2-3/+8
* ldlang.c (lang_size_sections_1): Honour the setting of an lma_region even if there is no vma region set, or the vma region is the same as the lma region.
2008-02-22* objdump.c (display_file_offsets): New variable.Nick Clifton4-5/+57
(long_options): Add -F/--file-offsets. (objdump_print_addr_with_sym): If displaying file offsets, print the offset of the given address. (disassemble_bytes): If displaying file offsets, tell the user how many zeroes are skipped and the file offset of the point where dumping resumes. (disassemble_section): Only display the name of the section if data is going to be dumped from it. (main): Handle new option. Produce error messages if the start or stop addresses do not make sense. * doc/binutils.texi: Document the new feature. * NEWS: Mention the new feature.
2008-02-22*** empty log message ***gdbadmin1-1/+1
2008-02-21daily updateAlan Modra1-1/+1
2008-02-21 * remote.c (extended_remote_attach_1): Set attach_flag.Pedro Alves2-0/+7
(extended_remote_create_inferior_1): Clear attach_flag.
2008-02-21opcodes/Jan Beulich3-9/+16
2008-02-21 Jan Beulich <jbeulich@novell.com> * i386-opc.tbl: Allow Dword for far indirect call. Allow Dword and Fword for far indirect jmp. Allow Reg16 and Word for near indirect jmp on x86-64. Disallow Fword for lcall. * i386-tbl.h: Re-generate.
2008-02-21 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): SetDaniel Jacobowitz4-14/+93
r_brk_offset. (mipsnbsd_lp64_fetch_link_map_offsets): Likewise. * solib-svr4.c (solib_svr4_r_brk): New. (open_symbol_file_object, svr4_current_sos): Always check the debug base. (svr4_fetch_objfile_link_map): Do not set debug_base. (enable_break): Use r_brk if it is set. (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset. (svr4_lp64_fetch_link_map_offsets): Likewise. * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2008-02-21*** empty log message ***gdbadmin1-1/+1
2008-02-20Correct year.H.J. Lu1-1/+1
2008-02-20daily updateAlan Modra1-1/+1
2008-02-20 * ld-auto-import/auto-import.exp: Use $ld to link the dll forNick Clifton2-2/+7
cygwin, not $CC.
2008-02-20PR 868Nick Clifton17-38/+110
* 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-20config:Paolo Bonzini2-3/+7
2008-02-20 Uros Bizjak <ubizjak@gmail.com> * mh-ppc-darwin (BOOT_CFLAGS): Use +=, not =.
2008-02-20PR 868Nick Clifton2-15/+93
* 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-202008-02-20 Markus Deuling <deuling@de.ibm.com>Markus Deuling3-49/+33
Mark Kettenis <kettenis@gnu.org> * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by trad_frame_saved_reg. (trad-frame.h): New include. (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs instead of frame_obstack_zalloc. (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register. * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2008-02-202008-02-20 Paul Brook <paul@codesourcery.com>Paul Brook21-20/+527
ld/ * emultempl/armelf.em (OPTION_FIX_V4BX_INTERWORKING): Define. (PARSE_AND_LIST_LONGOPTS): Add fix-v4bx-interworking. (PARSE_AND_LIST_OPTIONS): Ditto. (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FIX_V4BX_INTERWORKING. * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Add .v4_bx. * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Ditto. * emulparams/armnto.sh (OTHER_TEXT_SECTIONS): Ditto. * ld.texinfo: Document --fix-v4bx-interworking. ld/testsuite/ * ld-arm/armv4-bx.d: New test. * ld-arm/armv4-bx.s: New test. * ld-arm/arm.ld: Add .v4bx. * ld-arm/arm-elf.exp: Add armv4-bx. gas/testsuite/ * gas/arm/thumb.d: Exclude EABI targets. * gas/arm/arch4t.d: Exclude EABI targts. * gas/arm/v4bx.d: New test. * gas/arm/v4bx.s: New test. * gas/arm/thumb-eabi.d: New test. * gas/arm/arch4t-eabi.d: New test. gas/ * config/tc-arm.c (fix_v4bx): New variable. (do_bx): Generate V4BX relocations. (md_assemble): Allow bx on v4 codes when fix_v4bx. (md_apply_fix): Handle BFD_RELOC_ARM_V4BX. (tc_gen_reloc): Ditto. (OPTION_FIX_V4BX): Define. (md_longopts): Add fix-v4bx. (md_parse_option): Handle OPTION_FIX_V4BX. (md_show_usage): Document --fix-v4bx. * doc/c-arm.texi: Document --fix-v4bx. bfd/ * reloc.c: Add BFD_RELOC_ARM_V4BX. * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_V4BX. (ARM_BX_GLUE_SECTION_NAME, ARM_BX_GLUE_SECTION_NAME): Define. (elf32_arm_link_hash_table): Add bx_glue_size and bx_glue_offset. Update comment for fix_v4bx. (elf32_arm_link_hash_table_create): Zero bx_glue_size and bx_glue_offset. (ARM_BX_VENEER_SIZE, armbx1_tst_insn, armbx2_moveq_insn, armbx3_bx_insn): New. (bfd_elf32_arm_allocate_interworking_sections): Allocate BX veneer section. (bfd_elf32_arm_add_glue_sections_to_bfd): Ditto. (bfd_elf32_arm_process_before_allocation): Record BX veneers. (record_arm_bx_glue, elf32_arm_bx_glue): New functions. (elf32_arm_final_link_relocate): Handle BX veneers. (elf32_arm_output_arch_local_syms): Output mapping symbol for .v4_bx. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
2008-02-20 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianessMarkus Deuling4-3/+11
from disassemble_info instead of gdbarch_byte_order. * mips-tdep.c (gdb_print_insn_mips): Likewise. * arm-tdep.c (gdb_print_insn_arm): Likewise.
2008-02-20 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): AddMarkus Deuling10-22/+48
gdbarch as parameter. * gdbarch.{c,h}: Regenerate. * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as parameter. * mem-break.c (default_memory_insert_breakpoint) (default_memory_remove_breakpoint): Likewise. * target.h (default_memory_remove_breakpoint) (default_memory_insert_breakpoint): Likewise. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as parameter. Replace current_gdbarch by gdbarch. * m32r-tdep.c (m32r_memory_insert_breakpoint) (m32r_memory_remove_breakpoint): Likewise.
2008-02-202008-02-20 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini8-721/+1261
PR bootstrap/32009 PR bootstrap/32161 * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here. * configure: Regenerate. * Makefile.def: Define stage_libcflags for all bootstrap stages. * Makefile.tpl (BOOT_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS, STAGE4_LIBCFLAGS): New. (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without $(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET). (BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS. (EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS. (configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags for target modules. Don't export LIBCFLAGS. (all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass $(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. (invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with $(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS). * Makefile.in: Regenerate. config: 2008-02-20 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/32009 * mh-ppc-darwin (BOOT_CFLAGS): Reenable.
2008-02-20*** empty log message ***gdbadmin1-1/+1
2008-02-19daily updateAlan Modra1-1/+1
2008-02-19doc/Pedro Alves4-7/+20
* gdb.texinfo (vAttach, vRun): Remove requirement of the stub killing the inferior when it is already debugging a process. gdbserver/ * server.c (handle_v_requests): When handling the vRun and vAttach packets, if already debugging a process, don't kill it. Return an error instead.
2008-02-19 * MAINTAINERS: Add Vladimir Prus as MI maintainer.Daniel Jacobowitz2-0/+5
2008-02-19 * NEWS: Add entry describing Add support improvements.Joel Brobecker2-0/+15
2008-02-19 PR other/12618Ben Elliston2-1/+7
* testsuite/Makefile.in (mostlyclean): Remove any core file.