OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
14 years agogas:
Nick Clifton [Tue, 13 Oct 2009 08:55:30 +0000 (08:55 +0000)]
gas:
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.

14 years ago * elflink.c (_bfd_elf_merge_symbol): Revert previous patch.
Alan Modra [Tue, 13 Oct 2009 04:06:20 +0000 (04:06 +0000)]
* elflink.c (_bfd_elf_merge_symbol): Revert previous patch.

14 years agoFix toplevel 'config.status --recheck' for --enable-lto.
Ralf Wildenhues [Tue, 13 Oct 2009 03:32:18 +0000 (03:32 +0000)]
Fix toplevel 'config.status --recheck' for --enable-lto.

/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.

14 years agoFix %s that should be %B in several message formats.
Roland McGrath [Tue, 13 Oct 2009 02:35:08 +0000 (02:35 +0000)]
Fix %s that should be %B in several message formats.

14 years ago * symtab.h: Check for GOLD_SYMTAB_H before header includes. Remove
Sriraman Tallam [Tue, 13 Oct 2009 00:39:31 +0000 (00:39 +0000)]
* symtab.h: Check for GOLD_SYMTAB_H before header includes. Remove
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.

14 years agodaily update
Alan Modra [Mon, 12 Oct 2009 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago * plugin.cc: Include "gold.h" before other header files.
Ian Lance Taylor [Mon, 12 Oct 2009 06:02:06 +0000 (06:02 +0000)]
* plugin.cc: Include "gold.h" before other header files.

14 years agodaily update
Alan Modra [Sun, 11 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update

14 years agodaily update
Alan Modra [Sat, 10 Oct 2009 22:59:50 +0000 (22:59 +0000)]
daily update

14 years ago2009-10-10 Chris Demetriou <cgd@google.com>
Chris Demetriou [Sat, 10 Oct 2009 07:39:04 +0000 (07:39 +0000)]
2009-10-10  Chris Demetriou  <cgd@google.com>

* options.h (Input_file_argument::Input_file_type): New enum.
(Input_file_argument::is_lib_): Replace with...
(Input_file_argument::type_): New member.
(Input_file_argument::Input_file_argument): Take Input_file_type
'type' rather than boolean 'is_lib' as second argument.
(Input_file_argument::is_lib): Use type_.
(Input_file_argument::is_searched_file): New function.
(Input_file_argument::may_need_search): Handle is_searched_file.
* options.cc (General_options::parse_library): Support -l:filename.
(General_options::parse_just_symbols): Update for Input_file_argument
changes.
(Command_line::process): Likewise.
* archive.cc (Archive::get_file_and_offset): Likewise.
* plugin.cc (Plugin_manager::release_input_file): Likewise.
* script.cc (read_script_file, script_add_file): Likewise.
* fileread.cc (Input_file::Input_file): Likewise.
(Input_file::will_search_for): Handle is_searched_file.
(Input_file::open): Likewise.
* readsyms.cc (Read_symbols::get_name): Likewise.
* testsuite/Makefile.am (searched_file_test): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/searched_file_test.cc: New file.
* testsuite/searched_file_test_lib.cc: New file.

14 years ago * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
Alan Modra [Sat, 10 Oct 2009 04:58:44 +0000 (04:58 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
excluded output sections.

14 years ago * descriptor.cc: Include <cstdio> and "binary-io.h".
Ian Lance Taylor [Sat, 10 Oct 2009 04:56:43 +0000 (04:56 +0000)]
* descriptor.cc: Include <cstdio> and "binary-io.h".
(Descriptors::open): Open the files in binary mode always.
* script.cc (Lex::get_token): Treat \r as whitespace.

14 years agoRevert 2009-09-28 changes.
Alan Modra [Sat, 10 Oct 2009 04:34:38 +0000 (04:34 +0000)]
Revert 2009-09-28 changes.

14 years ago * testsuite/retain_symbols_file_test.sh: Don't test for __tcf_0.
Ian Lance Taylor [Sat, 10 Oct 2009 01:24:56 +0000 (01:24 +0000)]
* testsuite/retain_symbols_file_test.sh: Don't test for __tcf_0.

14 years ago * configure.ac: Check for readv function also.
Ian Lance Taylor [Fri, 9 Oct 2009 23:20:44 +0000 (23:20 +0000)]
* configure.ac: Check for readv function also.
* fileread.cc (readv): Define if not HAVE_READV.
* fileread.h (File_read:: max_readv_entries): Set to 1 if readv
does not exist.
* config.in: Regenerate.
* configure: Regenerate.

14 years ago2009-10-09 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 9 Oct 2009 23:18:19 +0000 (23:18 +0000)]
2009-10-09  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::make_output_section): Call target hook to make
ordinary output section.
(Layout::finalize): Adjust parameter list of call the
Target::may_relax().
* layout.h (class Layout::section_list): New method.
* merge.h (Output_merge_base::entsize): Change visibility to public.
(Output_merge_base::is_string, Output_merge_base::do_is_string):
New methods.
(Output_merge_string::do_is_string): New method.
* object.cc (Sized_relobj::do_setup): renamed from
Sized_relobj::set_up.
* object.h (Sized_relobj::adjust_shndx,
Sized_relobj::initializ_input_to_output_maps,
Sized_relobj::free_input_to_output_maps): Change visibilities to
protected.
(Sized_relobj::setup): Virtualize.
(Sized_relobj::do_setup): New method declaration.
(Sized_relobj::invalidate_section_offset,
Sized_relobj::do_invalidate_section_offset): New method decfinitions.
(Sized_relobj::elf_file, Sized_relobj::local_values): New methods.
* options.cc (parse_int): New function.
* options.h (parse_int): New declaration.
(DEFINE_int): New macro.
(stub_group_size): New option.
* output.cc (Output_section::Output_section): Initialize memebers
merge_section_map_, merge_section_by_properties_map_,
relaxed_input_section_map_, is_relaxed_input_section_map_valid_.
(Output_section::add_input_section): Handled deferred code-fill
generation and remove an old comment.
(Output_section::add_relaxed_input_section): New method definition.
(Output_section::add_merge_input_section): Use merge section by
properties map to speed to search.  Update merge section maps
as appropriate.
(Output_section::build_relaxation_map): New method definition.
(Output_section::convert_input_sections_in_list_to_relaxed_sections):
Same.
(Output_section::relax_input_section): Renamed to
Output_section::convert_input_sections_to_relaxed_sections and change
interface to take a vector of pointers to relaxed sections.
(Output_section::find_merge_section,
Output_section::find_relaxed_input_section): New method definitions.
(Output_section::is_input_address_mapped,
Output_section::output_offset, Output_section::output_address):
Use output section data maps to speed up searching.
(Output_section::find_starting_output_address): Add comments.
(Output_section::do_write,
Output_section::write_to_postprocessing_buffer): Do code-fill
generation as appropriate.
(Output_section::get_input_sections): Invalidate relaxed input section
map.
(Output_section::restore_states): Adjust type of checkpoint .
Invalidate relaxed input section map.
* output.h (Output_merge_base): New class declaration.
(Input_section_specifier): New class defintion.
(class Output_relaxed_input_section) Change base class to
Output_section_data_build.
(Output_relaxed_input_section::Output_relaxed_input_section): Adjust
base class initializer.
(Output_section::add_relaxed_input_section): New method declaration.
(Output_section::Input_section): Change visibility to protected.
      (Output_section::Input_section::relobj,
Output_section::Input_section::shndx): Handle relaxed input sections.
Output_section::input_sections) Change visibility to protected.  Also
define overload to return a non-const pointer.
(Output_section::Merge_section_properties): New class defintion.
(Output_section::Merge_section_by_properties_map,
Output_section::Output_section_data_by_input_section_map,
Output_section::Relaxation_map): New types.
(Output_section::relax_input_section): Rename method to
Output_section::convert_input_sections_to_relaxed_sections and change
interface to take a vector of relaxed section pointers.
(Output_section::find_merge_section,
Output_section::find_relaxed_input_section,
Output_section::build_relaxation_map,
Output_section::convert_input_sections_in_list_to_relaxed_sections):
New method declarations.
(Output_section::merge_section_map_
Output_section::merge_section_by_properties_map_,
Output_section::relaxed_input_section_map_,
Output_section::is_relaxed_input_section_map_valid_,
Output_section::generate_code_fills_at_write_): New data members.
* script-sections.cc
(Output_section_element_input::set_section_addresses): Call
current_data_size and addralign methods of relaxed input sections.
(Orphan_output_section::set_section_addresses): Call current_data_size
and addralign methods of relaxed input sections.
* symtab.cc (Symbol_table::compute_final_value): Extract template
from the body of Symbol_table::sized_finalize_symbol.
(Symbol_table::sized_finalized_symbol): Call
Symbol_table::compute_final_value.
* symtab.h (Symbol_table::Compute_final_value_status): New enum type.
(Symbol_table::compute_final_value): New templated method declaration.
* target.cc (Target::do_make_output_section): New method defintion.
* target.h (Target::make_output_section): New method declaration.
(Target::relax): Add more parameters for input objects, symbol table
and layout.  Adjust call to do_relax.
(Target::do_make_output_section): New method declaration.
(Target::do_relax): Add parameters for input objects, symbol table
and layout.

14 years ago * pread.c: Include stdio.h.
Ian Lance Taylor [Fri, 9 Oct 2009 23:10:15 +0000 (23:10 +0000)]
* pread.c: Include stdio.h.

14 years ago * plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not
Ian Lance Taylor [Fri, 9 Oct 2009 23:07:30 +0000 (23:07 +0000)]
* plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not
defined.

14 years ago * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
Ian Lance Taylor [Fri, 9 Oct 2009 23:05:21 +0000 (23:05 +0000)]
* dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
Change read_shndx type to unsigned int.
(Sized_dwarf_line_info::read_lines): Change shndx type to unsigned
int.
(Sized_dwarf_line_info::read_line_mappings): Likewise.
* dwarf_reader.h (Sized_dwarf_line_info::Sized_dwarf_line_info):
Change read_shndx type to unsigned int.
(Sized_dwarf_line_info::read_lines): Change shndx type to unsigned
int.
(Sized_dwarf_line_info::read_line_mappings): Likewise.
* layout.cc (Layout::create_symtab_sections): Cast the result of
local_symcount * symsize to off_t in the gold_assert.

14 years ago * elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
Ian Lance Taylor [Fri, 9 Oct 2009 23:02:34 +0000 (23:02 +0000)]
* elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
to Elf_WXword.

14 years agodaily update
Alan Modra [Fri, 9 Oct 2009 22:59:52 +0000 (22:59 +0000)]
daily update

14 years ago * arm.cc (Target_arm::relocate::reloc_is_non_pic): Return true for
Ian Lance Taylor [Fri, 9 Oct 2009 22:56:41 +0000 (22:56 +0000)]
* arm.cc (Target_arm::relocate::reloc_is_non_pic): Return true for
R_ARM_THM_ABS5, R_ARM_ABS8, R_ARM_ABS12, R_ARM_ABS16,
R_ARM_BASE_ABS.
(Arm_relocate_functions::abs8): Remove has_thumb_bit parameter.
(Arm_relocate_functions::thm_abs5): New function.
(Arm_relocate_functions::abs12): New function.
(Arm_relocate_functions::abs16): New function.
(Arm_relocate_functions::base_abs): New function.
(Scan::check_non_pic): Handle R_ARM_ABS32_NOI.
(Scan::local): Remove special handling of R_ARM_ABS8.  Handle
R_ARM_ABS32_NOI, R_ARM_THM_ABS5, R_ARM_ABS12, R_ARM_ABS16, and
R_ARM_BASE_ABS.
(Scan::global): Likewise.
(Relocate::relocate): Handle R_ARM_ABS12, R_ARM_ABS16,
R_ARM_ABS32_NOI, R_ARM_THM_ABS5, and R_ARM_BASE_ABS.
(Relocatable_size_for_reloc::get_size_for_reloc): Handle
R_ARM_ABS16, R_ARM_THM_ABS5, R_ARM_ABS32_NOI, R_ARM_ABS12, and
R_ARM_BASE_ABS.

14 years ago * arm.cc (Arm_relocate_functions::movw_prel_nc): New function.
Ian Lance Taylor [Fri, 9 Oct 2009 22:45:13 +0000 (22:45 +0000)]
* arm.cc (Arm_relocate_functions::movw_prel_nc): New function.
(Arm_relocate_functions::movt_prel): New function.
(Arm_relocate_functions::thm_movw_prel_nc): New function.
(Arm_relocate_functions::thm_movt_prel): New function.
(Scan::local): Handle R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL,
R_ARM_THM_MOVW_PREL_NC, and R_ARM_THM_MOVT_PREL.
(Scan::global, Relocate::relocate): Likewise.
(Relocatable_size_for_reloc::get_size_for_reloc): Likewise.

14 years agoelfcpp/:
Ian Lance Taylor [Fri, 9 Oct 2009 22:38:07 +0000 (22:38 +0000)]
elfcpp/:
* elf_file.h: (class Elf_strtab): New class.
gold/:
* gold.cc: (queue_initial_tasks): Pass incremental_inputs to
Incremental_checker.
* incremental.cc: (INCREMENTAL_LINK_VERSION): Change type to
unsigned int.
(class Incremental_inputs_header): New class.
(Incremental_inputs_header_writer): Edit comment.
(Incremental_inputs_entry): New class.
(Incremental_inputs_entry_writer): Edit comment.
(Sized_incremental_binary::do_find_incremental_inputs_section):
Add *strtab_shndx parameter, fill it.
(Sized_incremental_binary::do_check_inputs): New method.
(Incremental_checker::can_incrementally_link_output_file): Use
Sized_incremental_binary::check_inputs.
(Incremental_inputs::report_command_line): Save command line in
command_line_.
* incremental.h:
(Incremental_binary::find_incremental_inputs_section): New
method.
(Incremental_binary::do_find_incremental_inputs_section): Add
strtab_shndx parameter.
(Incremental_binary::do_check_inputs): New pure virtual method.
(Sized_incremental_binary::do_check_inputs): Declare.
(Incremental_checker::Incremental_checker): Add incremental_inputs
parameter, use it to initialize incremental_inputs_.
(Incremental_checker::incremental_inputs_): New field.
(Incremental_checker::command_line): New method.
(Incremental_checker::inputs): New method.
(Incremental_checker::command_line_): New field.

14 years agoelfcpp/:
Ian Lance Taylor [Fri, 9 Oct 2009 16:40:50 +0000 (16:40 +0000)]
elfcpp/:
* elfcpp_file.h: Fix header guard.  Include <cstdio>.
(class Elf_recognizer): New class, code from gold/object.cc.
(Elf_file::find_section_by_type): New method.
gold/:
* incremental.cc: Include <cstdarg> and "target-select.h".
(vexplain_no_incremental): New function.
(explain_no_incremental): New function.
(Incremental_binary::error): New method.
(Sized_incremental_binary::do_find_incremental_inputs_section): New
method.
(make_sized_incremental_binary): New function.
(open_incremental_binary): New function.
(can_incrementally_link_file): Add checks if output is ELF and has
inputs section.
* incremental.h: Include "elfcpp_file.h" and "output.h".
(Incremental_binary): New class.
(Sized_incremental_binary): New class.
(open_incremental_binary): Declare.
* object.cc (is_elf_object): Use
elfcpp::Elf_recognizer::is_elf_file.
(make_elf_object): Use elfcpp::Elf_recognizer::is_valid_header.
* output.h (Output_file::filesize): New method.

14 years agomerge from gcc
DJ Delorie [Fri, 9 Oct 2009 16:17:35 +0000 (16:17 +0000)]
merge from gcc

14 years agobfd/
Tristan Gingold [Fri, 9 Oct 2009 15:33:37 +0000 (15:33 +0000)]
bfd/
2009-10-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH.
(bfd_mach_o_bfd_print_private_bfd_data): Ditto.

14 years ago2009-10-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 9 Oct 2009 15:14:55 +0000 (15:14 +0000)]
2009-10-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Rename to
bfd_mach_o_read_symtab_symbols.
(bfd_mach_o_scan_write_thread): Rename to bfd_mach_o_write_thread.
(bfd_mach_o_scan_write_relocs): Rename to bfd_mach_o_write_relocs.
(bfd_mach_o_scan_write_section_32): Rename to
bfd_mach_o_write_section_32.
(bfd_mach_o_scan_write_section_64): Rename to
bfd_mach_o_write_section_64.
(bfd_mach_o_scan_write_segment_32): Rename to
bfd_mach_o_write_segment_32.
(bfd_mach_o_scan_write_segment_64): Rename to
bfd_mach_o_write_segment_64.
(bfd_mach_o_scan_write_symtab): Rename to bfd_mach_o_write_symtab.
(bfd_mach_o_scan_read_section_32): Rename to
bfd_mach_o_read_section_32.
(bfd_mach_o_scan_read_section_64): Rename to
bfd_mach_o_read_section_64.
(bfd_mach_o_scan_read_section): Rename to bfd_mach_o_read_section.
(bfd_mach_o_scan_read_symtab_strtab): Rename to
bfd_mach_o_read_symtab_strtab.
(bfd_mach_o_scan_read_symtab_symbol): Rename to
bfd_mach_o_read_symtab_symbol.
(bfd_mach_o_scan_read_dysymtab_symbol): Rename to
bfd_mach_o_read_dysymtab_symbol.
(bfd_mach_o_scan_read_dylinker): Rename to bfd_mach_o_read_dylinker.
(bfd_mach_o_scan_read_dylib): Rename to bfd_mach_o_read_dylib.
(bfd_mach_o_scan_read_prebound_dylib): Rename to
bfd_mach_o_read_prebound_dylib.
(bfd_mach_o_scan_read_thread): Rename to bfd_mach_o_read_thread.
(bfd_mach_o_scan_read_dysymtab): Rename to bfd_mach_o_read_dysymtab.
(bfd_mach_o_scan_read_symtab): Rename to bfd_mach_o_read_symtab.
(bfd_mach_o_scan_read_uuid): Rename to bfd_mach_o_read_uuid.
(bfd_mach_o_scan_read_linkedit): Rename to bfd_mach_o_read_linkedit.
(bfd_mach_o_scan_read_str): Rename to bfd_mach_o_read_str.
(bfd_mach_o_scan_read_dyld_info): Rename to bfd_mach_o_read_dyld_info.
(bfd_mach_o_scan_read_segment): Rename to bfd_mach_o_read_segment.
(bfd_mach_o_scan_read_segment_32): Rename to
bfd_mach_o_read_segment_32.
(bfd_mach_o_scan_read_segment_64): Rename to
bfd_mach_o_read_segment_64.
(bfd_mach_o_scan_read_command): Rename to bfd_mach_o_read_command.
* mach-o.h (bfd_mach_o_scan_read_dysymtab_symbol): Rename to
bfd_mach_o_read_dysymtab_symbol.

