aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-08-102009-08-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-21/+17
* solib-darwin.c (find_program_interpreter): Simplify the code by looking up for the load_dylinker command instead of reading the corresponding (but deprecated) section. (darwin_solib_create_inferior_hook): Adjust: do not free the interpreter path.
2009-08-102009-08-10 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+153
* i386-darwin-tdep.c (i386_m128_p): New function. (i386_darwin_arg_type_alignment): Ditto. (i386_darwin_push_dummy_call): Ditto. (i386_darwin_init_abi): Define Darwin specific push_dummy_call. Adjust long_double size. Adjust pc offset in setjump buffer.
2009-08-10 PR 10474Alan Modra18-174/+197
* ldemul.c (after_allocation_default): Run lang_relax_sections. * ldlang.h (lang_relax_sections): Declare. * ldlang.c (relax_sections): Delete. (lang_relax_sections): New function. (lang_process): Don't relax directly from here. * emultempl/alphaelf.em (alpha_finish): Call finish_default. * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body.. (gld${EMULATION_NAME}_finish): ..to here. Move existing code.. (gld${EMULATION_NAME}_after_allocation): ..to here. New function. (LDEMUL_AFTER_ALLOCATION): Update. * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete. (avr_elf_after_allocation): New function. (LDEMUL_AFTER_ALLOCATION): Define. * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call lang_relax_sections. * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move.. (gld${EMULATION_NAME}_after_allocation): ..code to here. New function. (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update. * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move.. (gld${EMULATION_NAME}_after_allocation): ..code to here. New function. (LDEMUL_FINISH): Delete. (LDEMUL_AFTER_ALLOCATION): Define. * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move.. (gld${EMULATION_NAME}_after_allocation): ..to here. New function. (LDEMUL_FINISH): Delete. (LDEMUL_AFTER_ALLOCATION): Define. * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move.. (m68hc11elf_after_allocation): ..to here. New function. (LDEMUL_FINISH): Delete. (LDEMUL_AFTER_ALLOCATION): Define. * emultempl/m68kelf.em (m68k_elf_after_allocation): Call gld${EMULATION_NAME}_after_allocation. * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call gld${EMULATION_NAME}_after_allocation. * emultempl/mmo.em (mmo_finish): Delete. Move body.. (gld${EMULATION_NAME}_after_allocation): ..to here. New function. (LDEMUL_FINISH): Define. * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp. (gld${EMULATION_NAME}_finish): Move code sizing sections.. (gld${EMULATION_NAME}_after_allocation): ..to here. * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation): Call gld${EMULATION_NAME}_after_allocation. * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete bfd_elf_discard_info and map_segments call.
2009-08-10 * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.Alan Modra2-1/+6
2009-08-10 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear pltAlan Modra3-14/+33
info for STT_GNU_IFUNC. * elf32-ppc.c (ppc_elf_check_relocs): Count a needed plt entry on got refs in case the symbol turns out to be ifunc. (ppc_elf_gc_sweep_hook): Similarly. (ppc_elf_adjust_dynamic_symbol): Adjust assertion. (allocate_dynrelocs): Don't specially allocate got relocs for ifunc. (ppc_elf_size_dynamic_sections): Likewise. (ppc_elf_relocate_section): Likewise.
2009-08-102009-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu2-0/+1308
Add Linux AMD64 process record support. * amd64-linux-tdep.c (amd64_linux_record_tdep): New variable. This struct has the argument for the function "record_linux_system_call". (amd64_linux_syscall_record): New function. Parse the system call instruction and call function "record_linux_system_call" to record execute log. (i386_linux_init_abi): Initialize "amd64_linux_record_tdep". Set "amd64_linux_syscall_record" to "i386_syscall_record".
2009-08-102009-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu4-1117/+1509
Add process record Linux system call 64 bits support. * linux-record.h (linux_record_tdep): Add size_pointer, size_size_t, size_iovec and arg6. Change the values of size_int, size_long and size_ulong to gdbarch_int_bit (gdbarch) / TARGET_CHAR_BIT, gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT, gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT. * i386-linux-tdep.c (i386_linux_init_abi): Ditto. (i386_linux_intx80_sysenter_record): Add a check for system call number. * linux-record.c (record_linux_system_call): Make this function support 64 bits.
2009-08-102009-08-10 Hui Zhu <teawater@gmail.com>Hui Zhu4-659/+858
Add AMD64 process record instruction set support. * i386-tdep.h (gdbarch_tdep): Add record_regmap for registers because the AMD64's registers order in GDB is not same with I386 instructions. Add i386_syscall_record to be the syscall function handle interface. (record_i386_regnum): Number for record_regmap. * i386-tdep.c (OT_QUAD): For 64 bits. (i386_record_s): Add rex_x, rex_b, rip_offset and popl_esp_hack for AMD64 instruction set. And regmap for record_regmap. (i386_record_lea_modrm_addr): Support AMD64 instruction set 64 bits lea. (i386_record_lea_modrm): Ditto. (i386_record_push): New function. Record the execution log of push. (I386_RECORD_ARCH_LIST_ADD_REG): New macro to record the register. (i386_process_record): Support AMD64 instruction set. * amd64-tdep.c (amd64_record_regmap): For record_regmap. (amd64_init_abi): Set amd64_record_regmap to record_regmap.
2009-08-10Revert the previous change.Doug Kwan2-1/+6
http://sourceware.org/ml/binutils-cvs/2009-08/msg00043.html
2009-08-10*** empty log message ***gdbadmin1-1/+1
2009-08-10daily updateAlan Modra1-1/+1
2009-08-09bfd/Bernd Schmidt6-152/+190
From Mike Frysinger <michael.frysinger@analog.com> * elf32-bfin.c (bfin_howto_table, bfin_reloc_map, bfin_check_relocs, bfin_final_link_relocate, bfin_relocate_section, bfin_gc_sweep_hook, _bfinfdpic_emit_got_relocs_plt_entries, bfinfdpic_relocate_section, bfinfdpic_gc_sweep_hook, bfinfdpic_check_relocs, bfin_finish_dynamic_symbol, bfd_bfin_elf32_create_embedded_relocs): Adjust to match the renamed reloc definitions. gas/testsuite/ From Mike Frysinger <michael.frysinger@analog.com> * gas/bfin/reloc.d: Adjust for the renamed relocations. include/elf/ From Mike Frysinger <michael.frysinger@analog.com> * bfin.h (R_BFIN_UNUSED, R_BFIN_PCREL5M2, R_BFIN_UNUSED1, R_BFIN_PCREL10, R_BFIN_PCREL12_JUMP, R_BFIN_RIMM16, R_BFIN_LUIMM16, R_BFIN_HUIMM16, R_BFIN_PCREL12_JUMP_S, R_BFIN_PCREL24_JUMP_X, R_BFIN_PCREL24, R_BFIN_UNUSEDB, R_BFIN_UNUSEDC, R_BFIN_PCREL24_JUMP_L, R_BFIN_PCREL24_CALL_X, R_BFIN_VAR_EQ_SYMB, R_BFIN_BYTE_DATA, R_BFIN_BYTE2_DATA, R_BFIN_BYTE4_DATA, R_BFIN_PCREL11, R_BFIN_PUSH, R_BFIN_CONST, R_BFIN_ADD, R_BFIN_SUB, R_BFIN_MULT, R_BFIN_DIV, R_BFIN_MOD, R_BFIN_LSHIFT, R_BFIN_RSHIFT, R_BFIN_AND, R_BFIN_OR, R_BFIN_XOR, R_BFIN_LAND, R_BFIN_LOR, R_BFIN_LEN, R_BFIN_NEG, R_BFIN_COMP, R_BFIN_PAGE, R_BFIN_HWPAGE, R_BFIN_ADDR, R_BFIN_PLTPLC, R_BFIN_GOT, R_BFIN_MAX): Renamed from R_unused0, R_pcrel5ms, R_unused1, R_pcrel10, R_pcrel12_jump, R_rimm16, R_luimm16, R_huimm16, R_pcrel12_jump_s, R_pcrel24_jump_x, R_pcrel24, R_unusedb, R_unusedc, R_pcrel24_jump_l, R_pcrel24_call_x, R_var_eq_symb, R_byte_data, R_byte2_data, R_byte4_data, R_pcrel11, R_push, R_const, R_add, R_sub, R_mult, R_div, R_mod, R_lshift, R_rshift, R_and, R_or, R_xor, R_land, R_lor, R_len, R_neg, R_comp, R_page, R_hwpage, R_addr, R_pltpc, R_got.
2009-08-09Add EM_resnnn, new EM_ entries, change EM_MICROBLAZE.Michael Eager2-8/+61
2009-08-09*** empty log message ***gdbadmin1-1/+1
2009-08-09daily updateAlan Modra1-1/+1
2009-08-08 * bfd-target.c (struct target_bfd_data): New.Pedro Alves2-14/+41
(target_bfd_xfer_partial): Adjust to get at the section table from the new structure. (target_bfd_get_section_table): Ditto. (target_bfd_xclose): Ditto. Get the bfd pointer from the target_bfd_data structure, from the section table. (target_bfd_reopen): Store a struct target_bfd_data in the target_ops to_data field, instead of a target_section_table.
2009-08-082009-08-08 Aleksandar Ristovski <aristovski@qnx.com>Hui Zhu2-1/+5
Hui Zhu <teawater@gmail.com> * record.c (record_store_registers): Remove unused variable.
2009-08-08 PR 10494Alan Modra2-18/+7
* elf.c (_bfd_elf_make_section_from_shdr): When setting up section LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers.
2009-08-08*** empty log message ***gdbadmin1-1/+1
2009-08-08daily updateAlan Modra1-1/+1
2009-08-07gdbTom Tromey4-3/+68
* language.c (set_language_command): Strip whitespace. (set_type_command): Likewise. (set_range_command): Likewise. gdb/testsuite * gdb.base/setshow.exp: Add tests for changes to set language, set check range, and set check type.
2009-08-07 PR gdb/8869:Tom Tromey4-107/+181
* language.c (language_completer): New function. (range_or_type_completer): New function. (case_completer): New function. (_initialize_language): Set completers. * cli/cli-decode.c (add_setshow_string_cmd): Return the "set" command. (add_setshow_string_noescape_cmd): Likewise. (add_setshow_integer_cmd): Likewise. (add_setshow_uinteger_cmd): Likewise. (add_setshow_zinteger_cmd): Likewise. (add_setshow_zuinteger_cmd): Likewise. * command.h (add_setshow_string_cmd, add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd, add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
2009-08-07 binutils/testsuite/Daniel Jacobowitz2-27/+31
* binutils-all/testranges.s: Use %progbits. Use ";#" for comments.
2009-08-07 gas/Daniel Jacobowitz5-19/+32
* config/tc-arm.c (marked_pr_dependency, mapstate): Delete global variables. (mapping_state): Use the section's mapstate. (mapping_state_2): Likewise. Skip special sections. (s_arm_unwind_fnend): Use the section's marked_pr_dependency. (arm_elf_change_section): Do not set deleted globals. * config/tc-arm.h (struct arm_segment_info_type): Document marked_pr_dependency. gas/testsuite/ * gas/arm/mapping2.s: Test code after .ident.
2009-08-07*** empty log message ***Sriraman Tallam2-1/+5
2009-08-07*** empty log message ***Sriraman Tallam6-11/+111
2009-08-07 * elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strictTom Tromey2-2/+8
aliasing error.
2009-08-07Mention MicroBlaze.Michael Eager2-0/+6
2009-08-07missed from last commitAlan Modra1-0/+74
2009-08-07*** empty log message ***gdbadmin1-1/+1
2009-08-07daily updateAlan Modra1-1/+1
2009-08-062009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-2/+16
gold/10400 * dwarf2-frame.c (qsort_fde_cmp): Use stable sort.
2009-08-062009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-56/+185
* dwarf2-frame.c (struct dwarf2_cie): Remove 'next'. (struct dwarf2_cie_table): New. (struct dwarf2_fde): Remove 'next'. (struct dwarf2_fde_table): New. (struct comp_unit): Remove 'cie'. (bsearch_cie_cmp, bsearch_fde_cmp): New function. (find_cie, dwarf2_frame_find_fde): Use bsearch. (add_cie, add_fde): Use array instead of linked list. (decode_frame_entry, decode_frame_entry_1): New parameters. (qsort_fde_cmp): New function. (dwarf2_build_frame_info): Adjust.
2009-08-06(Server Prefix): Explain that server prefix suppressesNick Roberts1-3/+8
confirmation request.
2009-08-06*** empty log message ***Nick Roberts1-0/+5
2009-08-06 * configure.ac: Add Microblaze target.Nick Clifton3-0/+11
* configure: Regenerate.
2009-08-06 Add support for Xilinx MicroBlaze processor.Nick Clifton55-27/+7428
* bfd/Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}. * bfd/Makefile.in: Same. * bfd/archures.c: Add bfd_arch_microblaze. * bfd/bfd-in2.h: Regenerate. * bfd/config.bfd: Add microblaze target. * bfd/configure: Add bfd_elf32_microblaze_vec target. * bfd/configure.in: Same. * bfd/cpu-microblaze.c: New. * bfd/elf32-microblaze.c: New. * bfd/libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc(). * bfd/libbfd.h: Regenerate. * bfd/reloc.c: Add MICROBLAZE relocations. * bfd/section.c: Add struct relax_table and relax_count to section. * bfd/targets.c: Add bfd_elf32_microblaze_vec. * binutils/MAINTAINERS: Add self as maintainer. * binutils/readelf.c: Include elf/microblaze.h, add EM_MICROBLAZE & EM_MICROBLAZE_OLD to guess_is_rela(), dump_relocations(), get_machine_name(). * config.sub: Add microblaze target. * configure: Same. * configure.ac: Same. * gas/Makefile.am: add microblaze to CPU_TYPES, config/tc-microblaze.c to TARGET_CPU_CFILES, config/tc-microblaze.h to TARGET_CPU_HFILES, add DEP_microblaze_elf target. * gas/Makefile.in: Same. * gas/config/tc-microblaze.c: Add MicroBlaze assembler. * gas/config/tc-microblaze.h: Add header for tc-microblaze.c. * gas/configure: Add microblaze target. * gas/configure.in: Same. * gas/configure.tgt: Same. * gas/doc/Makefile.am: Add c-microblaze.texi to CPU_DOCS. * gas/doc/Makefile.in: Same. * gas/doc/all.texi: Set MICROBLAZE. * gas/doc/as.texinfo: Add MicroBlaze doc links. * gas/doc/c-microblaze.texi: New MicroBlaze docs. * include/dis-asm.h: Decl print_insn_microblaze(). * include/elf/common.h: Define EM_MICROBLAZE & EM_MICROBLAZE_OLD. * include/elf/microblaze.h: New reloc definitions. * ld/Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to ALL_EMULATIONS, targets. * ld/Makefile.in: Same. * ld/configure.tgt: Add microblaze*-linux*, microblaze* targets. * ld/emulparams/elf32mb_linux.sh: New. * ld/emulparams/elf32microblaze.sh. New. * ld/scripttempl/elfmicroblaze.sc: New. * opcodes/Makefile.am: Add microblaze-opc.h to HFILES, microblaze-dis.c to CFILES, microblaze-dis.lo to ALL_MACHINES, targets. * opcodes/Makefile.in: Same. * opcodes/configure: Add bfd_microblaze_arch target. * opcodes/configure.in: Same. * opcodes/disassemble.c: Define ARCH_microblaze, return print_insn_microblaze(). * opcodes/microblaze-dis.c: New MicroBlaze disassembler. * opcodes/microblaze-opc.h: New MicroBlaze opcode definitions. * opcodes/microblaze-opcm.h: New MicroBlaze opcode types.
2009-08-06Correct date.H.J. Lu1-1/+1
2009-08-062009-08-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-0/+21
PR binutils/10492 * binutils-all/objcopy.exp: Run strip-10. * binutils-all/strip-10.d: New. * binutils-all/unique.s: Likewise.
2009-08-06 PR binutils/10492Jakub Jelinek4-3/+12
* elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE symbols. * elf32-mips.c (mips_elf_sym_is_global): Likewise. * elfn32-mips.c (mips_elf_sym_is_global): Likewise.
2009-08-06 bfd/Nathan Sidwell7-0/+74
* elf32-arm.c (elf32_arm_size_stubs): Call layout_sections_again at least once when fixing cortex-a8. ld/testsuite/ * ld-arm/arm-elf.exp: Add new test. * ld-arm/cortex-a8-fix-hdr.d: New. * ld-arm/cortex-a8-fix-hdr.s: New. * ld-arm/cortex-a8-fix-hdr.t: New.
2009-08-06 * score-tdep.c: Support a new Sunplus CT S+core variant, S+core 3.Don Lee6-338/+972
* score-tdep.h: Ditto. * NEWS: Ditto. * configure.tgt: Test do we have a simulator. * MAINTAINERS: Add myself under target score
2009-08-06 * config/tc-arm.c (md_assemble): Call mapping_state from inside aNick Clifton2-2/+11
block in case it is a null macro.
2009-08-06(defaulted_query): Don't ask for confirmation if serverNick Roberts1-2/+2
prefix is used.
2009-08-06*** empty log message ***Nick Roberts1-1/+6
2009-08-06daily updateAlan Modra1-1/+1
2009-08-06*** empty log message ***gdbadmin1-1/+1
2009-08-052009-08-05 Chao-ying Fu <fu@mips.com>Chao-ying Fu4-0/+14
* gas/mips/jal-svr4pic.d, gas/mips/jal-xgot.d, gas/mips/mips-abi32-pic2.d: Add R_MIPS_JALR relocations after jalr.
2009-08-052009-08-05 Chao-ying Fu <fu@mips.com>Chao-ying Fu2-2/+16
* config/tc-mips.c (MIPS_JALR_HINT_P): New define. For IRIX, it is true for new abi. For non-IRIX targets, it is always true. (macro_build_jalr): If MIPS_JALR_HINT_P, emit BFD_RELOC_MIPS_JALR.
2009-08-052009-08-05 Chao-ying Fu <fu@mips.com>Chao-ying Fu3-8/+30
* elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR. * elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL for CPUs. It is true for RM9000. (JALR_TO_BAL_P): New define to transform JALR to BAL. It is true for all CPUs. (mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P to guard the transformation.