OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
14 years ago * elf32-cris.c (cris_elf_plt_sym_val): New function.
Hans-Peter Nilsson [Thu, 29 Oct 2009 11:49:00 +0000 (11:49 +0000)]
* elf32-cris.c (cris_elf_plt_sym_val): New function.
(elf_backend_plt_sym_val): Define.

14 years ago2009-10-29 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 29 Oct 2009 09:43:18 +0000 (09:43 +0000)]
2009-10-29  Tristan Gingold  <gingold@adacore.com>

* config/tc-mep.c (md_pseudo_table): Remove dwarf2 pseudo
as they are already defined in obj-elf.c
* config/tc-m32c.c (md_pseudo_table): Ditto.
* config/tc-spu.c (md_pseudo_table): Ditto.
* config/tc-avr.c (md_pseudo_table): Ditto.

14 years ago * object.h (class Relobj): Drop options parameter from
Ian Lance Taylor [Thu, 29 Oct 2009 05:16:22 +0000 (05:16 +0000)]
* object.h (class Relobj): Drop options parameter from
gc_process_relocs, scan_relocs, relocate, do_gc_process_relocs,
do_scan_relocs, do_relocate.  Change all callers.
(class Sized_relobj): Drop options parameters from
do_gc_process_relocs, do_scan_relocs, do_relocate,
do_relocate_sections, relocate_sections, emit_relocs_scan,
emit_relocs_scan_reltype.  Change all callers.
(struct Relocate_info): Remove options field and all references to
it.
* reloc.h (class Read_relocs): Remove options constructor
parameter and options_ field.  Change all callers.
(class Gc_process_relocs, class Scan_relocs): Likewise.
(class Relocate_task): Likewise.
* target-reloc.h (scan_relocs): Remove options parameter.  Change
all callers.
(scan_relocatable_relocs): Likewise.
* target.h (class Sized_target): Remove options parameter from
gc_process_relocs, scan_relocs, scan_relocatable_relocs.  Change
all callers.
* gc.h (gc_process_relocs): Remove options parameter.  Change all
callers.
* arm.cc: Update functions to remove options parameters.
* i386.cc: Likewise.
* powerpc.cc: Likewise.
* sparc.cc: Likewise.
* x86_64.cc: Likewise.
* testsuite/testfile.cc: Likewise.

14 years ago2009-10-28 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 29 Oct 2009 01:53:35 +0000 (01:53 +0000)]
2009-10-28  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj): New class definition.
(Arm_relobj::scan_sections_for_stubs,
Arm_relobj::do_count_local_symbols, Arm_relobj::do_relocate_sections):
New method definitions.

14 years ago * doc/as.texinfo (Set): Delete incorrect HPPA para.
Alan Modra [Thu, 29 Oct 2009 00:19:18 +0000 (00:19 +0000)]
* doc/as.texinfo (Set): Delete incorrect HPPA para.

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

14 years ago * plugin.h (Plugin::Plugin): Initialize cleanup_done_.
Cary Coutant [Wed, 28 Oct 2009 18:07:25 +0000 (18:07 +0000)]
* plugin.h (Plugin::Plugin): Initialize cleanup_done_.
(Plugin::cleanup_done_): New member.
(Plugin_manager::Plugin_manager): Remove cleanup_done_.
(Plugin_manager::cleanup_done_): Remove.
(Plugin_manager::add_input_file): Edit error message.
* plugin.cc (Plugin::cleanup): Test and set cleanup_done_.
(Plugin_manager::cleanup): Remove use of cleanup_done_.

14 years ago2009-10-28 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 28 Oct 2009 17:34:13 +0000 (17:34 +0000)]
2009-10-28  Kai Tietz  <kai.tietz@onevision.com>

        * emultempl/pep.em (U): Define underscore macro.
        (init): Use for __ImageBase U macro.

14 years ago2009-10-28 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 28 Oct 2009 17:21:36 +0000 (17:21 +0000)]
2009-10-28  Kai Tietz <kai.tietz@onevision.com>

* dlltool.c (leading_underscore): New local variable.
(asm_prefix): Interpret leading_underscore.
(xlate): Likewise.
(add_excludes): Use leading_underscore for making
symbol name.
(gen_exp_file): Use leading_underscore for internal
_imp_ symbols.
(usage): Add display of --no-leading-underscore and
--leading-underscore option.
(OPTION_NO_LEADING_UNDERSCORE): New.
(OPTION_LEADING_UNDERSCORE): New.
(long_options): Add --no-leading-underscore and
--leading-underscore option.
(main): Handle new options.
* doc/binutils.text: Add documentation of the options
--no-leading-underscore and --leading-underscore.