14 years ago2009-10-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 9 Oct 2009 13:32:49 +0000 (13:32 +0000)]
2009-10-09  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10749
* ld-elf/relocatable.d: New.
* ld-elf/relocatable.t: Likewise.
* ld-elf/simple.s: Likewise.

14 years ago2009-10-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 9 Oct 2009 08:18:16 +0000 (08:18 +0000)]
2009-10-09  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_section_get_entry_size): Moved.
(bfd_mach_o_section_get_nbr_indirect): Ditto.
(bfd_mach_o_get_synthetic_symtab): New function.
(bfd_mach_o_print_private_header): Print the number of commands
in decimal.
* mach-o.h (bfd_mach_o_get_synthetic_symtab): Add prototype.
* mach-o-target.c: Do not defined bfd_mach_o_get_synthetic_symtab.

14 years ago PR ld/10749
Alan Modra [Fri, 9 Oct 2009 05:19:37 +0000 (05:19 +0000)]
PR ld/10749
* ldlang.c (lang_size_sections_1): Zero section vmas only for COFF.

14 years agomerge from gcc
DJ Delorie [Fri, 9 Oct 2009 04:49:48 +0000 (04:49 +0000)]
merge from gcc

14 years agodaily update
Alan Modra [Thu, 8 Oct 2009 22:59:56 +0000 (22:59 +0000)]
daily update

