H.J. Lu [Mon, 11 Jan 2010 18:34:48 +0000 (18:34 +0000)]
Use --dyn-syms instead of -Ds
2010-01-11 H.J. Lu <hongjiu.lu@intel.com>
PR gold/11144
* testsuite/Makefile.am (dynamic_list.stdout): Use --dyn-syms
instead of -Ds.
* testsuite/Makefile.in: Regenerated.
Jan Kratochvil [Mon, 11 Jan 2010 18:15:05 +0000 (18:15 +0000)]
gdb/
* objfiles.c (objfile_relocate1): Change the return type to int.
Describe the new return value. Return non-zero if data changed.
(objfile_relocate): New variable changed. Set it. Call
breakpoint_re_set depending on CHANGED.
Jan Kratochvil [Mon, 11 Jan 2010 17:58:16 +0000 (17:58 +0000)]
gdb/
Implement binary numbers parsing.
* c-exp.y (parse_number): New case 'b' and 'B'.
gdb/testsuite/
Implement binary numbers parsing.
* gdb.base/printcmds.exp (test_integer_literals_accepted)
(test_integer_literals_rejected): New binary tests.
Jan Kratochvil [Mon, 11 Jan 2010 16:30:10 +0000 (16:30 +0000)]
gdb/
* solib.c (info_sharedlibrary_command): Replace
objfile_has_partial_symbols and objfile_has_full_symbols calls by
objfile_has_symbols.
Tristan Gingold [Mon, 11 Jan 2010 15:57:59 +0000 (15:57 +0000)]
2010-01-11 Tristan Gingold <gingold@adacore.com>
* mach-o.h: Add x86-64 relocation types.
Tristan Gingold [Mon, 11 Jan 2010 15:39:41 +0000 (15:39 +0000)]
2010-01-11 Tristan Gingold <gingold@adacore.com>
* mach-o.h (bfd_mach_o_backend_data): Add arch field.
(bfd_mach_o_set_arch_mach): New prototype.
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
(bfd_mach_o_set_arch_mach): New function.
(bfd_mach_o_gen_mkobject): New function.
Set TARGET_ARCHITECTURE for the generic back-ends.
* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
Check that TARGET_ARCHITECTURE is defined.
Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
* mach-o-i386.c (TARGET_ARCHITECTURE): Define.
Tristan Gingold [Mon, 11 Jan 2010 15:29:36 +0000 (15:29 +0000)]
2010-01-11 Tristan Gingold <gingold@adacore.com>
* archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
H.J. Lu [Mon, 11 Jan 2010 14:45:42 +0000 (14:45 +0000)]
Add --dyn-syms to readelf
binutils/
2010-01-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11146
* NEWS: Mention --dyn-syms for readelf.
* readelf.c (do_dyn_syms): New.
(OPTION_DYN_SYMS): Likewise.
(options): Add "dyn-syms".
(usage): Add --dyn-syms.
(parse_args): Handle OPTION_DYN_SYMS.
(process_symbol_table): Handle do_dyn_syms.
(process_object): Likewise.
(process_archive): Likewise.
* doc/binutils.texi: Document --dyn-syms for readelf. Mention
symbol hash tables for -D.
ld/testsuite/
2010-01-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11146
* ld-elf/dynsym1.d: New.
Nick Clifton [Mon, 11 Jan 2010 14:19:40 +0000 (14:19 +0000)]
* elf32-v850.c (v850_elf_perform_relocation): Fix overflow
handling of R_V850_HI16_S relocation.
Nick Clifton [Mon, 11 Jan 2010 12:40:45 +0000 (12:40 +0000)]
* NEWS: Mention addition of elfedit.
Nick Clifton [Mon, 11 Jan 2010 12:35:12 +0000 (12:35 +0000)]
* po/fi.po: Updated Finnish translation.
Alan Modra [Mon, 11 Jan 2010 09:53:27 +0000 (09:53 +0000)]
PR 11103
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
Alan Modra [Mon, 11 Jan 2010 09:43:08 +0000 (09:43 +0000)]
update copyright date
Alan Modra [Mon, 11 Jan 2010 08:36:19 +0000 (08:36 +0000)]
PR 6832
* dwarf2.c (struct comp_unit): Add sec_info_ptr.
(find_abstract_instance_name): Use it.
(parse_comp_unit): Set it.
Doug Kwan [Mon, 11 Jan 2010 07:39:36 +0000 (07:39 +0000)]
2010-01-10 Doug Kwan <dougkwan@google.com>
* options.h (DEFINE_var): Use parentheses around argument varname__
in macro body to avoid any unintended subsequent substitutions.
Ian Lance Taylor [Mon, 11 Jan 2010 07:09:48 +0000 (07:09 +0000)]
* resolve.cc (Symbol_table::resolve): Add symbols to list of ODR
candidates before doing symbol resolution.
Ian Lance Taylor [Mon, 11 Jan 2010 05:44:04 +0000 (05:44 +0000)]
* resolve.cc (Symbol_table::resolve): Add symbols to the list of
ODR candidates if only one is weak.
gdbadmin [Mon, 11 Jan 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 10 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update
Joel Brobecker [Sun, 10 Jan 2010 06:43:01 +0000 (06:43 +0000)]
Document the improvements made to the mips-irix port.
* NEWS: Document the improvements made to the mips-irix port.
H.J. Lu [Sun, 10 Jan 2010 01:19:02 +0000 (01:19 +0000)]
Return dgs.alc on success
2010-01-09 Ian Lance Taylor <iant@google.com>
PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.
gdbadmin [Sun, 10 Jan 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 9 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update
Ralf Wildenhues [Sat, 9 Jan 2010 21:11:44 +0000 (21:11 +0000)]
Sync Libtool from GCC.
/:
* libtool.m4: Sync from git Libtool.
* ltmain.sh: Likewise.
* ltoptions.m4: Likewise.
* ltversion.m4: Likewise.
* lt~obsolete.m4: Likewise.
sim/iq2000/:
* configure: Regenerate.
sim/d10v/:
* configure: Regenerate.
sim/m32r/:
* configure: Regenerate.
sim/frv/:
* configure: Regenerate.
sim/:
* avr/configure: Regenerate.
* cris/configure: Regenerate.
* microblaze/configure: Regenerate.
sim/h8300/:
* configure: Regenerate.
sim/mn10300/:
* configure: Regenerate.
sim/erc32/:
* configure: Regenerate.
sim/arm/:
* configure: Regenerate.
sim/m68hc11/:
* configure: Regenerate.
sim/lm32/:
* configure: Regenerate.
sim/sh64/:
* configure: Regenerate.
sim/v850/:
* configure: Regenerate.
sim/cr16/:
* configure: Regenerate.
sim/moxie/:
* configure: Regenerate.
sim/m32c/:
* configure: Regenerate.
sim/mips/:
* configure: Regenerate.
sim/mcore/:
* configure: Regenerate.
sim/sh/:
* configure: Regenerate.
gprof/:
* Makefile.in: Regenerate.
* configure: Regenerate.
opcodes/:
* Makefile.in: Regenerate.
* configure: Regenerate.
gas/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
ld/:
* configure: Regenerate.
gdb/testsuite/:
* gdb.cell/configure: Regenerate.
binutils/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
bfd/:
* Makefile.in: Regenerate.
* configure: Regenerate.
bfd/doc/:
* Makefile.in: Regenerate.
Joel Brobecker [Sat, 9 Jan 2010 11:46:13 +0000 (11:46 +0000)]
Fix the documentation of valprint.c:value_print.
* valprint.c (value_print): Update the function description to
mention that the syntax of the output follows the current_language,
not necessarily C.
Jan Kratochvil [Sat, 9 Jan 2010 09:11:00 +0000 (09:11 +0000)]
gdb/
Fix displacement of separate debug info files.
* objfiles.c (objfile_relocate): Rename to ...
(objfile_relocate1): ... here and make it static. Extend the comment.
(objfile_relocate): New function.
* solib-spu.c (spu_relocate_main_executable): Explicitly check if
SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
allocated using alloca.
* symfile.c (copy_section_addr_info): Remove.
(build_section_addr_info_from_objfile): Make it global. New variables
addr_bit and mask, use them.
* symfile.h (build_section_addr_info_from_objfile): New prototype.
(copy_section_addr_info): Remove.
Ian Lance Taylor [Sat, 9 Jan 2010 05:49:57 +0000 (05:49 +0000)]
* script.cc (Version_script_info::build_expression_list_lookup):
Don't warn about ambiguous version, just record the ambiguity.
(Version_script_info::get_symbol_version_helper): Give error if
version is ambiguous.
Joel Brobecker [Sat, 9 Jan 2010 05:03:34 +0000 (05:03 +0000)]
Fix patch ownership in ChangeLog entry.
Joel Brobecker [Sat, 9 Jan 2010 04:44:55 +0000 (04:44 +0000)]
Signal unwinder for mips-irix N32.
* mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
tramp-frame.h.
(SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
(SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
(SIGCONTEXT_LO_OFF): New macros.
(mips_irix_n32_tramp_frame_init): New function.
(mips_irix_n32_tramp_frame): New static constant.
(mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
Joel Brobecker [Sat, 9 Jan 2010 04:44:02 +0000 (04:44 +0000)]
Breakpoint in shared library does not work on mips-irix.
* procfs.c: #include "observer.h".
(procfs_inferior_created): New function, moving here the code
which unsets the syssgi syscall-exit notifications.
(procfs_create_inferior): Remove the code which unsets the syssgi
syscall-exit notifications. It is too early to do this here.
(_initialize_procfs): Attach the procfs_inferior_created observer.
Joel Brobecker [Sat, 9 Jan 2010 04:42:54 +0000 (04:42 +0000)]
Wrong return convention for arrays (mips-irix).
* mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
128 bits or smaller are returned the same way as structs
and unions of the the same size.
Joel Brobecker [Sat, 9 Jan 2010 04:41:50 +0000 (04:41 +0000)]
Cannot set the PC on mips-irix.
* irix5-nat.c (fill_gregset): Check regno against the raw PC
register number, no the cooked one.
Joel Brobecker [Sat, 9 Jan 2010 04:40:59 +0000 (04:40 +0000)]
Error while loading core file on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing
if debugging from a core file.
Joel Brobecker [Sat, 9 Jan 2010 04:40:02 +0000 (04:40 +0000)]
GDB hangs when attaching to process on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
attaching to a process.
Joel Brobecker [Sat, 9 Jan 2010 04:38:29 +0000 (04:38 +0000)]
* mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
containing the correct breakpoint instruction to use on mips-irix.
Use it when the osabi is GDB_OSABI_IRIX.
Joel Brobecker [Sat, 9 Jan 2010 04:37:12 +0000 (04:37 +0000)]
-Wunused warning in procfs.c (mips-irix only).
* procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
throughout instead of using praddset and prdelset respectively.
Joel Brobecker [Sat, 9 Jan 2010 04:36:00 +0000 (04:36 +0000)]
GDB crash while stepping into function.
* infrun.c (handle_inferior_event): Refetch the current frame
after handling what.main_action, in case that pointer became
dangling.
Joel Brobecker [Sat, 9 Jan 2010 04:34:35 +0000 (04:34 +0000)]
* ada-valprint.c, parse.c: Include defs.h before including ctype.h.
Joel Brobecker [Sat, 9 Jan 2010 04:32:52 +0000 (04:32 +0000)]
* procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
Doug Kwan [Sat, 9 Jan 2010 01:55:14 +0000 (01:55 +0000)]
2010-01-08 Doug Kwan <dougkwan@google.com>
* arm.cc (Stub_table::Stub_table): Initalize cortex_a8_stubs_,
prev_data_size_ and prev_addralign_. Remove initializer for
deleted data member has_been_changed_.
(Stub_table::empty): Look at both reloc_stubs_ and cortex_a8_stubs_
to determine if the table is empty.
(Stub_table::has_been_changed, Stub_table_set_has_been_changed):
Remove.
(Stub_table::add_reloc_stub): Define method in class definition
instead of just declaring it there.
(Stub_table::add_cortex_a8_stub): New method definition.
(Stub_table::update_data_size_and_addralign): Ditto.
(Stub_table::finalize_stubs): Ditto.
(Stub_table::apply_cortex_a8_workaround_to_address_range): Ditto.
(Stub_table::do_addralign_): Return address alignment in the
(Stub_table::do_reset_address_and_file_offset): Define method in
class definition instead of declaring it there. Set current data
size to be the data size of the previous pass.
(Stub_table::set_final_data_size): Use current data size as the
final data size.
(Stub_table::relocate_stub): Change parameter type of stub from
Reloc_stub pointer to Stub pointer.
(Stub_table::addralign_, Stub_table::has_been_changed_): Remove.
(Stub_table::Cortex_a8_stub_list): New typedef.
(Stub_table::cortex_a8_stubs_, Stub_table::prev_data_size_,
Stub_table::prev_addralign_): New data member.
(Arm_relobj::Arm_relobj): Initialize data member
section_has_cortex_a8_workaround_.
(Arm_relobj::section_has_cortex_a8_workaround,
Arm_relobj::mark_section_for_cortex_a8_workaround): New method
definitions.
(Arm_relobj::section_has_cortex_a8_workaround_): New data member
declarations.
(Target_arm::relocate_stub): Change parameter type of stub from
Reloc_stub pointer to Stub pointer.
(Insn_template::size, Insn_template::alignment): Handle
THUMB16_SPECIAL_TYPE.
(Stub_table::remove_all_cortex_a8_stubs, Stub_table::finalize_stubs,
Stub_table::update_data_size_and_addralign,
Stub_table::apply_cortex_a8_workaround_to_address_range): New method
definitions.
(Stub_table::relocate_stubs): Handle Cortex-A8 stubs.
(Stub_table::do_write): Ditto.
(Target_arm::do_relax): Adjust code for changes in Stub_table.
Jan Kratochvil [Sat, 9 Jan 2010 00:14:11 +0000 (00:14 +0000)]
gdb/testsuite/
* gdb.base/corefile.exp: Move the core finding block out and call it as
core_find, new variable $corefile, replace corefile by $corefile and
[file tail $corefile] for usage vs. test names resp.
* lib/gdb.exp (core_find): Move it as a new function here. New
parameter binfile and deletefiles. New variable $destcore. Pre-delete
$destcore. Return "" on error.
Ian Lance Taylor [Sat, 9 Jan 2010 00:13:48 +0000 (00:13 +0000)]
PR 11108
* symtab.h (class Symbol): Remove fields is_target_special_ and
has_plt_offset_. Add field is_defined_in_discarded_section_.
(Symbol::is_defined_in_discarded_section): New function.
(Symbol::set_is_defined_in_discarded_section): New function.
(Symbol::has_plt_offset): Rewrite.
(Symbol::set_plt_offset): Verify that new offset is not -1U.
* symtab.cc (Symbol::init_fields): Initialize plt_offset_ to -1U.
Don't initialize is_target_special_ or has_plt_offset_.
Initialize is_defined_in_discarded_section_.
(Symbol_table::add_from_relobj): If appropriate, set
is_defined_in_discarded_section.
* resolve.cc (Symbol::override_base_with_special): Don't test
is_target_special_. Change has_plt_offset_ to has_plt_offset().
* target-reloc.h (relocate_section): Do special handling for
symbols defined in discarded sections for global symbols as well
as local symbols.
gdbadmin [Sat, 9 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Ian Lance Taylor [Fri, 8 Jan 2010 23:10:58 +0000 (23:10 +0000)]
* dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in
the SHT_SYMTAB case.
Alan Modra [Fri, 8 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Jan Kratochvil [Fri, 8 Jan 2010 22:59:47 +0000 (22:59 +0000)]
gdb/testsuite/
Workaround PR binutils/10802.
* lib/gdb.exp (gdb_gnu_strip_debug): Preserve the file attributes
(twice).
Jan Kratochvil [Fri, 8 Jan 2010 22:55:15 +0000 (22:55 +0000)]
gdb/
Move some symfile code into subroutines.
* symfile.h (relative_addr_info_to_section_offsets)
(addr_info_make_relative): New prototypes.
* symfile.c (default_symfile_offsets): Move a part to ...
(relative_addr_info_to_section_offsets): ... this new function.
(default_symfile_offsets): Call it.
(syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
this part to ...
(addr_info_make_relative): ... this new function.
Jan Kratochvil [Fri, 8 Jan 2010 22:52:04 +0000 (22:52 +0000)]
gdb/
Add from_tty to solib_create_inferior_hook.
* infcmd.c (post_create_inferior): Move solib_add after
solib_create_inferior_hook. Pass from_tty to
solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
0 from_tty and comment why.
* infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
* linux-nat.c (linux_child_follow_fork): Likewise.
* nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
* solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
from_tty.
* solib-frv.c (frv_solib_create_inferior_hook): Likewise.
* solib-irix.c (irix_solib_create_inferior_hook): Likewise.
* solib-null.c (null_solib_create_inferior_hook): Likewise.
* solib-osf.c (osf_solib_create_inferior_hook): Likewise.
* solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
* solib-som.c (som_solib_create_inferior_hook): Likewise.
* solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
Pass it to svr4_so_ops.solib_create_inferior_hook.
* solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
from_tty.
* solib-svr4.c (enable_break): New parameter from_tty. Pass it to
solib_add.
(svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
enable_break.
* solib-target.c (solib_target_solib_create_inferior_hook): New
parameter from_tty.
* solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
it to ops->solib_create_inferior_hook.
(reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
Move solib_add after solib_create_inferior_hook, call it now with
from_tty as 0. New comment there.
* solib.h (solib_create_inferior_hook): New parameter from_tty.
* solist.h (struct target_so_ops <solib_create_inferior_hook>):
Likewise.
Ian Lance Taylor [Fri, 8 Jan 2010 22:34:34 +0000 (22:34 +0000)]
* object.cc (Sized_relobj::do_layout): Don't get confused if
layout_eh_frame returns NULL.
Ian Lance Taylor [Fri, 8 Jan 2010 21:24:44 +0000 (21:24 +0000)]
PR 11084
* dynobj.cc (Sized_dynobj::find_dynsym_sections): If there is no
dynamic symbol table, use the normal symbol table.
(Sized_dynobj::do_read_symbols): Remove assertion about type of
symbol table.
Ian Lance Taylor [Fri, 8 Jan 2010 21:07:34 +0000 (21:07 +0000)]
PR 11072
* layout.cc (Layout::include_section): Remove .gnu_debuglink
sections.
H.J. Lu [Fri, 8 Jan 2010 19:48:09 +0000 (19:48 +0000)]
Change to "Copyright 2010"
H.J. Lu [Fri, 8 Jan 2010 19:40:08 +0000 (19:40 +0000)]
Change to "Copyright 2010".
Ian Lance Taylor [Fri, 8 Jan 2010 19:33:18 +0000 (19:33 +0000)]
PR 10287
PR 11063
* i386.cc (class Target_i386): Change return type of plt_section
to be non-const.
(class Output_data_plt_i386): Add tls_desc_rel_ field.
(Output_data_plt_i386::Output_data_plt_i386): Initialize
tls_desc_rel_ field.
(Output_data_plt_i386::rel_tls_desc): New function.
(Target_i386::rel_tls_desc_section): New function.
(Target_i386::Scan::local): Rewrite R_386_TLS_GOTDESC handling.
(Target_i386::Scan::global): For R_386_TLS_GOTDESC put
R_386_TLS_DESC reloc in rel_tls_desc_section.
* x86_64.cc (class Target_x86_64): Add tlsdesc_reloc_info_ field.
Define struct Tlsdesc_info.
(Target_x86_64::Target_x86_64): Initialize tlsdesc_reloc_info_.
(Target_x86_64::do_reloc_symbol_index): New function.
(Target_x86_64::add_tlsdesc_info): New function.
(class Output_data_plt_x86_64): Add tlsdesc_rel_ field.
(Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize
tlsdesc_rel_ field.
(Output_data_plt_x86_64::rela_plt): Rename from rel_plt. Change
all callers.
(Output_data_plt_x86_64::rela_tlsdesc): New function.
(Target_x86_64::rela_tlsdesc_section): New function.
(Target_x86_64::Scan::local): Rewrite R_X86_64_GOTPC32_TLSDESC
handling.
(Target_x86_64::Scan::global): For R_X86_64_GOTPC32_TLSDESC put
(Target_x86_64::do_reloc_addend): New function.
R_X86_64_TLSDESC reloc in rela_tlsdesc_section.
* output.h (class Output_reloc) [SHT_REL]: Add new constructor
declarations. Define TARGET_CODE. Add arg field to u1_ union.
(Output_reloc::type): New function.
(Output_reloc::is_local_section_symbol): Check for TARGET_CODE.
(Output_reloc::is_target_specific): New function.
(Output_reloc::target_arg): New function.
(class Output_reloc) [SHT_RELA]: Add four new constructors for
absolute relocs and target specific relocs.
(class Output_data_reloc) [SHT_REL]: Add add_absolute and
add_target_specific.
(class Output_data_reloc) [SHT_RELA]: Likewise.
* output.cc (Output_reloc::Output_reloc): Add four new versions
for absolute relocs and target specific relocs.
(Output_reloc::set_needs_dynsym_index): Add TARGET_CODE case.
(Output_reloc::get_symbol_index): Likewise.
(Output_reloc::local_section_offset): Check that local_sym_index_
is not TARGET_CODE or 0.
(Output_reloc::symbol_value): Likewise.
(Output_reloc::write) [SHT_RELA]: Call target for target specific
reloc.
* target.h (class Target): Add reloc_symbol_index and reloc_addend
functions. Add do_reloc_symbol_index and do_reloc_addend virtual
functions.
* layout.cc (add_target_dynamic_tags): Use output section for
DT_PLTRELSZ and DT_JMPREL.
H.J. Lu [Fri, 8 Jan 2010 18:50:39 +0000 (18:50 +0000)]
Add --input-type and --output-type to elfedit
binutils/
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (input_elf_type): New.
(output_elf_type): Likewise.
(elf_type): Likewise.
(update_elf_header): Support updating ELF file type.
(command_line_switch): Add OPTION_INPUT_TYPE and
OPTION_OUTPUT_TYPE.
(options): Likewise.
(usage): Add --input-type and --output-type.
(main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE. Check
one of --output-mach and --output-type must be specified.
* doc/binutils.texi: Document --input-type and --output-type
for elfedit.
binutils/testsuite/
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/elfedit-2.d: New.
* binutils-all/elfedit.exp: Run elfedit-2.
Daniel Jacobowitz [Fri, 8 Jan 2010 17:48:04 +0000 (17:48 +0000)]
* gdb.cp/gdb2495.exp: Skip if gdb,nosignals.
H.J. Lu [Fri, 8 Jan 2010 17:23:05 +0000 (17:23 +0000)]
Fix a typo
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* doc/binutils.texi: Fix a typo.
Vladimir Prus [Fri, 8 Jan 2010 16:54:14 +0000 (16:54 +0000)]
Fix multiexec race.
* infrun.c (handle_inferior_event): Use get_thread_regcache
with events ptid, not get_current_regcache.
Kaveh Ghazi [Fri, 8 Jan 2010 15:59:17 +0000 (15:59 +0000)]
PR bootstrap/42424
* configure.ac: Include libtool m4 files.
(_LT_CHECK_OBJDIR): Call it.
(extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.
* configure: Regenerate.
H.J. Lu [Fri, 8 Jan 2010 15:58:08 +0000 (15:58 +0000)]
Don't change input_elf_XXX if they are -1
2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (update_elf_header): Don't change input_elf_class
nor input_elf_machine if they are -1.
Joel Brobecker [Fri, 8 Jan 2010 13:54:40 +0000 (13:54 +0000)]
GDB crash with empty executable name (MinGW).
* source.c (openp): Add assert that parameter string is not NULL.
if parameter string is an empty string, then return with a failure
immediately.
Joel Brobecker [Fri, 8 Jan 2010 12:03:36 +0000 (12:03 +0000)]
* lib/gdb.exp (gdb_start_cmd): Move comment outside of gdb_expect
call, to avoid interruption.
Joel Brobecker [Fri, 8 Jan 2010 12:01:59 +0000 (12:01 +0000)]
Fix typo in date.
Joel Brobecker [Fri, 8 Jan 2010 11:58:23 +0000 (11:58 +0000)]
Get rid of support for VAX Floats.
* ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
(ada_vax_float_print_function): Delete.
* ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
(ada_vax_float_print_function): Delete.
* ada-typeprint.c (print_vax_floating_point_type): Delete.
(ada_print_type): Remove support for VAX floats.
* ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
Joel Brobecker [Fri, 8 Jan 2010 11:56:36 +0000 (11:56 +0000)]
Fix typo in date.
Tristan Gingold [Fri, 8 Jan 2010 11:15:39 +0000 (11:15 +0000)]
2010-01-08 Tristan Gingold <gingold@adacore.com>
* archive.c: Remove bfd_special_undocumented_glue.
Tristan Gingold [Fri, 8 Jan 2010 11:14:29 +0000 (11:14 +0000)]
2010-01-08 Tristan Gingold <gingold@adacore.com>
* ar.c: Remove bfd_special_undocumented_glue prototype.
Jan Kratochvil [Fri, 8 Jan 2010 08:55:16 +0000 (08:55 +0000)]
gdb/
* stabsread.c (read_args): Handle zero arguments.
gdb/testsuite/
* gdb.stabs/weird.def (args93): New.
Joel Brobecker [Fri, 8 Jan 2010 07:16:43 +0000 (07:16 +0000)]
Cannot find in-tree libiconv.a after reconfigure.
* acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
that we can use, then cache the path to this archive.
* configure: Regenerate.
Alan Modra [Fri, 8 Jan 2010 05:55:10 +0000 (05:55 +0000)]
PR ld/11133
* elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
* elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
H.J. Lu [Fri, 8 Jan 2010 03:03:16 +0000 (03:03 +0000)]
Fix PR ld/11138
bfd/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11138
* elflink.c (elf_link_check_versioned_symbol): Don't abort if
a symbol referenced by DSO is is defined in a non-shared object
and forced local.
ld/testsuite/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11138
* ld-elf/pr11138-1.c: New.
* ld-elf/pr11138-1.map: Likewise.
* ld-elf/pr11138-2.c: Likewise.
* ld-elf/pr11138-2.map: Likewise.
* ld-elf/pr11138.out: Likewise.
* ld-elf/shared.exp (build_tests): Add libpr11138-1.so and
libpr11138-2.o.
(run_tests): Add 2 tests for PR ld/11138.
H.J. Lu [Fri, 8 Jan 2010 01:43:23 +0000 (01:43 +0000)]
Set SEC_KEEP on section XXX for undefined __start_XXX/__stop_XXX
bfd/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11133
* elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
undefined __start_XXX/__stop_XXX in all input files and set
SEC_KEEP.
ld/testsuite/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11133
* ld-gc/gc.exp: Run start.
* ld-gc/start.d: New.
* ld-gc/start.s: Likewise.
Alan Modra [Fri, 8 Jan 2010 01:41:11 +0000 (01:41 +0000)]
PR 11107
* emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
gdbadmin [Fri, 8 Jan 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
Doug Evans [Thu, 7 Jan 2010 23:26:39 +0000 (23:26 +0000)]
* lib/gdb.exp (gdb_skip_xml_test): Add comment.
Alan Modra [Thu, 7 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update
Ian Lance Taylor [Thu, 7 Jan 2010 21:09:31 +0000 (21:09 +0000)]
PR 11061
* output.h (class Output_reloc) [SHT_RELA]: Add is_relative
function.
(class Output_data_reloc_generic): Define.
(class Output_data_reloc_base): Change base class to
Output_data_reloc_generic. Change add() method to call
bump_relative_reloc_count for a relative reloc. Remove
sort_relocs_ field.
* output.cc (Output_data_reloc_base::do_write): Change sort_reloc_
to sort_relocs().
* layout.cc (Layout::add_target_dynamic_tags): Change dyn_rel to
Output_data_reloc_generic*. Add DT_RELCOUNT/DT_RELACOUNT tag if
appropriate.
* layout.h (class Layout): Update declaration.
H.J. Lu [Thu, 7 Jan 2010 20:49:23 +0000 (20:49 +0000)]
Reformat elfedit.c
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (update_elf_header): Reformat.
Ian Lance Taylor [Thu, 7 Jan 2010 20:43:35 +0000 (20:43 +0000)]
* output.h (class Output_data): Add const version of
output_section and do_output_section.
(class Output_section_data): Add const version of
do_output_section.
(class Output_section): Likewise.
* layout.cc (Layout::add_target_dynamic_tags): New function.
* layout.h (class Layout): Update declarations.
* arm.cc (Target_arm::do_finalize_sections): Use
add_target_dynamic_tags.
* i386.cc (Target_i386::do_finalize_sections): Likewise.
* powerpc.cc (Target_powerpc::do_finalize_sections): Likewise.
* sparc.cc (Target_sparc::do_finalize_sections): Likewise.
* x86_64.cc (Target_x86_64::do_finalize_sections): Likewise.
Tom Tromey [Thu, 7 Jan 2010 20:07:18 +0000 (20:07 +0000)]
* gdb.base/source.exp: Use correct line number.
Ralf Wildenhues [Thu, 7 Jan 2010 20:00:52 +0000 (20:00 +0000)]
Sync from GCC: Makefile.tpl (BASE_TARGET_EXPORTS) fix
/:
PR bootstrap/41818
* Makefile.tpl (BASE_TARGET_EXPORTS): Only add TARGET_LIB_PATH
to $(RPATH_ENVVAR) if bootstrapping. Fix typo in comment.
* Makefile.in: Regenerate.
Ian Lance Taylor [Thu, 7 Jan 2010 19:32:59 +0000 (19:32 +0000)]
PR 11042
* copy-relocs.cc (Copy_relocs::emit_copy_reloc): Mark the dynamic
object as needed.
Stan Shebs [Thu, 7 Jan 2010 19:17:46 +0000 (19:17 +0000)]
Make tracepoint operations go through target vector.
* target.h (enum trace_find_type): New enum.
(struct target_ops): New fields to_trace_init,
to_download_tracepoint, to_download_trace_state_variable,
to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
to_set_disconnected_tracing.
(target_trace_init): New macro.
(target_download_tracepoint): New macro.
(target_download_trace_state_variable): New macro.
(target_trace_start): New macro.
(target_trace_set_readonly_regions): New macro.
(target_get_trace_status): New macro.
(target_trace_stop): New macro.
(target_trace_find): New macro.
(target_get_trace_state_variable_value): New macro.
(target_set_disconnected_tracing): New macro.
* target.c (update_current_target): Inherit and set defaults for
tracepoint operations.
* tracepoint.c (default_collect): Make globally visible.
(target_is_remote): Remove, along with all calls.
(tvariables_info): Call target_get_trace_state_variable_value.
(remote_set_transparent_ranges): Remove.
(trace_start_command): Call target_trace_init,
target_download_tracepoint, etc.
(download_tracepoint): Remove.
(trace_stop_command): Simplify.
(stop_tracing): Call target_trace_stop.
(get_trace_status): Call target_get_trace_status.
(trace_status_command): Add case for targets that cannot trace.
(finish_tfind_command): Change to take numerical arguments, call
target_trace_find.
(trace_find_command): Update call to finish_tfind_command.
(trace_find_pc_command): Ditto.
(trace_find_tracepoint_command): Ditto.
(trace_find_line_command): Ditto.
(trace_find_range_command): Ditto.
(trace_find_outside_command): Ditto.
(set_disconnected_tracing_value): Call
target_set_disconnected_tracing.
* remote.c: Add protocol encoding bits from tracepoint.c.
(trace_error): Move from tracepoint.c.
(remote_get_noisy_reply): Ditto.
(free_actions_list_cleanup_wrapper): Ditto.
(free_actions_list): Ditto.
(remote_trace_init): New function.
(remote_download_tracepoint): New function.
(remote_download_trace_state_variable): New function.
(remote_trace_set_readonly_regions): New function.
(remote_trace_start): New function.
(remote_get_trace_status): New function.
(remote_trace_stop): New function.
(remote_trace_find): New function.
(remote_download_trace_state_variable): New function.
(remote_set_disconnected_tracing): New function.
(init_remote_ops): Add tracepoint operations.
H.J. Lu [Thu, 7 Jan 2010 19:14:33 +0000 (19:14 +0000)]
Fix indent for --symbols in "readelf -h"
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (usage): Fix indent for --symbols.
Stan Shebs [Thu, 7 Jan 2010 19:09:09 +0000 (19:09 +0000)]
* tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
Ian Lance Taylor [Thu, 7 Jan 2010 18:42:03 +0000 (18:42 +0000)]
PR 11019
* object.cc: Instantiate Xindex::initialize_symtab_xindex and
Xindex::read_symtab_xindex.
Doug Kwan [Thu, 7 Jan 2010 18:38:43 +0000 (18:38 +0000)]
2010-01-07 Doug Kwan <dougkwan@google.com>
* arm.cc (Insn_template::Type): New enum value THUMB16_SPECIAL_TYPE.
(Insn_template::thumb16_bcond_insn): New method declaration.
(Insn_template): Fix spelling.
(Stub::thumb16_special): New method declaration.
(Stub::do_write): Define virtual method which was previously pure
virtual.
(Stub::do_thumb16_special): New method declaration.
(Stub::do_fixed_endian_write): New template member.
(Reloc_stub::do_write): Remove.
(Reloc_stub::do_fixed_endian_write): Remove.
(Cortex_a8_stub): New class definition.
(Stub_factory::make_cortex_a8_stub): New method definition.
(Stub_factory::Stub_factory): Add missing static storage class
qualifier for elf32_arm_stub_a8_veneer_blx.
H.J. Lu [Thu, 7 Jan 2010 18:36:38 +0000 (18:36 +0000)]
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
* doc/binutils.texi: Replace -histogram with --histogram.
Ian Lance Taylor [Thu, 7 Jan 2010 18:31:30 +0000 (18:31 +0000)]
PR 10980
* options.h (class General_options): Add --warn-unresolved-symbols
and --error-unresolved-symbols.
* errors.cc (Errors::undefined_symbol): Implement
--warn-unresolved-symbols.
Ian Lance Taylor [Thu, 7 Jan 2010 18:16:24 +0000 (18:16 +0000)]
* options.h (class General_options): Add -z text and -z textoff.
* layout.cc (Layout::finish_dynamic_section): Implement -z text.
Doug Evans [Thu, 7 Jan 2010 18:05:45 +0000 (18:05 +0000)]
* cgen-ibld.in (insert_normal, extract_normal): Minor cleanup.
* fr30-ibld.c, * frv-ibld.c, * ip2k-ibld.c, * iq2000-ibld.c,
* lm32-ibld.c, * m32c-ibld.c, * m32r-ibld.c, * mep-ibld.c,
* mt-ibld.c, * openrisc-ibld.c, * xc16x-ibld.c,
* xstormy16-ibld.c: Regenerate.
H.J. Lu [Thu, 7 Jan 2010 13:44:37 +0000 (13:44 +0000)]
Always keep SHT_NOTE sections
bfd/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11143
* elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
ld/testsuite/
2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11143
* ld-gc/gc.exp: Run abi-note.
* ld-gc/abi-note.d: New.
* ld-gc/abi-note.s: Likewise.
Tristan Gingold [Thu, 7 Jan 2010 09:30:46 +0000 (09:30 +0000)]
2010-01-07 Tristan Gingold <gingold@adacore.com>
* symfile.c (build_section_addr_info_from_objfile): New function.
(symbol_file_add_separate): Don't use offsets from objfile but
built an addr info.
Sriraman Tallam [Thu, 7 Jan 2010 07:14:30 +0000 (07:14 +0000)]
* gc.h (Garbage_collection::Cident_section_map): New typedef.
(Garbage_collection::cident_sections): New function.
(Garbage_collection::add_cident_section): New function.
(Garbage_collection::cident_sections_): New member.
(gc_process_relocs): Add references to sections whose names are C
identifiers.
* gold.h (cident_section_start_prefix): New constant.
(cident_section_stop_prefix): New constant.
(is_cident): New function.
* layout.cc (Layout::define_section_symbols): Replace string constants
with the newly defined constants.
* object.cc (Sized_relobj::do_layout): Track sections whose names are
C identifiers.
* testsuite/Makefile.am: Add gc_orphan_section_test.
* testsuite/Makefile.in: Regenerate.
* testsuite/gc_orphan_section_test.cc: New file.
* testsuite/gc_orphan_section_test.sh: New file.
Ian Lance Taylor [Thu, 7 Jan 2010 06:05:23 +0000 (06:05 +0000)]
PR 10980
* options.h (class General_options): Add --warn-shared-textrel.
* layout.cc (Layout::finish_dynamic_section): Implement
--warn-shared-textrel.
Ian Lance Taylor [Thu, 7 Jan 2010 05:57:25 +0000 (05:57 +0000)]
PR 10980
* options.h (class General_options): Add --warn-multiple-gp.
Ian Lance Taylor [Thu, 7 Jan 2010 05:51:58 +0000 (05:51 +0000)]
* Makefile.am (incremental_dump_DEPENDENCIES): Remove
$(THREADSLIB) and $(LIBDL).
* Makefile.in: Rebuild.
gdbadmin [Thu, 7 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 6 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update
Sebastian Pop [Wed, 6 Jan 2010 22:52:47 +0000 (22:52 +0000)]
2010-01-06 Quentin Neill <quentin.neill@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Add amdfam15.
(i386_align_code): Add PROCESSOR_AMDFAM15 cases.
* config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
* doc/c-i386.texi: Add amdfam15.
opcodes/
* i386-gen.c (cpu_flag_init): Add new CPU_AMDFAM15_FLAGS.
* i386-init.h: Regenerated.
testsuite/
* gas/i386/i386.exp: Add new amdfam15 test cases.
* gas/i386/nops-1-amdfam15.d: New.