14 years ago2009-10-28 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 28 Oct 2009 17:21:06 +0000 (17:21 +0000)]
2009-10-28  Kai Tietz <kai.tietz@onevision.com>

* binutils-all/dlltool.exp: Add tests for --no-leading-underscore
and --leading-underscore option for dlltool.

14 years ago2009-10-28 Paul Brook <paul@codesourcery.com>
Paul Brook [Wed, 28 Oct 2009 16:50:43 +0000 (16:50 +0000)]
2009-10-28  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (opcode_lookup): Allow VFP/NEON type suffixes
unconditionally.

14 years ago PR gas/10856
Alan Modra [Wed, 28 Oct 2009 08:21:44 +0000 (08:21 +0000)]
PR gas/10856
* expr.c (resolve_expression): Only add "left" value to O_symbol
expression when the symbol is undefined and different from the
original symbol.  Simplify negative logic.

* gas/i386/intelpic.d: Correct.

14 years ago * fileread.cc: (File_read::View::~View): Use the new
Ian Lance Taylor [Wed, 28 Oct 2009 00:42:34 +0000 (00:42 +0000)]
* fileread.cc: (File_read::View::~View): Use the new
data_ownership_ filed.
(File_read::~File_read): Dispose the new whole_file_view_.
(File_read::open): Mmap the whole file if needed.
(File_read::open): Use whole_file_view_ instead of contents_.
(File_read::find_view): Use whole_file_view_ if applicable.
(File_read::do_read): Use whole_file_view_ instead of contents_.
(File_read::make_view): Use whole_file_view_ instead of contents_,
update File_read::View::View call.
(File_read::find_or_make_view): Update File_read::View::View
call.
* fileread.h: (File_read::File_read): Initialize whole_file_view_,
remove contents_
(File_read::View::Data_ownership): New enum.
(File_read::View::View): Replace bool mapped_ with Data_ownership
argument.
(File_read::View::mapped_): Remove (replaced by data_ownership_).
(File_read::View::data_ownership_): New field.
(File_read::contents_): Remove (replaced by whole_file_view_).
(File_read::whole_file_view_): New field.
* options.h (class General_options): Add --keep-files-mapped.

14 years ago * symtab.cc (add_from_pluginobj): Pass correct value for is_ordinary.
Cary Coutant [Wed, 28 Oct 2009 00:32:11 +0000 (00:32 +0000)]
* symtab.cc (add_from_pluginobj): Pass correct value for is_ordinary.
* testsuite/Makefile.am (plugin_test_5): New test case.
* testsuite/Makefile.in: Regenerate.

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

14 years ago2009-10-27 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 27 Oct 2009 15:39:27 +0000 (15:39 +0000)]
2009-10-27  Tristan Gingold  <gingold@adacore.com>

* config/tc-avr.c (md_pseudo_table): Add dwarf2 debug pseudo.
* config/tc-avr.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
(DWARF2_ADDR_SIZE): Define.

14 years ago2009-10-27 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 27 Oct 2009 10:53:27 +0000 (10:53 +0000)]
2009-10-27  Kai Tietz  <kai.tietz@onevision.com>

        * peXXigen.c (bfdver.h): Add include.
        (LINKER_VERSION): Do calculation based on BFD_VERSION.

14 years ago * Makefile.am (HFILES): Remove cgen-ops.h and cgen-types.h.
Alan Modra [Tue, 27 Oct 2009 01:49:26 +0000 (01:49 +0000)]
* Makefile.am (HFILES): Remove cgen-ops.h and cgen-types.h.

14 years ago PR gas/10850
Alan Modra [Mon, 26 Oct 2009 23:57:43 +0000 (23:57 +0000)]
PR gas/10850
* listing.c (listing_flags): Delete.
* listing.h: Likewise.
* read.c (potable <lflags>): Call s_ignore.

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

14 years ago * doc/as.texinfo: Add mention of RX port and inclusion of RX
Nick Clifton [Mon, 26 Oct 2009 10:27:34 +0000 (10:27 +0000)]
    * doc/as.texinfo: Add mention of RX port and inclusion of RX
        documentation.

14 years ago * doc/as.texinfo: Add mention of RX port and inclusion of RX
Nick Clifton [Mon, 26 Oct 2009 10:10:37 +0000 (10:10 +0000)]
    * doc/as.texinfo: Add mention of RX port and inclusion of RX
        documentation.

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

14 years ago2009-10-25 Doug Kwan <dougkwan@google.com>
Doug Kwan [Sun, 25 Oct 2009 16:57:32 +0000 (16:57 +0000)]
2009-10-25  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_output_section, Arm_relobj): Forward class declarations.
(Arm_input_section::as_arm_input_section): New method.
(Arm_output_section): New class definition.
(Arm_output_section::create_stub_group,
Arm_output_section::group_sections): New method definitions.