14 years ago2009-10-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 8 Oct 2009 12:46:16 +0000 (12:46 +0000)]
2009-10-08  Tristan Gingold  <gingold@adacore.com>

* config.bfd: Add bfd_mach_o_i386_vec in x86_64-darwin targ_selvecs.

14 years ago2009-10-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 8 Oct 2009 12:44:57 +0000 (12:44 +0000)]
2009-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10704
* gas/i386/intelok.s: Move 2 PIC tests to ...
* gas/i386/intelpic.s: Here.

* gas/i386/intelok.d: Updated.
* gas/i386/intelpic.d: Likewise.

14 years ago2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 8 Oct 2009 02:38:25 +0000 (02:38 +0000)]
2009-10-07  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10744
* ld-scripts/phdrs3.exp: Run phdrs3a.

* ld-scripts/phdrs3a.d: New.
* ld-scripts/phdrs3a.t: Likewise.

14 years ago PR ld/10744
Alan Modra [Thu, 8 Oct 2009 01:11:56 +0000 (01:11 +0000)]
PR ld/10744
* ld-scripts/phdrs3.d: Update.

14 years ago PR ld/10744
Alan Modra [Thu, 8 Oct 2009 01:00:27 +0000 (01:00 +0000)]
PR ld/10744
* ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
first PT_LOAD header.
* ld.texinfo: Update.

