aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-06-092011-06-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+16
* ia64.h (Elf64_External_VMS_ORIG_DYN_Note): New struct.
2011-06-09Build x32 DSO from x86-64 object file only for native.H.J. Lu2-2/+7
2011-06-08 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/x86-64.exp: Build x32 DSO from x86-64 object file only for native.
2011-06-09Allow building x32 DSO from x86-64 object file.H.J. Lu6-0/+54
bfd/ 2011-06-08 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64 relocations in SEC_DEBUGGING sections when building shared libraries. ld/testsuite/ 2011-06-08 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/simple.c: New. * ld-x86-64/x86-64-x32.rd: Likewise. * ld-x86-64/x86-64.exp: Check building x32 DSO from x86-64 object file.
2011-06-09Check relocations in note sections for --gc-sections.H.J. Lu5-4/+38
bfd/ 2011-06-08 H.J. Lu <hongjiu.lu@intel.com> PR ld/12851 * elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here. (bfd_elf_gc_sections): Also check SHT_NOTE sections. ld/testsuite/ 2011-06-08 H.J. Lu <hongjiu.lu@intel.com> PR ld/12851 * ld-elf/pr12851.d: New. * ld-elf/pr12851.s: Likewise.
2011-06-09 PR gold/12804Cary Coutant2-1/+7
* testsuite/two_file_test_2_v1.cc: Change initialization of v2 to keep it in .data.
2011-06-09*** empty log message ***gdbadmin1-1/+1
2011-06-09daily updateAlan Modra1-1/+1
2011-06-08py-inferior.exp: Make sure local var is allocated on the stack.Joel Brobecker3-2/+12
The testcase, at some point, is trying to change the contents of a string that was defined as follow: char *str = "hello, testsuite"; The problem is that the string is constant, and str is never used to change the contents of the string in the program, so the compiler is free to allocate it in a read-only section. This is what happens on x86-windows, for instance. As a result, trying to change the contents of the string during the `python gdb.inferiors()[0].write_memory (addr, str)' results in the following error: (gdb) python gdb.inferiors()[0].write_memory (addr, str) gdb: write target memory, 5 bytes at 0x00403064 Traceback (most recent call last): File "<string>", line 1, in <module> gdb.MemoryError: Cannot access memory at address 0x403064 Error while executing Python code. This patch prevents this from happening by declaring str as an array rather than a pointer. gdb/testsuite/ChangeLog: * gdb.python/py-inferior.c (f2): Make str an array rather than a pointer. * gdb.python/py-inferior.exp: Adjust testcase accordingly.
2011-06-08ppc sim: Improve invalid option error messageJoel Brobecker2-2/+13
This patch improves the error message when an invalid option is detected, by also printing the option that actually caused the error. For instance, from GDB: (gdb) target sim --hello Invalid option: --hello Usage: [...] We also added the usage after an invalid long-name option (Eg: --hello) to be in line with what's being done for all other invalid options being detected. sim/ppc/ChangeLog: * psim.c (psim_options): Add option that cause the error in invalid-option error messages. Print the usage when detecting an invalid long-name option.
2011-06-08ppc sim: Allow --sysroot command-line optionJoel Brobecker2-0/+8
There was a recent change that cuased the "target sim" command to add a --sysroot option to the argument vector passed down to the simulator. This caused a failure in the powerpc simulator, as it did not recognize it. This patch fixes the problem by adding support for the --sysroot option (it ignores it). sim/ppc/ChangeLog: * psim.c (psim_options): Accept and ignore `--sysroot=...'.
2011-06-08 PR binutils/12855Nick Clifton2-50/+131
* readelf.c (process_version_sections): Handle binaries containing corrupt version information. (process_symbol_table): Stop processing a symbol's version information if it could not be read in. (get_data): Add comment describing the function. (process_section_headers): Set dynamic_strings_length to 0 if the dynamic strings could not be read in. (process_dynamic_section): Likewise. (process_section_groups): Stop processing the group information if the data could not be read in. (hppa_processs_unwind): Assert that there is only one string table in the file. (arm_process_unwind): Likewise. (ia64_process_unwind): Likewise. Set the size of the unwind auxillary information to 0 if the data could not be read. (load_specific_debug_section): Handle a failure to read in the section. (process_mips_specific): Stop display of the PLT GOT section if it could not be read in.
2011-06-082011-06-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-9/+7
* makefile.vms (DEFS): Define OBJDUMP_PRIVATE_VECTORS.
2011-06-082011-06-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-6/+6
* makefile.vms (OBJS): Add elfxx-ia64.obj Remove vax case.
2011-06-08 configure.tgt: Accept any V850 architecture.Nick Clifton2-3/+5
2011-06-08Add a testcase for warning on common symbol in archive.H.J. Lu5-0/+37
2011-06-07 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/elf.exp: Build symbol3.a and symbol3w.a. * ld-elf/symbol3.s: New. * ld-elf/symbol3w.s: Likewise. * ld-elf/warn3.d: Likewise.
2011-06-08 * common.cc (Symbol_table::do_allocate_commons_list): CallCary Coutant10-39/+113
gold_fallback. * errors.cc (Errors::fatal): Adjust call to gold_exit. (Errors::fallback): New function. (gold_fallback): New function. * errors.h (Errors::fallback): New function. * gold.cc (gold_exit): Change status parameter to enum; adjust all callers. (queue_initial_tasks): Call gold_fallback. * gold.h: Include cstdlib. (Exit_status): New enum type. (gold_exit): Change status parameter to enum. (gold_fallback): New function. * layout.cc (Layout::set_section_offsets): Call gold_fallback. (Layout::create_symtab_sections): Likewise. (Layout::create_shdrs): Likewise. * main.cc (main): Adjust call to gold_exit. * output.cc (Output_data_got::add_got_entry): Call gold_fallback. (Output_data_got::add_got_entry_pair): Likewise. (Output_section::add_input_section): Likewise. (Output_section::add_output_section_data): Likewise. (Output_segment::set_section_list_addresses): Likewise. * x86_64.cc (Output_data_plt_x86_64::add_entry): Likewise.
2011-06-08 * layout.cc (Layout::set_segment_offsets): Don't adjust layoutCary Coutant3-5/+9
for incremental links. * output.cc (Output_segment::set_section_list_addresses): Remove FIXME and test for TLS or BSS.
2011-06-08 * testsuite/Makefile.am: Add incremental_copy_test,Cary Coutant6-3/+285
incremental_common_test_1. * testsuite/Makefile.in: Regenerate. * testsuite/common_test_1_v1.c: New source file. * testsuite/common_test_1_v2.c: New source file. * testsuite/copy_test_v1.cc: New source file.
2011-06-08 * common.cc (Symbol_table::do_allocate_commons_list): For incrementalCary Coutant9-46/+200
update, allocate common from bss section's free list. * incremental-dump.cc (dump_incremental_inputs): Print flag for linker-defined symbols. * incremental.cc (Sized_incremental_binary::do_process_got_plt): Skip GOT and PLT entries that are no longer referenced. (Output_section_incremental_inputs::write_info_blocks): Mark linker-defined symbols. (Sized_incr_relobj::do_add_symbols): Process linker-defined symbols. * output.cc (Output_section::allocate): New function. * output.h (Output_section::allocate): New function. * resolve.cc (Symbol_table::report_resolve_problem): Add case for linker-defined symbols. (Symbol::override_base_with_special): Copy is_predefined_ flag. * symtab.cc (Symbol::init_fields): Initialize is_predefined_ flag. (Symbol::init_base_output_data): Likewise. (Symbol::init_base_output_segment): Likewise. (Symbol::init_base_constant): Likewise. (Sized_symbol::init_output_data): Likewise. (Sized_symbol::init_output_segment): Likewise. (Sized_symbol::init_constant): Likewise. (Symbol_table::do_define_in_output_data): Likewise. (Symbol_table::do_define_in_output_segment): Likewise. (Symbol_table::do_define_as_constant): Likewise. * symtab.h (Symbol::is_predefined): New function. (Symbol::init_base_output_data): Add is_predefined parameter. (Symbol::init_base_output_segment): Likewise. (Symbol::init_base_constant): Likewise. (Symbol::is_predefined_): New data member. (Sized_symbol::init_output_data): Add is_predefined parameter. (Sized_symbol::init_output_segment): Likewise. (Sized_symbol::init_constant): Likewise. (enum Symbol_table::Defined): Add INCREMENTAL_BASE.
2011-06-08 * copy-relocs.cc (Copy_relocs::copy_reloc): Call make_copy_relocCary Coutant11-52/+267
instead of emit_copy_reloc. (Copy_relocs::emit_copy_reloc): Refactor. (Copy_relocs::make_copy_reloc): New function. (Copy_relocs::add_copy_reloc): Remove. * copy-relocs.h (Copy_relocs::emit_copy_reloc): Move to public section. (Copy_relocs::make_copy_reloc): New function. (Copy_relocs::add_copy_reloc): Remove. * gold.cc (queue_middle_tasks): Emit old COPY relocations from unchanged input files. * incremental-dump.cc (dump_incremental_inputs): Print "COPY" flag. * incremental.cc (Sized_incremental_binary::do_reserve_layout): Reserve BSS space for COPY relocations. (Sized_incremental_binary::do_emit_copy_relocs): New function. (Output_section_incremental_inputs::write_info_blocks): Record whether a symbol is copied from a shared object. (Sized_incr_dynobj::do_add_symbols): Record COPY relocations. * incremental.h (enum Incremental_shlib_symbol_flags): New type. (INCREMENTAL_SHLIB_SYM_FLAGS_SHIFT): New constant. (Incremental_input_entry_reader::get_output_symbol_index): Add is_copy parameter. (Incremental_binary::emit_copy_relocs): New function. (Incremental_binary::do_emit_copy_relocs): New function. (Sized_incremental_binary::Sized_incremental_binary): Initialize new data member. (Sized_incremental_binary::add_copy_reloc): New function. (Sized_incremental_binary::do_emit_copy_relocs): New function. (Sized_incremental_binary::Copy_reloc): New struct. (Sized_incremental_binary::Copy_relocs): New typedef. (Sized_incremental_binary::copy_relocs_): New data member. * symtab.cc (Symbol_table::add_from_incrobj): Change return type. * symtab.h (Symbol_table::add_from_incrobj): Change return type. * target.h (Sized_target::emit_copy_reloc): New function. * x86_64.cc (Target_x86_64::emit_copy_reloc): New function.
2011-06-08 * cc-with-index.sh: Look for ../../gdb, for fullname.exp.Doug Evans2-0/+4
2011-06-08 * aix386-core.c, * cisco-core.c, * hpux-core.c, * osf-core.c,Alan Modra7-19/+31
* sco5-core.c: Init match_priority field.
2011-06-08 * cc-with-index.sh: Fix typos in comment.Doug Evans2-2/+6
2011-06-08daily updateAlan Modra1-1/+1
2011-06-08*** empty log message ***gdbadmin1-1/+1
2011-06-07 * ldlang.c (lang_one_common): Handle warning symbols.Alan Modra2-0/+7
2011-06-07 * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning andAlan Modra2-3/+8
indirect links here.
2011-06-07 * dwarf.c: Fix conversion to TU number.Cary Coutant2-2/+6
2011-06-07Fix build error on mips-irix (missing match_priority)Joel Brobecker2-0/+5
A new field was recently added to struct bfd_target, and irix-core.c needs an update... bfd/ChangeLog: * irix-core.c (irix_core_vec): Add match_priority field.
2011-06-07gdb/Jan Kratochvil6-4/+78
* cli/cli-cmds.c (shell_escape): Use waitpid. * rs6000-nat.c (exec_one_dummy_insn): Likewise. gdb/testsuite/ * gdb.base/async-shell.c: New file. * gdb.base/async-shell.exp: New file.
2011-06-07 * corefile.c (core_sym_class): Allow for multiple iterations ofNick Clifton2-9/+22
clone clones and subprograms.
2011-06-072011-06-07 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+36
* xcoffread.c (dwarf2_xcoff_names): New variable. (aix_process_linenos): Add a guard. (xcoff_symfile_finish): Free dwarf2. (xcoff_initial_scan): Add dwarf2 support.
2011-06-07daily updateAlan Modra1-1/+1
2011-06-07*** empty log message ***gdbadmin1-1/+1
2011-06-06Regenerate.Alan Modra1-1/+1
2011-06-062011-06-06 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+5
gdb/testsuite/ * gdb.threads/pending-step.exp: Add more context to SIGTRAP match.
2011-06-062011-06-06 Pedro Alves <pedro@codesourcery.com>Pedro Alves8-138/+61
gdb/ * infcall.c (run_inferior_call): Don't mask async. Instead force a synchronous wait, if the target can async. * target.h (struct target_ops): Delete to_async_mask. (target_async_mask): Delete. * target.c (update_current_target): Delete references to to_async_mask. * linux-nat.c (linux_nat_async_mask_value): Delete. (linux_nat_is_async_p, linux_nat_can_async_p): Remove references to linux_nat_async_mask_value. (linux_nat_async_mask): Delete. (linux_nat_async, linux_nat_close): Remove references to linux_nat_async_mask_value. * record.c (record_async_mask_value): Delete. (record_async): Remove references to record_async_mask_value. (record_async_mask): Delete. (record_can_async_p, record_is_async_p): Remove references to record_async_mask_value. (init_record_ops, init_record_core_ops): Remove references to record_async_mask. * remote.c (remote_async_mask_value): Delete. (init_remote_ops): Remove reference to remote_async_mask. (remote_can_async_p, remote_is_async_p): Remove references to remote_async_mask_value. (remote_async): Remove references to remote_async_mask_value. (remote_async_mask): Delete. * infrun.c (fetch_inferior_event): Don't claim registers changed if the current thread is already not executing.
2011-06-06Sync from upstream:Nick Clifton3-13/+19
2011-06-03 Nick Clifton <nickc@redhat.com> Ben Elliston <bje@gnu.org> * config.sub (v850e1, v850es, v850e2, v850e2v3): New. 2011-05-30 Chris Metcalf <cmetcalf@tilera.com> Ben Elliston <bje@gnu.org> * config.guess (tile*:Linux:*:*): Use vendor "unknown", not "tilera", for consistency with other architectures. * config.sub (tile*-*, tilegx-*): Use a more general pattern for "tile" to allow matching tilepro, tilegx32 and other variants.
2011-06-06 * targets.c (bfd_target): Make ar_max_namelen an unsigned char.Alan Modra52-124/+192
Add match_priority. * configure.in: Bump bfd version. * elfcode.h (elf_object_p): Delete hacks preventing match of EM_NONE and ELFOSABI_NONE targets when a better match exists. * elfxx-target.h (elf_match_priority): Define and use. * format.c (bfd_check_format_matches): Use target match_priority to choose best of multiple matching targets. In cases with multiple matches rerun _bfd_check_format if we don't choose the last match. * aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c, * binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c, * coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c, * coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h, * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c, * mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c, * pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c, * tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c, * vms-lib.c, * xsym.c: Init match_priority field. * configure: Regenerate. * bfd-in2.h: Regenerate.
2011-06-06*** empty log message ***gdbadmin1-1/+1
2011-06-06daily updateAlan Modra1-1/+1
2011-06-05sim: bfin: add missing gitignore fileMike Frysinger1-0/+1
2011-06-05*** empty log message ***gdbadmin1-1/+1
2011-06-05daily updateAlan Modra1-1/+1
2011-06-04Revert the last change on elf_object_p.H.J. Lu2-21/+25
2011-06-04 H.J. Lu <hongjiu.lu@intel.com> PR ld/12842 * elfcode.h (elf_object_p): Revert the last change.
2011-06-04sim: bfin: import testsuiteMike Frysinger816-0/+221152
Now that the common sim testsuite code supports .S and .c files, we can import the Blackfin testsuite. There are about ~800 tests here, so I'm only attaching a compressed patch of them. Other than adding files to sim/testsuite/sim/bfin/, the sim/configure.tgt file was updated to mark Blackfin as having a testsuite, and sim/configure regenerated. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-04sim: bfin: add support for glued SIC interrupt linesMike Frysinger2-25/+71
The BF537 family glues a bunch of peripherals into single interrupt lines that run into the SIC. To model this same behavior in the sim, we need to use the glue-or device, and in order to use that, we need to tweak things a bit in the mach code to allow declaring of these new devices. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-04sim: bfin: push SIC mappings to device treeMike Frysinger3-589/+723
The machs.c file is the best place for holding cpu-specific details, so restructure the way the SIC manages its ports to do just that. Now the SIC's have a standard set of input pins and the different line routing from peripherals is kept in the device tree only. This better models the hardware where the SIC doesn't care about the exact peripheral that is sending it stuff, just which input pin it gets it on. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-04 * archures.c (bfd_arch_get_compatible): If one arch is unknown,Alan Modra3-38/+47
return the other arch. * elfcode.h (elf_object_p): Allow explicit match to generic ELF target.
2011-06-04daily updateAlan Modra1-1/+1