14 years ago* gas/z80/equ.d, gas/z80/equ.s: Added test of parsing equ directives.
Arnold Metselaar [Sun, 25 Oct 2009 16:18:04 +0000 (16:18 +0000)]
* gas/z80/equ.d, gas/z80/equ.s: Added test of parsing equ directives.
* gas/z80/z80.exp: Run it.

* gas/z80/redef.d: Expect little endian output only.

14 years ago* config/tc-z80.c (z80_start_line_hook): Fix parsing of 'equ' or
Arnold Metselaar [Sun, 25 Oct 2009 16:15:19 +0000 (16:15 +0000)]
* config/tc-z80.c (z80_start_line_hook): Fix parsing of 'equ' or
'defl' in cases where the space between the keyword and the
expression has been scrubbed away.
Do not check whether a symbol is redefined with 'equ' here;
the function equals takes an argument indicating whether
redefinitions are allowed.
Only call LISTING_NEWLINE if needed, and then after the call to
bump_line_counters.

14 years ago * doc/as.texinfo (Overview): Move -mfix7000/-mno-fix7000 to
Maciej W. Rozycki [Sun, 25 Oct 2009 02:11:13 +0000 (02:11 +0000)]
* doc/as.texinfo (Overview): Move -mfix7000/-mno-fix7000 to
match the order elsewhere.  Add -mfix-vr4120/-mno-fix-vr4120 and
-mfix-vr4130/-mno-fix-vr4130.
* doc/c-mips.texi (MIPS Opts): Correct -no-mfix-vr4120 to
-mno-fix-vr4120 and -no-mfix-vr4130 to -mno-fix-vr4130.

14 years ago * elf32-vax.c (elf_vax_relocate_section): Correct assertion.
Maciej W. Rozycki [Sun, 25 Oct 2009 01:43:05 +0000 (01:43 +0000)]
* elf32-vax.c (elf_vax_relocate_section): Correct assertion.

14 years ago * elf32-vax.c (elf_vax_plt_entry): Fix formatting.
Maciej W. Rozycki [Sun, 25 Oct 2009 01:27:56 +0000 (01:27 +0000)]
* elf32-vax.c (elf_vax_plt_entry): Fix formatting.

14 years ago * elf32-vax.c (elf_vax_relocate_section): Fix a typo.
Maciej W. Rozycki [Sun, 25 Oct 2009 00:49:43 +0000 (00:49 +0000)]
* elf32-vax.c (elf_vax_relocate_section): Fix a typo.

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

14 years ago2009-10-24 Doug Kwan <dougkwan@google.com>
Doug Kwan [Sat, 24 Oct 2009 09:36:15 +0000 (09:36 +0000)]
2009-10-24  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_output_section, Arm_relobj): Forward class declarations.
(Arm_input_section::as_arm_input_section): New method.
(Arm_output_section): New class definition.
(Arm_output_section::create_stub_group,
Arm_output_section::group_sections): New method definitions.

14 years ago cpu/
Doug Evans [Sat, 24 Oct 2009 00:17:07 +0000 (00:17 +0000)]
cpu/
* m32c.opc (opc.h): cgen-types.h -> cgen/basic-modes.h.
cgen-ops.h -> cgen/basic-ops.h.

include/opcode/
* cgen-bitset.h: Delete, moved to ../cgen/bitset.h.
* cgen.h: Update.  Improve multi-inclusion macro name.

include/cgen/
* basic-modes.h: New file.  Moved here from opcodes/cgen-types.h.
* basic-ops.h: New file.  Moved here from opcodes/cgen-ops.h.
* bitset.h: New file.  Moved here from ../opcode/cgen-bitset.h.
Update license to GPL v3.

opcodes/
* cgen-ops.h: Delete, moved to ../include/cgen/basic-ops.h.
* cgen-types.h: Delete, moved to ../include/cgen/basic-modes.h.
* cgen-bitset.c: Update.
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32c-opc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.

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