14 years agodaily update
Alan Modra [Wed, 7 Oct 2009 22:59:59 +0000 (22:59 +0000)]
daily update

14 years ago2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 7 Oct 2009 20:02:05 +0000 (20:02 +0000)]
2009-10-07  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10704
* gas/i386/intelok.s: Add 2 new tests.
* gas/i386/intelok.d: Updated.

14 years agoChecked in the missing testcases.
H.J. Lu [Wed, 7 Oct 2009 18:33:20 +0000 (18:33 +0000)]
Checked in the missing testcases.

14 years agoAdd the missing entry.
H.J. Lu [Wed, 7 Oct 2009 18:31:50 +0000 (18:31 +0000)]
Add the missing entry.

14 years ago * arm.cc (Arm_relocate_functions::extract_arm_movw_movt_addend):
Ian Lance Taylor [Wed, 7 Oct 2009 15:41:50 +0000 (15:41 +0000)]
* arm.cc (Arm_relocate_functions::extract_arm_movw_movt_addend):
New function.
(Arm_relocate_functions::insert_val_arm_movw_movt): New function.
(Arm_relocate_functions::extract_thumb_movw_movt_addend): New
function.
(Arm_relocate_functions::insert_val_thumb_movw_movt): New
function.
(Arm_relocate_functions::movw_abs_nc): New function.
(Arm_relocate_functions::movt_abs): New function.
(Arm_relocate_functions::thm_movw_abs_nc): New function.
(Arm_relocate_functions::thm_movt_abs): New function.
(Scan::local): Handle R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS,
R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS.
(Scan::global): Likewise.
(Relocate::relocate): Likewise.
(Relocatable_size_for_reloc::get_size_for_reloc): Likewise.

14 years ago* opcodes/microblaze-dis.c: Add include for microblaze-dis.h,
Michael Eager [Wed, 7 Oct 2009 15:40:17 +0000 (15:40 +0000)]
* opcodes/microblaze-dis.c: Add include for microblaze-dis.h,
eliminate local extern decls.
* opcodes/microblaze-dis.h: New.

14 years ago * arm.cc (Arm_relocate_functions::got_prel) New function.
Ian Lance Taylor [Wed, 7 Oct 2009 15:30:40 +0000 (15:30 +0000)]
* arm.cc (Arm_relocate_functions::got_prel) New function.
(Scan::local, Scan::global): Handle R_ARM_GOT_PREL.
(Relocate::relocate): Likewise.
(Relocatable_size_for_reloc::get_size_for_reloc): Likewise.

14 years ago * config/tc-arm.c (mapping_state, mapping_state_2): Make dummy
Nathan Sidwell [Wed, 7 Oct 2009 14:00:05 +0000 (14:00 +0000)]
* config/tc-arm.c (mapping_state, mapping_state_2): Make dummy
versions slightly more than nothing.

14 years ago * doc/c-arm.texi (ARM Options): Correctly name the two mapcs options.
Nathan Sidwell [Wed, 7 Oct 2009 13:46:54 +0000 (13:46 +0000)]
* doc/c-arm.texi (ARM Options): Correctly name the two mapcs options.

14 years ago ld/
Nathan Sidwell [Wed, 7 Oct 2009 07:25:35 +0000 (07:25 +0000)]
ld/
* ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
segments do not appear after a different loadable segment.
* ld.texinfo (PHDRS): Document order of processing segments.
Document where PHDRS and FILEHDR may appear.

ld/testsuite/
* ld-scripts/phdrs3.d: New.
* ld-scripts/phdrs3.t: New.
* ld-scripts/phdrs3.exp: New.

14 years agoSync with gcc repository.
Ian Lance Taylor [Wed, 7 Oct 2009 05:57:48 +0000 (05:57 +0000)]
Sync with gcc repository.

14 years ago PR gas/2117
Alan Modra [Wed, 7 Oct 2009 05:13:53 +0000 (05:13 +0000)]
PR gas/2117
* config/tc-ia64.c (parse_operand): Use expression rather than
expression_and_evalute.
(parse_operand_and_eval): New function.  Replace all uses of
parse_operand outside of parse_operands with this function.
(parse_operans_maybe_eval): New function.  Replace uses of
parse_operand in parse_operands, except for the dummy, with
this function.

