aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-10-15 PR gas/1491Alan Modra8-89/+99
gas/ * macro.c: Delete unnecessary function declarations. (buffer_and_nest): Support multiple labels per line for LABELS_WITHOUT_COLONS targets if the labels do have colons. (free_macro): Move so that we don't need forward declaration. * read.c (read_a_source_file): Take a copy of macro expansion line before we trim labels. * listing.c (listing_newline): Adjust stdin line save for input_line_pointer still at start of line. gas/testsuite/ * gas/macros/dot.s: Don't start macro invocations is first column. * gas/macros/dot.l: Update. * gas/macros/macros.exp: Run dot test on more targets.
2009-10-152009-10-15 Jim Blandy <jimb@red-bean.com>Tristan Gingold2-12/+39
* libgnuintl.h (_INTL_MAY_RETURN_STRING_ARG, gettext, dgettext) (dcgettext, ngettext, dngettext, dcngettext): Backport changes from current gettext to provide GCC format_arg attributes.
2009-10-15 * object.h (class Relocate_info): Add reloc_shdr and data_shdrIan Lance Taylor4-38/+25
fields. * object.cc (Sized_relobj::relocate_sections): Set reloc_shdr and data_shdr fields of relinfo. * i386.cc (class Target_i386::Relocate): Remove ldo_addrs_ field. (Target_i386::Relocate::relocate_tls): Don't call fix_up_ldo. For R_386_TLS_LDO_32, adjust based on section flags. (Target_i386::Relocate::fix_up_ldo): Remove.
2009-10-15*** empty log message ***gdbadmin1-1/+1
2009-10-142009-10-14 Cary Coutant <ccoutant@google.com>Cary Coutant2-1/+5
* dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
2009-10-14 * ld-scripts/phdrs3.d: Allow colon in name of linker binary.Joseph Myers2-1/+5
2009-10-14daily updateAlan Modra1-1/+1
2009-10-14 * dwarf2read.c (dwarf2_const_value): Fix order of arguments toKeith Seitz2-1/+6
store_unsigned_integer.
2009-10-14Remove spurious gdb/ ...Pedro Alves1-1/+0
2009-10-14 gdb/Pedro Alves3-2/+8
* configure.ac (build_warnings): Add -Wunused-value. * configure: Regenerate.
2009-10-142009-10-14 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-5/+10
* solib-darwin.c: Remove trailing whitespaces. (darwin_dyld_version_ok): Fix typo.
2009-10-14 PR 969Alan Modra2-2/+7
* m68k-opc.c (m68k_opcodes): Correct mask for macl and msacl.
2009-10-14* ldlex.l (yy_input): Remove second argument and return the valueAndreas Schwab2-8/+15
instead. (YY_INPUT): Adjust.
2009-10-14 * ld-elf/pr349-1.s, * ld-elf/pr349-2.s, * ld-elf/pr349.d: New.Alan Modra4-0/+18
2009-10-142009-10-14 Andrew Stubbs <ams@codesourcery.com>Andrew Stubbs2-1/+16
* sh-tdep.c (sh_gdbarch_init): Add show_regs settings for bfd_mach_sh3_nommu, bfd_mach_sh2a_nofpu_or_sh3_nommu, bfd_mach_sh2a_or_sh3e, bfd_mach_sh2a_or_sh4, bfd_mach_sh4_nommu_nofpu, and bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu. Move bfd_mach_sh2a_or_sh4 to use the same configuration as bfd_mach_sh4.
2009-10-14include/Alan Modra6-5/+19
* bfdlink.h (enum bfd_link_common_skip_ar_symbols): Rename from bfd_link_common_skip_ar_aymbols. (struct bfd_link_info): Here too. bfd/ * aoutx.h (aout_link_check_ar_symbols): Typo fix. ld/ * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
2009-10-14 Add support for -pie.Ian Lance Taylor12-28/+129
* options.h (class General_options): Add -pie and --pic-executable. (General_options::output_is_position_independent): Test -pie. (General_options::output_is_executable): Return true if not shared and not relocatable. (General_options::output_is_pie): Remove. * options.cc (General_options::finalize): Reject incompatible uses of -pie. * gold.cc (queue_middle_tasks): A -pie link is not static. * symtab.h (Symbol::needs_plt_entry): Return false if -pie. * symtab.cc (Symbol::final_value_is_known): Return false if output_is_position_independent. * layout.cc (Layout::set_segment_offsets): Start at address 0 if output_is_position_independent. * output.cc (Output_file_header::do_sized_write): Use ET_DYN if output_is_position_independent. * i386.cc (Output_data_plt_i386::do_write): Use the PIC PLT if output_is_position_independent. * testsuite/Makefile.am (check_PROGRAMS): Add basic_pie_test and two_file_pie_test. (basic_pie_test.o, basic_pie_test): New targets. (two_file_test_1_pie.o, two_file_test_1b_pie.o): New targets. (two_file_test_2_pie.o, two_file_test_main_pie.o): New targets. (two_file_pie_test): New target. * testsuite/Makefile.in: Rebuild. * README: Remove note saying that -pie is not supported.
2009-10-14 * ldlang.c (load_symbols): Set whole_archive from entry whenAlan Modra2-1/+9
parsing a linker script.
2009-10-14*** empty log message ***gdbadmin1-1/+1
2009-10-13 * MAINTAINERS (common): Move myself to "past maintainers" section.Ben Elliston2-1/+5
2009-10-13daily updateAlan Modra1-1/+1
2009-10-13 * arm-tdep.c (arm_push_dummy_call): Set the low bit of LR forDaniel Jacobowitz2-8/+211
a Thumb entry point. (thumb_get_next_pc): Handle Thumb-2 and ARM v6 instructions. Refuse to single step into IT blocks.
2009-10-13 * options.h (class General_options): Add -init and -fini.Ian Lance Taylor3-3/+14
* layout.cc (Layout::finish_dynamic_section): Emit given init and fini functions.
2009-10-13 * gc.h (gc_process_relocs): Check if icf is enabled using newSriraman Tallam14-23/+237
function. * gold.cc (queue_initial_tasks): Likewise. (queue_middle_tasks): Likewise. * object.cc (do_layout): Likewise. * symtab.cc (is_section_folded): Likewise. * main.cc (main): Likewise. * reloc.cc (Read_relocs::run): Likewise. (Sized_relobj::do_scan_relocs): Likewise. * icf.cc (is_function_ctor_or_dtor): New function. (Icf::find_identical_sections): Check if function is ctor or dtor when safe icf is chosen. * options.h (General_options::icf): Change option to be an enum. (Icf_status): New enum. (icf_enabled): New method. (icf_safe_folding): New method. (set_icf_status): New method. (icf_status_): New variable. * (options.cc) (General_options::finalize): Set icf_status_. * testsuite/Makefile.am: Add commands to build icf_safe_test. Modify icf_test and icf_keep_unique_test to use the --icf enum flag. * testsuite/icf_safe_test.sh: New file. * testsuite/icf_safe_test.cc: New file.
2009-10-132009-10-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-5/+11
* i386-dis.c (print_insn): Always clear need_vex, need_vex_reg and vex_w_done.
2009-10-13Fix a typo.H.J. Lu1-1/+1
2009-10-132009-10-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+7
PR binutils/10766 * config/tc-i386.c (build_modrm_byte): Declare exp earlier.
2009-10-132009-10-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+9
PR binutils/10763 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Declare plt earlier.
2009-10-13gas/H.J. Lu8-26/+157
2009-10-13 H.J. Lu <hongjiu.lu@intel.com> PR gas/10740 * config/tc-i386-intel.c (i386_intel_operand): Handle call and jump with 2 immediate operands. * config/tc-i386.c (i386_finalize_immediate): Don't generate error message if operand string is NULL. gas/testsuite/ 2009-10-13 H.J. Lu <hongjiu.lu@intel.com> PR gas/10740 * gas/i386/jump.s: Add new tests. * gas/i386/jump16.s: Likewise. * gas/i386/jump.d: Updated. * gas/i386/jump16.d: Likewise.
2009-10-132009-10-13 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-2/+10
gdb/ * infcall.c (call_function_by_hand): Formatting. 2009-10-13 Pedro Alves <pedro@codesourcery.com> gdb/gdbserver/ * proc-service.c (ps_lgetregs): Formatting.
2009-10-132009-10-13 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-5/+35
* solib-darwin.c: Add an empty line after comment for functions. (struct gdb_dyld_all_image_infos): Improve comment. (DYLD_VERSION): Removed and replaced by ... (DYLD_VERSION_MAX, DYLD_VERSION_MIN): ... New macros. (darwin_dyld_version_ok): New function. (darwin_load_image_infos): Call darwin_dyld_version_ok. (darwin_current_sos): Ditto. (darwin_solib_create_inferior_hook): Ditto.
2009-10-132009-10-13 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-107/+162
* machoread.c: Add an empty line after comment for functions. (oso_el_compare_name): New function. (macho_add_oso_symfile): New function. (macho_oso_symfile): Use macho_add_oso_symfile. Sort the oso and optimize accesses to libraries.
2009-10-13gas:Nick Clifton8-16/+148
2009-10-07 Vincent Riviere <vincent.riviere@freesbee.fr> PR gas/3041 * config/tc-m68k.c (tc_gen_reloc): Fix addend for relocations located in data section an referencing a weak symbol. gas/testsuite: 2009-10-07 Vincent Riviere <vincent.riviere@freesbee.fr> PR gas/3041 * gas/m68k/all.exp: Added "p3041data". * gas/m68k/p3041.d, gas/m68k/p3041.s: Added tests of weak references from text section to all possible sections. * gas/m68k/p3041data.d, gas/m68k/p3041data.s: New test. Check weak references from data section.
2009-10-132009-10-12 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+7
* gdb.base/sepdebug.exp: Check debug info are found.
2009-10-132009-10-12 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-4/+36
* objfiles.c (objfile_has_symbols): New function. * objfiles.h (objfile_has_symbols): Add prototype. * symfile.c (symbol_file_add_with_addrs_or_offsets): Call objfile_has_symbols. (reread_symbols): Ditto.
2009-10-13 * elflink.c (_bfd_elf_merge_symbol): Revert previous patch.Alan Modra2-4/+8
2009-10-13Fix toplevel 'config.status --recheck' for --enable-lto.Ralf Wildenhues3-2/+14
/: * configure.ac: Add 'lto' to enable_languages, not new_enable_languages, and only if not already present. * configure: Regenerate.
2009-10-13Fix %s that should be %B in several message formats.Roland McGrath2-7/+12
2009-10-13 * symtab.h: Check for GOLD_SYMTAB_H before header includes. RemoveSriraman Tallam9-5/+22
includes to gc.h and icf.h. * arm.cc: Include gc.h. * gold.cc: Likewise. * i386.cc: Likewise. * powerpc.cc: Likewise. * sparc.cc: Likewise. * x86_64.cc: Likewise. * gc.h: Include icf.h.
2009-10-13*** empty log message ***gdbadmin1-1/+1
2009-10-12daily updateAlan Modra1-1/+1
2009-10-12doc/Paul Pluzhnikov1-0/+4
2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.texinfo (Server): Document libthread-db-search-path. gdbserver/ 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. * configure.ac: Adjust. * linux-low.h (struct process_info_private): Move members to struct thread_db. (thread_db_free, thread_db_handle_monitor_command): New prototype. * linux-low.c (linux_remove_process): Adjust. (linux_wait_for_event_1, linux_look_up_symbols): Likewise. * server.c (handle_query): Move code ... (handle_monitor_command): ... here. New function. * target.h (struct target_ops): New member. * thread-db.c (struct thread_db): New. (libthread_db_search_path): New variable. (thread_db_create_event, thread_db_enable_reporting) (find_one_thread, maybe_attach_thread, find_new_threads_callback) (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. (try_thread_db_load_1, dladdr_to_soname): New functions. (try_thread_db_load, thread_db_load_search): New functions. (thread_db_init): Search for libthread_db. (thread_db_free): New function. (thread_db_handle_monitor_command): Likewise. * config.in: Regenerate. * configure: Regenerate.
2009-10-122009-10-12 Jiang Jilin <freephp@gmail.com>Michael Snyder2-0/+18
* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv instructions support.
2009-10-12 * plugin.cc: Include "gold.h" before other header files.Ian Lance Taylor2-1/+6
2009-10-122009-10-11 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+7
* gdb.texinfo (ReverseStep): Show default as "unsupported". (ReverseContinue): Ditto.
2009-10-12*** empty log message ***gdbadmin1-1/+1
2009-10-11daily updateAlan Modra1-1/+1
2009-10-11 * procfs.c (procfs_make_note_section): Go back to only outputingPedro Alves2-1/+6
an NT_PSTATUS note when UNIXWARE is defined.
2009-10-11 * features/xinclude.dtd: Correct EMPTY typo.Daniel Jacobowitz2-1/+5
2009-10-112009-10-09 Michael Snyder <msnyder@vmware.com>Michael Snyder1-0/+4
* i386-tdep.c (i386_process_record): Or-equals, not not-equals.