14 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 15:06:33 +0000 (15:06 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* splay-tree.h (libi_uhostptr_t): Add gcc specific
__extension__ for long long type case to silent cX9.
(libi_shostptr_t): Likewise.

14 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 14:53:56 +0000 (14:53 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* deflex.l: Allow '<' and '>' in ID names.

* defparse.y (EQUAL): New token constant.
(opt_import_name): New rule for emptry or '==' ID.
(expline): Add opt_import_name as last line element.
(impline): Likewise.
* dlltool.c (ifunct): New member its_name.
(export): Likewise.
(append_import): Add its_name argument.
(defexports): Likewise.
(defimport): Likewise.
(scan_drectve_symbols): Adjust calls to def_exports.
(dump_def_info): Print new optinal import/export table
symbol name.
(generate_idata_ofile): Use its_name member.
(make_one_lib_file): Likewise.
(nfunc): Take its_name in account on sort.
* dlltool.h (def_exports): Add its_name as argument.
(def_import): Likewise.
* doc/binutils.texi: Add new def file syntax extension.
* deflex.l (EQUAL): Add rule for '=='.
* NEWS: Mention new feature.

2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* binutils-all/dlltool.exp: Add new test.
* binutils-all/alias-2.def: New file.

14 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 11:40:16 +0000 (11:40 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* deffile.h (def_file_export): New member its_name.
(def_file_import): Likewise.
(def_file_add_export): Add argument its_name.
(def_file_add_import): Likewise.
* deffilep.y (def_exports): Add argument its_name.
(def_import): Likewise.
(EQUAL): Add new token for '=='.
(opt_equalequal_name): New rule.
(expline): Add rule opt_equalequal_name.
(impline): Likewise.
(def_file_free): Free for exports and imports
the optional member its_name.
(def_lex): Add scan of '==' as EQUAL.
* pe-dll.c (pe_export_sort): Sort for its_name too.
(process_def_file_and_drectve): Adjust calls to
def_file_add_export.
(generate_edata): Take its_name in account.
(make_one): Likewise.
(pe_process_import_defs): Likewise.
(pe_dll_generate_def_file): Add print of new '==' option.
* ld.texinfo: Extend documentation about .def file syntax.
* NEWS: Mention new feature.

14 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 11:33:44 +0000 (11:33 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* deffilep.y (def_lex): Allow '<' and '>' characters in identifier
strings.

14 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 11:30:25 +0000 (11:30 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

        * coff-x86_64.c (coff_amd64_rtype_to_howto): Subtract offset
        of R_AMD64_PCRLONG_<X> relocations from addend.

14 years ago * plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS.
Alan Modra [Fri, 23 Oct 2009 05:45:26 +0000 (05:45 +0000)]
* plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS.

14 years ago PR ld/10489
Alan Modra [Fri, 23 Oct 2009 01:21:12 +0000 (01:21 +0000)]
PR ld/10489
* emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Handle
drive specifiers for DOS based filesystems in rpath-link strings.

14 years ago* rx-decode.opc (decode_opcode): Fix flags for MUL, SUNTIL, and SWHILE.
DJ Delorie [Fri, 23 Oct 2009 01:11:52 +0000 (01:11 +0000)]
* rx-decode.opc (decode_opcode): Fix flags for MUL, SUNTIL, and SWHILE.
* rx-decode.c: Regenerated.

14 years ago * readelf.c (dynamic_info): Correct size of array.
Alan Modra [Fri, 23 Oct 2009 00:15:06 +0000 (00:15 +0000)]
* readelf.c (dynamic_info): Correct size of array.

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

14 years ago2009-10-22 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 22 Oct 2009 18:58:02 +0000 (18:58 +0000)]
2009-10-22  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_input_section): New class definition.
(Arm_input_section::init, Arm_input_section:do_write,
Arm_input_section::set_final_data_size,
Arm_input_section::do_reset_address_and_file_offset): New method
definitions.

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

14 years ago2009-10-21 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 21 Oct 2009 18:33:18 +0000 (18:33 +0000)]
2009-10-21  Doug Kwan  <dougkwan@google.com>

* arm.cc (Stub_table, Arm_input_section): New forward class
declarations.
(Stub_table): New class defintion.
(Stub_table::add_reloc_stub, Stub_table::relocate_stubs
Stub_table::do_reset_address_and_file_offset, Stub_table::do_write):
New method definition.

14 years ago2009-10-21 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 21 Oct 2009 08:08:41 +0000 (08:08 +0000)]
2009-10-21  Doug Kwan  <dougkwan@google.com>

* arm.cc: Update copyright comments.
(Target_arm): New forward class template declaration.
(Arm_address): New type.
(ARM_MAX_FWD_BRANCH_OFFSET, ARM_MAX_BWD_BRANCH_OFFSET,
THM_MAX_FWD_BRANCH_OFFSET, THM_MAX_BWD_BRANCH_OFFSET,
THM2_MAX_FWD_BRANCH_OFFSET, THM2_MAX_BWD_BRANCH_OFFSET): New
constants.
(Insn_template): Same.
(DEF_STUBS): New macro.
(Stub_type): New enum type.
(Stub_template): New class definition.
(Stub): Same.
(Reloc_stub): Same.
(Stub_factory): Same.
(Target_arm::Target_arm): Initialize may_use_blx_ and
should_force_pic_veneer_.
(Target_arm::may_use_blx, Target_arm::set_may_use_blx,
Target_arm::should_force_pic_veneer,
Target_arm::set_should_force_pic_veneer, Target_arm::using_thumb2,
Target_arm::using_thumb_only, Target_arm:;default_target): New
method defintions.
(Target_arm::may_use_blx_, Target_arm::should_force_pic_veneer_):
New data member declarations.
(Insn_template::size, Insn_template::alignment): New method defintions.
(Stub_template::Stub_template): New method definition.
(Reloc_stub::Key::name, Reloc_stub::stub_type_for_reloc,
Reloc_stub::do_fixed_endian_write, Reloc_stub::do_write): Same.
(Stub_factory::Stub_factory): New method definition.
* gold.h (string_hash): New template.
* output.h (Input_section_specifier::hash_value): Use
gold::string_hash.
(Input_section_specifier::string_hash): Remove.
* stringpool.cc (Stringpool_template::string_hash): Use
gold::string_hash.

14 years ago * MAINTAINERS (BUILD SYSTEM, TESTSUITES): Remove myself.
Ben Elliston [Wed, 21 Oct 2009 03:10:53 +0000 (03:10 +0000)]
* MAINTAINERS (BUILD SYSTEM, TESTSUITES): Remove myself.

14 years ago2009-10-20 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 21 Oct 2009 00:45:52 +0000 (00:45 +0000)]
2009-10-20  Doug Kwan  <dougkwan@google.com>