14 years agomerge from gcc
DJ Delorie [Wed, 7 Oct 2009 02:57:27 +0000 (02:57 +0000)]
merge from gcc

14 years ago * options.h (class General_options): Define
Ian Lance Taylor [Tue, 6 Oct 2009 22:58:27 +0000 (22:58 +0000)]
* options.h (class General_options): Define
split_stack_adjust_size parameter.
* object.h (class Object): Add uses_split_stack_ and
has_no_split_stack_ fields.  Add uses_split_stack and
has_no_split_stack accessor functions.  Declare
handle_split_stack_section.
(class Reloc_symbol_changes): Define.
(class Sized_relobj): Define Function_offsets.  Declare
split_stack_adjust, split_stack_adjust_reltype, and
find_functions.
* object.cc (Object::handle_split_stack_section): New function.
(Sized_relobj::do_layout): Call handle_split_stack_section.
* dynobj.cc (Sized_dynobj::do_layout): Call
handle_split_stack_section.
* reloc.cc (Sized_relobj::relocate_sections): Call
split_stack_adjust for executable sections in split_stack
objects.  Pass reloc_map to relocate_section.
(Sized_relobj::split_stack_adjust): New function.
(Sized_relobj::split_stack_adjust_reltype): New function.
(Sized_relobj::find_functions): New function.
* target-reloc.h: Include "object.h".
(relocate_section): Add reloc_symbol_changes parameter.  Change
all callers.
* target.h (class Target): Add calls_non_split method.  Declare
do_calls_non_split virtual method.  Declare match_view and
set_view_to_nop.
* target.cc: Include "elfcpp.h".
(Target::do_calls_non_split): New function.
(Target::match_view): New function.
(Target::set_view_to_nop): New function.
* gold.cc (queue_middle_tasks): Give an error if mixing
split-stack and non-split-stack objects with -r.
* i386.cc (Target_i386::relocate_section): Add
reloc_symbol_changes parameter.
(Target_i386::do_calls_non_split): New function.
* x86_64.cc (Target_x86_64::relocate_section): Add
reloc_symbol_changes parameter.
(Target_x86_64::do_calls_non_split): New function.
* arm.cc (Target_arm::relocate_section): Add reloc_symbol_changes
parameter.
* powerpc.cc (Target_powerpc::relocate_section): Add
reloc_symbol_changes parameter.
* sparc.cc (Target_sparc::relocate_section): Add
reloc_symbol_changes parameter.
* configure.ac: Call AM_CONDITIONAL for the default target.
* configure: Rebuild.
* testsuite/Makefile.am (TEST_AS): New variable.
(check_SCRIPTS): Add split_i386.sh and split_x86_64.sh.
(check_DATA): Add split_i386 and split_x86_64 files.
(SPLIT_DEFSYMS): Define.
(split_i386_[1234n].o): New targets.
(split_i386_[124]): New targets.
(split_i386_[1234r].stdout): New targets.
(split_x86_64_[1234n].o): New targets.
(split_x86_64_[124]): New targets.
(split_x86_64_[1234r].stdout): New targets.
(MOSTLYCLEANFILES): Add new executables.
* testsuite/split_i386.sh: New file.
* testsuite/split_x86_64.sh: New file.
* testsuite/split_i386_1.s: New file.
* testsuite/split_i386_2.s: New file.
* testsuite/split_i386_3.s: New file.
* testsuite/split_i386_4.s: New file.
* testsuite/split_i386_n.s: New file.
* testsuite/split_x86_64_1.s: New file.
* testsuite/split_x86_64_2.s: New file.
* testsuite/split_x86_64_3.s: New file.
* testsuite/split_x86_64_4.s: New file.
* testsuite/split_x86_64_n.s: New file.
* testsuite/testfile.cc (Target_test): Update relocation_section
function.
* testsuite/Makefile.in: Rebuild.

14 years agoTweak last patch.
Ian Lance Taylor [Tue, 6 Oct 2009 21:44:11 +0000 (21:44 +0000)]
Tweak last patch.

14 years ago * i386.cc (class Target_i386::Relocate): Add ldo_addrs_ field.
Ian Lance Taylor [Tue, 6 Oct 2009 21:36:00 +0000 (21:36 +0000)]
* i386.cc (class Target_i386::Relocate): Add ldo_addrs_ field.
(Target_i386::Relocate::relocate_tls): Call fix_up_ldo before
changing local_dynamic_type_ from LOCAL_DYNAMIC_NONE.  When
handling R_386_TLS_LDO_32, if local_dynamic_type_ is NONE, push
the address on ldo_addrs_.
(Target_i386::Relocate::fix_up_ldo): New function.

14 years ago * plugin.cc (add_input_library): New.
Ian Lance Taylor [Tue, 6 Oct 2009 20:15:09 +0000 (20:15 +0000)]
* plugin.cc (add_input_library): New.
(Plugin::load): Add add_input_library to tv.
(Plugin_manager::add_input_file): Add the is_lib argument.
(add_input_file): Update call to Plugin_manager::add_input_file.
(add_input_library): New.
* plugin.h (Plugin_manager::add_input_file): Add the is_lib argument.

14 years agoMerge from gcc repository.
Ian Lance Taylor [Tue, 6 Oct 2009 20:14:05 +0000 (20:14 +0000)]
Merge from gcc repository.

14 years ago2009-10-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 6 Oct 2009 19:41:12 +0000 (19:41 +0000)]
2009-10-06  H.J. Lu  <hongjiu.lu@intel.com>

* bfd-in2.h: Regenerated.

14 years agoUpdated Finnish translation
Nick Clifton [Tue, 6 Oct 2009 15:44:39 +0000 (15:44 +0000)]
Updated Finnish translation