* object.cc (Sized_relobj::do_finalize_local_symbols): Handle section
symbols of relaxed input sections.
* output.h (Output_section::find_relaxed_input_section): Make
method public.

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

14 years agogas/
H.J. Lu [Tue, 20 Oct 2009 22:18:17 +0000 (22:18 +0000)]
gas/

2009-10-20  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10775
* doc/c-i386.texi: Mention movabs.

gas/testsuite/

2009-10-20  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10775
* gas/i386/immed64.d: Updated.
* gas/i386/l1om.d: Likewise.
* gas/i386/x86-64-disp-intel.d: Likewise.
* gas/i386/x86-64-disp.d: Likewise.
* gas/i386/x86_64.d: Likewise.

opcodes/

2009-10-20  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10775
* i386-dis.c: Document LB, LS and LV macros.
(dis386): Use mov%LB, mov%LS and mov%LV on mov instruction
with the 64-bit displacement or immediate operand.
(putop): Handle LB, LS and LV macros.

14 years ago PR binutils/10802
Alan Modra [Tue, 20 Oct 2009 00:49:31 +0000 (00:49 +0000)]
PR binutils/10802
* opncls.c (_maybe_make_executable): Make DYNAMIC files executable.

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

14 years agomerge from gcc
DJ Delorie [Mon, 19 Oct 2009 18:14:23 +0000 (18:14 +0000)]
merge from gcc

14 years ago2009-10-19 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 19 Oct 2009 17:24:26 +0000 (17:24 +0000)]
2009-10-19  H.J. Lu  <hongjiu.lu@intel.com>

* doc/c-i386.texi: Don't mention the 8 extra control registers
for x86-64.

14 years ago * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-22.d,
Hans-Peter Nilsson [Mon, 19 Oct 2009 16:34:30 +0000 (16:34 +0000)]
* ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-22.d,
ld-cris/tls-e-80.d, ld-cris/tls-e-dtpoffd1.d,
ld-cris/tls-e-dtpoffd3.d, ld-cris/tls-ldgde-14.d,
ld-cris/tls-ldgde-15.d, ld-cris/tls-ldgdex-14.d,
ld-cris/tls-ldgdex-15.d: Adjust for change in non-shared
R_CRIS_32_DTPREL and R_CRIS_16_DTPREL relocations.

14 years ago * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
Hans-Peter Nilsson [Mon, 19 Oct 2009 16:33:49 +0000 (16:33 +0000)]
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
Don't subtract the size of the TLS block for non-shared objects
from the relocation.

14 years ago * config/tc-lm32.c (md_begin): Add missing call to bfd_set_arch_mach.
Doug Evans [Mon, 19 Oct 2009 15:30:06 +0000 (15:30 +0000)]
* config/tc-lm32.c (md_begin): Add missing call to bfd_set_arch_mach.

14 years ago * config/tc-xc16x.c (md_cgen_lookup_reloc): Ensure fix_size is set
Doug Evans [Mon, 19 Oct 2009 15:27:38 +0000 (15:27 +0000)]
* config/tc-xc16x.c (md_cgen_lookup_reloc): Ensure fix_size is set
correctly for all 16 bit relocs.  Return BFD_RELOC_NONE if reloc
isn't recognized, not BFD_RELOC_XC16X_SOF.

testsuite:
* gas/xc16x/shlrol.s: Specify constant shift amount.
* gas/xc16x/xc16x.exp (do_xc16x_shlrol): Update expected output.

14 years ago * Makefile.am: Remove spurious sanitization marker.
Nick Clifton [Mon, 19 Oct 2009 10:32:11 +0000 (10:32 +0000)]
    * Makefile.am: Remove spurious sanitization marker.
        * Makefile.in: Regenerate.

14 years ago * lm32-opinst.c: Regenerate.
Doug Evans [Mon, 19 Oct 2009 05:09:43 +0000 (05:09 +0000)]
* lm32-opinst.c: Regenerate.
* m32c-desc.c: Regenerate.
* m32r-opinst.c: Regenerate.
* openrisc-ibld.c: Regenerate.
* xc16x-desc.c: Regenerate.
* xc16x-desc.h: Regenerate.

14 years ago PR binutils/10793
Alan Modra [Sun, 18 Oct 2009 23:14:09 +0000 (23:14 +0000)]
PR binutils/10793
* prdbg.c (tg_end_struct_type): Warning fix.

14 years ago PR binutils/10792
Alan Modra [Sun, 18 Oct 2009 23:11:35 +0000 (23:11 +0000)]
PR binutils/10792
* dlltool.c (dll_name_list_append): Declare variable at start
of block.
(dll_name_list_count, dll_name-list_print): Likewise.

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

14 years ago * as.h (know): Don't define as empty.
Alan Modra [Sun, 18 Oct 2009 13:33:19 +0000 (13:33 +0000)]
* as.h (know): Don't define as empty.
* config/tc-arm.c (make_mapping_symbol): Revert last patch.

14 years ago * config/tc-arm.c (make_mapping_symbol): Add braces to avoid empty body
Alan Modra [Sun, 18 Oct 2009 08:20:16 +0000 (08:20 +0000)]
* config/tc-arm.c (make_mapping_symbol): Add braces to avoid empty body
in release builds.

14 years agoExclude more aout targets.
Alan Modra [Sun, 18 Oct 2009 07:43:03 +0000 (07:43 +0000)]
Exclude more aout targets.

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

14 years ago * z80.h: Store alignment requirement in section header, to allow
Arnold Metselaar [Sat, 17 Oct 2009 18:23:12 +0000 (18:23 +0000)]
* z80.h: Store alignment requirement in section header, to allow
ld to preserve alignment. Some code was copied from ti.h.

14 years ago * Makefile.am (CGEN_CPUS): Add iq2000, lm32.
Doug Evans [Sat, 17 Oct 2009 17:38:09 +0000 (17:38 +0000)]
* Makefile.am (CGEN_CPUS): Add iq2000, lm32.
(FR30_DEPS, FRV_DEPS, IQ2000_DEPS): Move so all cgen *_DEPS are
sorted alphabetically.
(stamp-fr30, stamp-frv, stamp-iq2000, stamp-xc16x): Move so all cgen
stamp-* rules are sorted alphabetically.
* Makefile.in: Regenerate.

14 years ago* coff-z80.c (z80coff_vec): Allow sections to be of type SEC_CODE or SEC_DATA
Arnold Metselaar [Sat, 17 Oct 2009 17:18:27 +0000 (17:18 +0000)]
* coff-z80.c (z80coff_vec): Allow sections to be of type SEC_CODE or SEC_DATA
* ld-scripts/align.exp: Remove xfails for z80-*-coff

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

* elfcpp/elfcpp.h (DT_PREINIT_ARRAY): Correct enum value.

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

14 years ago2009-10-16 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 16 Oct 2009 19:11:32 +0000 (19:11 +0000)]
2009-10-16  Doug Kwan  <dougkwan@google.com>

* dynobj.cc (Versions::Versions): Initialize version_script_.
Only insert base version symbol definition for a shared object
if version script defines any version versions.
(Versions::define_base_version): New method definition.
(Versions::add_def): Check that base version is not needed.
(Versions::add_need): Define base version lazily.
* dynobj.h (Versions::define_base_version): New method declaration.
(Versions::needs_base_version_): New data member declaration.
* testsuite/Makefile.am (check_SCRIPTS): Add no_version_test.sh
(check_DATA): Add no_version_test.stdout.
(libno_version_test.so, no_version_test.o no_version_test.stdout):
New make rules.
* testsuite/Makefile.in: Regenerate.
* testsuite/no_version_test.c: New file.
* testsuite/no_version_test.sh: Ditto.