14 years agodaily update
Alan Modra [Mon, 5 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago PR gas/10704
Alan Modra [Mon, 5 Oct 2009 21:58:19 +0000 (21:58 +0000)]
PR gas/10704
* symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.

14 years ago * read.c (s_reloc): Don't use expression_and_evaluate.
Alan Modra [Mon, 5 Oct 2009 21:57:12 +0000 (21:57 +0000)]
* read.c (s_reloc): Don't use expression_and_evaluate.

14 years ago * opc2c.c: Include "libiberty.h" and <errno.h>.
Nick Clifton [Mon, 5 Oct 2009 13:14:55 +0000 (13:14 +0000)]
    * opc2c.c: Include "libiberty.h" and <errno.h>.
        (orig_filename): Constify.
        (dump_lines): Fix line number directive.
        (main): Set orig_filename to basename of input file.  Use
        xstrerror.

        * Makefile.am (rx-dis.lo): Remove explicit dependencies.
        ($(srcdir)/rx-decode.c): Use @MAINT@.  Use $(EXEEXT_FOR_BUILD)
        instead of $(EXEEXT).
        (opc2c$(EXEEXT_FOR_BUILD)): Renamed from opc2c$(EXEEXT) and use
        $(LINK_FOR_BUILD).  Link with libiberty.
        (MOSTLYCLEANFILES): Add opc2c$(EXEEXT_FOR_BUILD).
        (MAINTAINERCLEANFILES): Add $(srcdir)/rx-decode.c.
        * Makefile.in: Regenerated.
        * rx-decode.c: Regenerated.

14 years agodaily update
Alan Modra [Sun, 4 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update

14 years agodaily update
Alan Modra [Sat, 3 Oct 2009 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agoRevert the last change.
H.J. Lu [Sat, 3 Oct 2009 17:00:16 +0000 (17:00 +0000)]
Revert the last change.

14 years ago2009-10-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 3 Oct 2009 14:36:34 +0000 (14:36 +0000)]
2009-10-03  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am ($(srcdir)/rx-decode.c): Add @MAINT@.
(rx-dis.lo): Remove a space.
(pc2c$(EXEEXT)): Remove a space. Use $(LINK_FOR_BUILD) instead
of gcc.
(MAINTAINERCLEANFILES): Add $(srcdir)/rx-decode.c.
* Makefile.in: Regenerated.

14 years ago * arm-dis.c (print_insn): Check symtab_size not *symtab.
Alan Modra [Sat, 3 Oct 2009 00:39:53 +0000 (00:39 +0000)]
* arm-dis.c (print_insn): Check symtab_size not *symtab.

14 years agodaily update
Alan Modra [Sat, 3 Oct 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago2009-10-02 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 2 Oct 2009 19:03:40 +0000 (19:03 +0000)]
2009-10-02  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Drop Disp64 on jump and loop instructions.
* i386-tbl.h: Regenerated.

14 years agomerge from gcc
DJ Delorie [Fri, 2 Oct 2009 18:22:51 +0000 (18:22 +0000)]
merge from gcc

14 years agotypo fix
Alan Modra [Fri, 2 Oct 2009 15:35:01 +0000 (15:35 +0000)]
typo fix

14 years agold/
Alan Modra [Fri, 2 Oct 2009 15:00:30 +0000 (15:00 +0000)]
ld/
* emultempl/ppc32elf.em (emit_stub_syms): Init to -1.
(ppc_after_open): Set emit_stubs_syms by default when shared.
(OPTION_NO_STUBSYMS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
* emultempl/ppc64elf.em (emit_stub_syms): Init to -1.
(gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default.
(OPTION_NO_STUBSYMS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
ld/testsuite/
* ld-powerpc/tlsexe.d: Update.
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.r: Update.

14 years agogas/
Peter Bergner [Fri, 2 Oct 2009 14:42:42 +0000 (14:42 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Document -m476.
* doc/c-ppc.texi (PowerPC-Opts): Document -m476.

gas/testsuite/
* gas/ppc/476.s: New test.
* gas/ppc/476.d: Likewise.
* gas/ppc/ppc.exp: Run the 476 test.

include/opcode/
* ppc.h (PPC_OPCODE_476): Define.

opcodes/
* ppc-dis.c (ppc_opts): Add "476" entry.
* ppc-opc.c (PPC476): Define.
(powerpc_opcodes): Update mnemonics where required for 476.

14 years agoinclude/aout/
Alan Modra [Fri, 2 Oct 2009 14:40:41 +0000 (14:40 +0000)]
include/aout/
* aout64.h (N_SHARED_LIB): Define as zero if not already defined.
* sun4.h (N_SHARED_LIB): Define.
* hp300hpux.h (N_SHARED_LIB): Don't define.
bfd/
* aout-cris.c (N_SHARED_LIB): Don't define.
* hp300bsd.c (N_SHARED_LIB): Don't define.
* i386bsd.c (N_SHARED_LIB): Don't define.
* i386linux.c (N_SHARED_LIB): Don't define.
* i386lynx.c (N_SHARED_LIB): Don't define.
* m68klinux.c (N_SHARED_LIB): Don't define.
* m88kmach3.c (N_SHARED_LIB): Don't define.
* mipsbsd.c (N_SHARED_LIB): Don't define.
* newsos3.c (N_SHARED_LIB): Don't define.
* pc532-mach.c (N_SHARED_LIB): Don't define.
* pdp11.c (N_SHARED_LIB): Don't define.
* sparclinux.c (N_SHARED_LIB): Don't define.
* vaxbsd.c (N_SHARED_LIB): Don't define.

14 years ago * dw2gencfi.c: Include dwarf2dbg.h.
Jakub Jelinek [Fri, 2 Oct 2009 11:33:50 +0000 (11:33 +0000)]
* dw2gencfi.c: Include dwarf2dbg.h.
(DWARF2_FORMAT): Define if not defined.
(dot_cfi_sections): New function.
(cfi_pseudo_table): Handle .cfi_sections.
(CFI_EMIT_eh_frame, CFI_EMIT_debug_frame): Define.
(cfi_sections): New variable.
(output_cie, output_fde, select_cie_for_fde): Add eh_frame
argument, add supporting for outputting .debug_frame
section.
(cfi_change_reg_numbers): New function or macro.
(cfi_finish): Only emit .eh_frame if
cfi_sections & CFI_EMIT_eh_frame.  Emit .debug_frame if
cfi_sections & CFI_EMIT_debug_frame.
* config/tc-ppc.h (md_reg_eh_frame_to_debug_frame): Define.
* doc/as.texinfo (CFI directives): Document .cfi_sections.

14 years agodaily update
Alan Modra [Fri, 2 Oct 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago * lib/ld-lib.exp (ld_simple_link_defsyms): New proc, adding
Alan Modra [Thu, 1 Oct 2009 23:29:29 +0000 (23:29 +0000)]
* lib/ld-lib.exp (ld_simple_link_defsyms): New proc, adding
powerpc-*-rtems to code setting symbols, extracted from..
* ld-srec/srec.exp (run_srec_test): ..here.  Correct flags for sh64.
* ld-gc/gc.exp (test_gc): Use ld_simple_link_defsyms.

14 years ago * cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux
Dave Korn [Thu, 1 Oct 2009 19:48:12 +0000 (19:48 +0000)]
* cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux
symbol for a weak undef in the auxbfd, not the input bfd.

14 years agogas/
Peter Bergner [Thu, 1 Oct 2009 19:24:48 +0000 (19:24 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2".
* doc/c-ppc.texi (PowerPC-Opts): Likewise.

gas/testsuite/
* gas/ppc/a2.d: Rename "ppca2" to "a2".

include/opcode/
* ppc.h (PPC_OPCODE_A2): Rename from PPC_OPCODE_PPCA2.

opcodes/
* ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2.
* ppc-dis.c (ppc_opts): Likewise.
Rename "ppca2" to "a2".

14 years ago2009-10-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 1 Oct 2009 14:31:43 +0000 (14:31 +0000)]
2009-10-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (x86_cons): Reformat.

14 years agobfd/
Ulrich Weigand [Thu, 1 Oct 2009 13:09:56 +0000 (13:09 +0000)]
bfd/
* elf32-spu.c (spu_elf_auto_overlay): Insert icache linker script
after .toe instead of before .text section.  Set the LMA of all
overlay sections to their icache IA address.
(spu_elf_find_overlays): Determine icache set id without reference
to the LMA.

ld/testsuite/
* ld-spu/icache1.d: Update to new section layout.

14 years ago2009-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Thu, 1 Oct 2009 08:19:55 +0000 (08:19 +0000)]
2009-10-01  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

       * crx-dis.c (match_opcode): Truncate mcode to 32-bit.

14 years ago * addr2line.c (slurp_symtab): Don't use bfd_read_minisymbols.
Alan Modra [Thu, 1 Oct 2009 06:33:15 +0000 (06:33 +0000)]
* addr2line.c (slurp_symtab): Don't use bfd_read_minisymbols.

14 years ago2009-09-30 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 1 Oct 2009 00:58:38 +0000 (00:58 +0000)]
2009-09-30  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::may_need_copy_reloc): Check for THUMB function
symbol and call Symbol::may_need_copy_reloc to determine if
a copy reloc is needed.
* copy-relocs.cc (Copy_relocs::need_copy_reloc): Return false if -z
nocopyreloc is given in command line.
(Copy_relocs::emit_copy_reloc): Assert that -z nocopyreloc is not
given in command line.
* i386.cc (Target_i386::may_need_copy_reloc): Remove.
(Target_i386::Scan::global): Use Symbol::may_need_copy_reloc instead
of the removed Target_i386::may_need_copy_reloc.
* options.h (copyreloc): New option with default value false.
* powerpc.cc (Target_powerpc::may_need_copy_reloc): Remove.
(Target_powerpc::Scan::global): Use Symbol::may_need_copy_reloc
instead of the removed Target_powerpc::may_need_copy_reloc.
* sparc.cc (Target_powerpc::may_need_copy_reloc): Remove.
(Target_sparc::Scan::global): Use Symbol::may_need_copy_reloc
instead of the removed Target_sparc::may_need_copy_reloc.
* symtab.h (Symbol::may_need_copy_reloc): New method definition.
* x86_64.cc (Target_powerpc::may_need_copy_reloc): Remove.
(Target_x86_64::Scan::global): Use Symbol::may_need_copy_reloc
instead of the removed Target_x86_64::may_need_copy_reloc.

14 years agodaily update
Alan Modra [Thu, 1 Oct 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago * object.h (class Object): Remove target_ field, and target,
Ian Lance Taylor [Wed, 30 Sep 2009 22:21:13 +0000 (22:21 +0000)]
* object.h (class Object): Remove target_ field, and target,
sized_target, and set_target methods.
(Object::sized_target): Remove.
(class Sized_relobj): Update declarations.  Remove sized_target.
* object.cc (Sized_relobj::setup): Remove target parameter.
Change all callers.
(Input_objects::add_object): Don't do anything with the target.
(make_elf_sized_object): Add punconfigured parameter.  Change all
callers.  Set or test parameter target.
* dynobj.cc (Sized_dynobj::target): Remove target parameter.
Change all callers.
* parameters.cc (Parameters::set_target): Change parameter type to
be non-const.
(Parameters::default_target): Remove.
(set_parameters_target): Change parameter type to be non-const.
(parameters_force_valid_target): New function.
(parameters_clear_target): New function.
* parameters.h (class Parameters): Update declarations.  Remove
default_target method.  Add sized_target and clear_target
methods.  Change target_ to be non-const.
(set_parameters_target): Update declaration.
(parameters_force_valid_target): Declare.
(parameters_clear_target): Declare.
* readsyms.cc (Read_symbols::do_read_symbols): Pass punconfigured
as NULL if we aren't searching.
(Add_symbols::run): Don't check for compatible target.
* fileread.cc (Input_file::open_binary): Call
parameters_force_valid_target.
* gold.cc (queue_middle_tasks): Likewise.
* plugin.cc (make_sized_plugin_object): Likewise.  Don't call
set_target on object.
* dynobj.h (class Sized_dynobj): Update declarations.
* archive.cc (Archive::get_elf_object_for_member): Return NULL if
make_elf_object returns NULL.
(Archive::include_member): Don't check whether object target is
compatible.
* output.cc (Output_section::add_input_section): Get target from
parameters.
(Output_section::relax_input_section): Likewise.
* reloc.cc (Sized_relobj::do_gc_process_relocs): Get target from
parameters.
(Sized_relobj::do_scan_relocs): Likewise.
(Sized_relobj::relocate_sections): Likewise.
* resolve.cc (Symbol_table::resolve): Likewise.
* symtab.cc (Symbol_table::wrap_symbol): Likewise.  Remove object
parameter.  Change all callers.
(Symbol_table::add_from_object): Get target from parameters.
(Symbol_table::add_from_relobj): Don't check object target.
(Symbol_table::add_from_dynobj): Likewise.
(Symbol_table::define_special_symbol): Get target from
parameters.
* symtab.h (class Symbol_table): Update declaration.
* testsuite/binary_unittest.cc (gold_testsuite): Remove target
parameter.  Change all callers.  Clear parameter target.
(Binary_test): Test target here.
* testsuite/object_unittest.cc (gold_testsuite): Remove
target_test_pointer parameter.  Change all callers.
(Object_test): Test target here.

14 years ago2009-09-30 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 30 Sep 2009 13:12:50 +0000 (13:12 +0000)]
2009-09-30  Tristan Gingold  <gingold@adacore.com>

* configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS.

14 years agodaily update
Alan Modra [Wed, 30 Sep 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago2009-09-29 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 29 Sep 2009 21:31:07 +0000 (21:31 +0000)]
2009-09-29  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc:
2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

* configure.ac: Update minimum MPC version to 0.7.
* configure: Regenerate.

14 years ago * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
Nick Clifton [Tue, 29 Sep 2009 16:28:52 +0000 (16:28 +0000)]
    * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
        (rts).

14 years ago * doc/binutils.texi (c++filt): Remove spurious description of
Nick Clifton [Tue, 29 Sep 2009 15:34:08 +0000 (15:34 +0000)]
    * doc/binutils.texi (c++filt): Remove spurious description of
        nonexistent --java command line switch for cxxfilt.

14 years ago2009-09-29 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 29 Sep 2009 14:37:57 +0000 (14:37 +0000)]
2009-09-29  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf64_x86_64_append_rela): New.
(elf64_x86_64_relocate_section): Use it.
(elf64_x86_64_finish_dynamic_symbol): Likewise.

14 years agobfd
Nick Clifton [Tue, 29 Sep 2009 14:17:19 +0000 (14:17 +0000)]
bfd
        * Makefile.am (ALL_MACHINES): Add cpu-rx.lo.
        (ALL_MACHINES_CFILES): Add cpu-rx.c.
        (BFD32_BACKENDS): Add elf32-rx.lo.
        (BFD32_BACKENDS_CFILES): Add elf32-rx.c.
        * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx.
        Export bfd_rx_arch.
        (bfd_archures_list): Add bfd_rx_arch.
        * config.bfd: Add entry for rx-*-elf.
        * configure.in: Add entries for bfd_elf32_rx_le_vec and
        bfd_elf32_rx_be_vec.
        * reloc.c: Add RX relocations.
        * targets.c: Add RX target vectors.
        * Makefile.in: Regenerate.
        * bfd-in2.h: Regenerate.
        * configure: Regenerate.
        * libbfd.h: Regenerate.
        * cpu-rx.c: New file.
        * elf32-rx.c: New file.

binutils
        * readelf.c: Add support for RX target.
        * MAINTAINERS: Add DJ and NickC as maintainers for RX.

gas
        * Makefile.am: Add RX target.
        * configure.in: Likewise.
        * configure.tgt: Likewise.
        * read.c (do_repeat_with_expander): New function.
        * read.h: Provide a prototype for do_repeat_with_expander.
        * doc/Makefile.am: Add RX target documentation.
        * doc/all.texi: Likewise.
        * doc/as.texinfo: Likewise.
        * Makefile.in: Regenerate.
        * NEWS: Mention support for RX architecture.
        * configure: Regenerate.
        * doc/Makefile.in: Regenerate.
        * config/rx-defs.h: New file.
        * config/rx-parse.y: New file.
        * config/tc-rx.h: New file.
        * config/tc-rx.c: New file.
        * doc/c-rx.texi: New file.

gas/testsuite
        * gas/rx: New directory.
        * gas/rx/*: New set of test cases.
        * gas/elf/section2.e-rx: New expected output file.
        * gas/all/gas.exp: Add support for RX target.
        * gas/elf/elf.exp: Likewise.
        * gas/lns/lns.exp: Likewise.
        * gas/macros/macros.exp: Likewise.

include
        * dis-asm.h: Add prototype for print_insn_rx.

include/elf
        * rx.h: New file.

include/opcode
        * rx.h: New file.

ld
        * Makefile.am: Add rules to build RX emulation.
        * configure.tgt: Likewise.
        * NEWS: Mention support for RX architecture.
        * Makefile.in: Regenerate.
        * emulparams/elf32rx.sh: New file.
        * emultempl/rxelf.em: New file.

opcodes
        * Makefile.am: Add RX files.
        * configure.in: Add support for RX target.
        * disassemble.c: Likewise.
        * Makefile.in: Regenerate.
        * configure: Regenerate.
        * opc2c.c: New file.
        * rx-decode.c: New file.
        * rx-decode.opc: New file.
        * rx-dis.c: New file.

14 years agoopcodes/
Peter Bergner [Tue, 29 Sep 2009 13:19:10 +0000 (13:19 +0000)]
opcodes/
* ppc-opc.c (powerpc_opcodes): Remove support for the the "lxsdux",
"lxvd2ux", "lxvw4ux", "stxsdux", "stxvd2ux" and "stxvw4ux" opcodes.

gas/testsuite/
* gas/ppc/vsx.s ("lxsdux", "lxvd2ux", "lxvw4ux", "stxsdux",
"stxvd2ux", "stxvw4ux"): Remove tests.
* gas/ppc/vsx.d: Likewise.
* gas/ppc/power7.s: Likewise.
* gas/ppc/power7.d: Likewise.

14 years ago2009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Tue, 29 Sep 2009 11:55:09 +0000 (11:55 +0000)]
2009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>

       * elf32-cr16.c (elf32_cr16_relocate_section): Removed info->relocatable
       to fix the ld/testsuites/ld-elf/linkonce1 test case.

14 years ago * ldlang.c (lang_size_sections_1): Allow scripts to specify a
Alan Modra [Tue, 29 Sep 2009 02:24:56 +0000 (02:24 +0000)]
* ldlang.c (lang_size_sections_1): Allow scripts to specify a
non-zero vma even when relocatable.

14 years agodaily update
Alan Modra [Tue, 29 Sep 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * configure.in: Don't invoke configure.tgt on $enable_targets.
Alan Modra [Mon, 28 Sep 2009 12:48:16 +0000 (12:48 +0000)]
* configure.in: Don't invoke configure.tgt on $enable_targets.
* configure: Regenerate.

14 years agooops - omitted from previous delta
Nick Clifton [Mon, 28 Sep 2009 12:15:51 +0000 (12:15 +0000)]
oops - omitted from previous delta

14 years ago PR 10478
Nick Clifton [Mon, 28 Sep 2009 09:45:33 +0000 (09:45 +0000)]
    PR 10478
        * elf.c (bfd_section_from_shdr): Allow SHN_BEFORE and SHN_AFTER
        section link values in x86 binaries.
        * elfcode.h (elf_object_p): Likewise.
        * readelf.c (get_elf_section_flags): Allow SHN_BEFORE and
        SHN_AFTER section link values in x86 binaries.
        (process_section_headers): Likewise.