14 years ago2009-10-16 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 16 Oct 2009 18:56:06 +0000 (18:56 +0000)]
2009-10-16  Doug Kwan  <dougkwan@google.com>

* expression.cc (class Segment_start_expression): New class definition.
(Segment_start_expression::value): New method definition.
(script_exp_function_segment_start): Return a new
Segment_start_expression.
* gold/script-c.h (script_saw_segment_start_expression): New function
prototype.
* script-sections.cc (Script_sections::Script_sections): Initialize
SAW_SEGMENT_START_EXPRESSION_ to false.
(Script_sections::set_section_addresses): Use -Ttext, -Tdata
and -Tbbs options to specify section addresses if given in
command line and no SEGMENT_START expression is seen in a script.
* script-sections.h (Script_sections::saw_segment_start_expression,
Script_sections::set_saw_segment_start_expression): New method
definition.
(Script_sections::saw_segment_start_expression_): New data member
declaration.
* script.cc (script_saw_segment_start_expression): New function.
* yyscript.y (SEGMENT_START): Call script_saw_segment_start_expression.
* testsuite/Makefile.am (check_SCRIPTS): Add script_test_6.sh,
script_test_7.sh and script_test_8.sh.
(check_DATA): Add script_test_6.stdout, script_test_7.stdout and
script_test_8.stdout.
(MOSTLYCLEANFILES): Add script_test_6, script_test_7 and script_test_8.
(script_test_6, script_test_6.stdout, script_test_7,
script_test_7.stdout, script_test_8, script_test_8.stdout): New rules.
* Makefile.in: Regenerate.
* testsuite/script_test_6.sh: New file.
* testsuite/script_test_6.t: Same.
* testsuite/script_test_7.sh: Same.
* testsuite/script_test_7.t: Same.
* testsuite/script_test_8.sh: Same.

14 years ago2009-10-16 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 16 Oct 2009 18:34:53 +0000 (18:34 +0000)]
2009-10-16  Doug Kwan  <dougkwan@google.com>

* output.cc (Output_segment::set_section_list_address): Cast
expressions to unsigned long long type to avoid format warnings.

14 years ago * MAINTAINERS: Add myself as m32r maintainer.
Doug Evans [Fri, 16 Oct 2009 18:23:43 +0000 (18:23 +0000)]
* MAINTAINERS: Add myself as m32r maintainer.

14 years ago2009-10-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 16 Oct 2009 16:33:14 +0000 (16:33 +0000)]
2009-10-16  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10775
* doc/c-i386.texi: Mention the 8 extra control registers for
x86-64.
Mention .code64 directive.

14 years ago2009-10-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 16 Oct 2009 15:50:51 +0000 (15:50 +0000)]
2009-10-16  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h: Use enum instead of nested macros.

14 years ago * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
Nick Clifton [Fri, 16 Oct 2009 15:15:38 +0000 (15:15 +0000)]
    * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
        (gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option
        to exclude all symbols from automatic export.
        (gld_${EMULATION_NAME}_list_options): Describe it.
        (gld${EMULATION_NAME}_handle_option): Handle it.
        * emultempl/pep.em: Likewise to all the above.
        * pe-dll.c (pe_dll_exclude_all_symbols): New variable.
        (process_def_file_and_drectve): Use it.
        * pe-dll.h (pe_dll_exclude_all_symbols): Declare.
        * pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias.
        * pep-dll.h (pe_dll_exclude_all_symbols): Declare.
        * NEWS: Mention the new feature.
        * ld.texinfo: Document the new command line switch.

14 years ago2009-10-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 16 Oct 2009 14:47:08 +0000 (14:47 +0000)]
2009-10-16  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c: Simplify enums.

14 years ago PR 10764
Nick Clifton [Fri, 16 Oct 2009 14:08:58 +0000 (14:08 +0000)]
    PR 10764
        * Makefile.am (sysinfo.o, syslex.o): Place source file after all
        command line switches.
        * Makefile.in: Regenerate.

14 years ago PR 10768
Nick Clifton [Fri, 16 Oct 2009 14:02:55 +0000 (14:02 +0000)]
    PR 10768
        * dlltool.c (bfd_get_errmsg): New macro.
        (scan_obj_file): Use it.
        (make_one_lib_file): Use it.
        (make_head): Use it.
        (make_delay_head): Use it.
        (make_tail): Use it.
        (gen_lib_file): Use it.
        (identify_dll_for_implib): Use it.
        (identify_search_archive):  Use it.

14 years ago * bootstrap.exp: Detect if plugins are enabled. Skip the static
Nick Clifton [Fri, 16 Oct 2009 10:32:51 +0000 (10:32 +0000)]
    * bootstrap.exp: Detect if plugins are enabled. Skip the static
        link test and add -ldl to the remaining tests if they are.

14 years ago * readelf.c (usage): Add mention of --debug-dump=frames-interp.
Nick Clifton [Fri, 16 Oct 2009 10:05:06 +0000 (10:05 +0000)]
    * readelf.c (usage): Add mention of --debug-dump=frames-interp.
        Wrap output to 80 columns.
        * objdump.c (usage): Likewise.
        * doc/binutils.texi (readelf): Add note about =frames-interp.

14 years ago PR binutils/10785
Alan Modra [Fri, 16 Oct 2009 07:14:42 +0000 (07:14 +0000)]
PR binutils/10785
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc
bim and bim->buffer.  bfd_malloc instead.
* peicode.h (pe_ILF_build_a_bfd): Similarly.
(ILF_DATA_SIZE): Don't include bim.
* opncls.c (bfd_close): Test bim->buffer non-NULL before freeing.

14 years ago * script.cc (Script_options::add_symbol_assignment): Always add a
Ian Lance Taylor [Fri, 16 Oct 2009 05:19:06 +0000 (05:19 +0000)]
* script.cc (Script_options::add_symbol_assignment): Always add a
dot assginment to script_sections_.
* script-sections.cc (Script_sections::add_dot_assignment):
Initialize if necessary.

14 years ago * layout.cc (Layout::relaxation_loop_body): Don't crash if we see
Ian Lance Taylor [Fri, 16 Oct 2009 05:16:09 +0000 (05:16 +0000)]
* layout.cc (Layout::relaxation_loop_body): Don't crash if we see
program headers with no load segment if there is a linker script.

14 years ago * layout.cc (Layout::set_segment_offsets): Align the file offset
Ian Lance Taylor [Fri, 16 Oct 2009 05:00:28 +0000 (05:00 +0000)]
* layout.cc (Layout::set_segment_offsets): Align the file offset
to the segment aligment for -N or -n with no load segment.
* output.cc (Output_segment::add_output_section): Don't crash if
the first section is a TLS section.
(Output_segment::set_section_list_addresses): Print an error
message if the address moves backward in a linker script.
* script-sections.cc
(Output_section_element_input::set_section_addresses): Don't
increase *dot_value for a SHF_TLS/SHT_NOBITS section.
(Orphan_output_section::set_section_addresses): Likewise.

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

14 years ago2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 15 Oct 2009 22:50:08 +0000 (22:50 +0000)]
2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
    Ineiev <ineiev@gmail.com>

PR binutils/10767
* i386-dis.c: Use enum instead of nested macros.

14 years ago2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 15 Oct 2009 22:26:55 +0000 (22:26 +0000)]
2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (MAX_BYTEMODE): Removed.

14 years ago2009-10-15 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 15 Oct 2009 18:17:48 +0000 (18:17 +0000)]
2009-10-15  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::finish_dynamic_section): Generate tags
DT_FINI_ARRAY, DT_FINI_ARRAYSZ, DT_INIT_ARRAY, DT_INIT_ARRAYSZ,
DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ as needed. If -Bsymbolic is
used, add DT_SYMBOLIC and set DF_SYMBOLIC in DT_FLAGS.

14 years agomerge from gcc
DJ Delorie [Thu, 15 Oct 2009 17:03:34 +0000 (17:03 +0000)]
merge from gcc

14 years ago PR gas/1491
Alan Modra [Thu, 15 Oct 2009 10:58:34 +0000 (10:58 +0000)]
PR gas/1491
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.

14 years ago2009-10-15 Jim Blandy <jimb@red-bean.com>
Tristan Gingold [Thu, 15 Oct 2009 09:41:35 +0000 (09:41 +0000)]
2009-10-15  Jim Blandy  <jimb@red-bean.com>

* libgnuintl.h (_INTL_MAY_RETURN_STRING_ARG, gettext, dgettext)
(dcgettext, ngettext, dngettext, dcngettext): Backport changes
from current gettext to provide GCC format_arg attributes.

14 years ago * object.h (class Relocate_info): Add reloc_shdr and data_shdr
Ian Lance Taylor [Thu, 15 Oct 2009 00:33:18 +0000 (00:33 +0000)]
* object.h (class Relocate_info): Add reloc_shdr and data_shdr
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.

14 years ago * ld-scripts/phdrs3.d: Allow colon in name of linker binary.
Joseph Myers [Wed, 14 Oct 2009 23:12:15 +0000 (23:12 +0000)]
* ld-scripts/phdrs3.d: Allow colon in name of linker binary.

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