OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
15 years agoAdd plugin functionality for link-time optimization (LTO).
Cary Coutant [Fri, 19 Sep 2008 22:54:57 +0000 (22:54 +0000)]
Add plugin functionality for link-time optimization (LTO).

include/:
* plugin-api.h: New file.

gold/:
* configure.ac (plugins): Add --enable-plugins option.
* configure: Regenerate.
* config.in: Regenerate.
* Makefile.am (LIBDL): New variable.
(CCFILES): Add plugin.cc.
(HFILES): Add plugin.h.
(ldadd_var): Add LIBDL.
* Makefile.in: Regenerate.

* archive.cc: Include "plugin.h".
(Archive::setup): Don't preread archive symbols when using a plugin.
(Archive::get_file_and_offset): Add memsize parameter.  Change callers.
(Archive::get_elf_object_for_member): Call plugin hooks for claiming
files.
(Archive::include_member): Add symbols from plugin objects.
* archive.h (Archive::get_file_and_offset): Add memsize parameter.
* descriptors.cc (Descriptors::open): Check for file descriptors
abandoned by plugins.
(Descriptors::claim_for_plugin): New function.
* descriptors.h (Descriptors::claim_for_plugin): New function.
(Open_descriptor::is_claimed): New field.
(claim_descriptor_for_plugin): New function.
* fileread.cc (File_read::claim_for_plugin): New function.
* fileread.h (File_read::claim_for_plugin): New function.
(File_read::descriptor): New function.
* gold.cc: Include "plugin.h".
(queue_initial_tasks): Add task to call plugin hooks for generating
new object files.
* main.cc: Include "plugin.h".
(main): Load plugin libraries.
* object.h (Pluginobj): Declare.
(Object::pluginobj): New function.
(Object::do_pluginobj): New function.
(Object::set_target): New function.
* options.cc: Include "plugin.h".
(General_options::parse_plugin): New function.
(General_options::General_options): Initialize plugins_ field.
(General_options::add_plugin): New function.
* options.h (Plugin_manager): Declare.
(General_options): Add --plugin option.
(General_options::has_plugins): New function.
(General_options::plugins): New function.
(General_options::add_plugin): New function.
(General_options::plugins_): New field.
* plugin.cc: New file.
* plugin.h: New file.
* readsyms.cc: Include "plugin.h".
(Read_symbols::do_read_symbols): Check for archive before checking
for ELF file.  Call plugin hooks to claim files.
* resolve.cc (Symbol_table::resolve): Record when symbol is referenced
from a real object file; force override when processing replacement
files.
* symtab.cc (Symbol::init_fields): Initialize in_real_elf_ field.
(Symbol::init_base_object): Likewise.
(Symbol::init_base_output_data): Likewise.
(Symbol::init_base_output_segment): Likewise.
(Symbol::init_base_constant): Likewise.
(Symbol::init_base_undefined): Likewise.
(Symbol::output_section): Assert that object is not a plugin.
(Symbol_table::add_from_pluginobj): New function.
(Symbol_table::sized_finalize_symbol): Treat symbols from plugins as
undefined.
(Symbol_table::sized_write_globals): Likewise.
(Symbol_table::add_from_pluginobj): Instantiate template.
* symtab.h (Sized_pluginobj): Declare.
(Symbol::in_real_elf): New function.
(Symbol::set_in_real_elf): New function.
(Symbol::in_real_elf_): New field.
(Symbol_table::add_from_pluginobj): New function.

* testsuite/Makefile.am (AM_CFLAGS): New variable.
(LIBDL): New variable.
(LDADD): Add LIBDL.
(check_PROGRAMS): Add plugin_test_1 and plugin_test_2.
(check_SCRIPTS): Add plugin_test_1.sh and plugin_test_2.sh.
(check_DATA): Add plugin_test_1.err and plugin_test_2.err.
(MOSTLYCLEANFILES): Likewise.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_test.c: New file.
* testsuite/plugin_test_1.sh: New file.
* testsuite/plugin_test_2.sh: New file.

15 years ago * write.c (TC_FORCE_RELOCATION_SUB_LOCAL): Heed md_register_arithmetic.
Alan Modra [Fri, 19 Sep 2008 10:00:40 +0000 (10:00 +0000)]
* write.c (TC_FORCE_RELOCATION_SUB_LOCAL): Heed md_register_arithmetic.
(TC_VALIDATE_FIX_SUB): Likewise.
* config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
* config/tc-hppa.h (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
* config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Likewise.
* config/tc-sh.h (TC_VALIDATE_FIX_SUB): Likewise.
(TC_FORCE_RELOCATION_SUB_LOCAL): Likewise.
* config/tc-sh64.h (TC_VALIDATE_FIX_SUB): Likewise.
* config/tc-xtensa.h (TC_VALIDATE_FIX_SUB): Likewise.
* doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS,
TC_FORCE_RELOCATION_SUB_LOCAL, TC_VALIDATE_FIX_SUB): Show new param.

15 years ago * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Handle vxworks
Alan Modra [Fri, 19 Sep 2008 09:51:32 +0000 (09:51 +0000)]
* elf32-ppc.c (ppc_elf_finish_dynamic_sections): Handle vxworks
_GLOBAL_OFFSET_TABLE_ in .got.plt section.  Add BFD_ASSERTs.

15 years ago * write.c (md_register_arithmetic): Define.
Alan Modra [Fri, 19 Sep 2008 02:11:02 +0000 (02:11 +0000)]
* write.c (md_register_arithmetic): Define.
(fixup_segment): Adjust TC_FORCE_RELOCATION_SUB_ABS invocation.
Modify error message when registers involved.
(TC_FORCE_RELOCATION_SUB_ABS): Heed md_register_arithmetic.
* config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Likewise.

15 years agodaily update
Alan Modra [Fri, 19 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * elf32-xtensa.c (elf_xtensa_check_relocs): Check for negative refcount.
Bob Wilson [Thu, 18 Sep 2008 00:37:47 +0000 (00:37 +0000)]
    * elf32-xtensa.c (elf_xtensa_check_relocs): Check for negative refcount.

15 years agodaily update
Alan Modra [Thu, 18 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agobfd/
Jan Kratochvil [Wed, 17 Sep 2008 07:50:29 +0000 (07:50 +0000)]
bfd/
PR 6893 - Do not consider FDEs for discarded sections as invalid.
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): New REQUIRE_CLEARED_RELOCS.
Consider FDEs with cleared relocations as valid and ignorable.

ld/testsuite/
* ld-elf/eh-group.exp, ld-elf/eh-group1.s, ld-elf/eh-group2.s: New test.

binutils/
Suppress warnings on NONE relocations to discarded sections.
* readelf.c (is_none_reloc): New function.
(debug_apply_relocations): Ignore is_none_reloc() relocations.

15 years ago Fix testcases compilation failures due to unused variables.
Jan Kratochvil [Wed, 17 Sep 2008 07:43:49 +0000 (07:43 +0000)]
Fix testcases compilation failures due to unused variables.
* ld-elfcomm/common1b.c (dummy1): Mark the variable for GCC as USED.
* ld-shared/main.c (main): Move the P variable only to the places where
it is used.

15 years agodaily update
Alan Modra [Wed, 17 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * target-reloc.h (relocate_section): Check whether a symbol is
Ian Lance Taylor [Tue, 16 Sep 2008 17:23:37 +0000 (17:23 +0000)]
* target-reloc.h (relocate_section): Check whether a symbol is
defined by the ABI before reporting an undefined symbol error.
* target.h (Target::is_defined_by_abi): Make parameter const.
(Target::do_is_defined_by_abi): Likewise.
* i386.cc (Target_i386::do_is_defined_by_abi): Likewise.
* powerpc.cc (Target_powerpc::do_is_defined_by_abi): Likewise.
* sparc.cc (Target_sparc::do_is_defined_by_abi): Likewise.
* x86_64.cc (Target_x86_64::do_is_defined_by_abi): Likewise.
* testsuite/Makefile.am (tls_test_shared.so): Add -Wl,-z,defs.
* testsuite/Makefile.in: Rebuild.

15 years ago * fileread.cc (make_view): Add casts to avoid warning.
Ian Lance Taylor [Tue, 16 Sep 2008 17:17:22 +0000 (17:17 +0000)]
* fileread.cc (make_view): Add casts to avoid warning.

15 years agobfd/
H.J. Lu [Tue, 16 Sep 2008 14:09:34 +0000 (14:09 +0000)]
bfd/

2008-09-16  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/6877
* elflink.c (_bfd_elf_merge_symbol): Allow a common symbol to
override the function in a shared library.

ld/testsuite/

2008-09-16  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/6877
* ld-elf/comm1.c: New.
* ld-elf/func1.c: Likewise.

* ld-elf/shared.exp: Add tests for libfunc1.so and comm1.

15 years ago PR 6844
Alan Modra [Tue, 16 Sep 2008 13:43:36 +0000 (13:43 +0000)]
PR 6844
* elf32-ppc.c (SYM_VAL): Define.  Use throughout to find symbol vma.
(ppc_elf_relocate_section): Correct GOT offset calculation.
(ppc_elf_finish_dynamic_symbol): Use PPC_HA and PPC_LO.
(ppc_elf_finish_dynamic_sections): Likewise.  Error if
htab->elf.hgot symbol is not defined in htab->got section.

15 years ago* i386.cc (Target_i386::define_tls_base_symbol): Update comments.
Alexandre Oliva [Tue, 16 Sep 2008 04:31:25 +0000 (04:31 +0000)]
* i386.cc (Target_i386::define_tls_base_symbol): Update comments.
* x86_64.cc (Target_x86_64::define_tls_base_symbol): Likewise.

15 years ago* options.h (General_options::output_is_executable): New.
Alexandre Oliva [Tue, 16 Sep 2008 04:23:29 +0000 (04:23 +0000)]
* options.h (General_options::output_is_executable): New.
(General_options::output_is_pie): New.
* i386.cc (Target_i386::define_tls_base_symbol): Use SEGMENT_START
for shared libraries.
* x86_64.cc (Target_x86_64::define_tls_base_symbol): Likewise.

15 years agodaily update
Alan Modra [Tue, 16 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago PR 6888
Alan Modra [Mon, 15 Sep 2008 23:41:55 +0000 (23:41 +0000)]
PR 6888
* elf32-ppc.c (ppc_elf_relocate_section): Handle NULL symbol section
on R_PPC_TOC16, R_PPC_SDAREL16, R_PPC_EMB_SDA2REL, R_PPC_EMB_SDA21,
R_PPC_EMB_RELSDA, R_PPC_SECTOFF* relocs.

15 years ago * gas/all/gas.exp: Don't run redef tests on a bunch of targets.
Alan Modra [Mon, 15 Sep 2008 13:53:47 +0000 (13:53 +0000)]
* gas/all/gas.exp: Don't run redef tests on a bunch of targets.
* gas/elf/elf.exp: Likewise.

15 years ago * write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.
Alan Modra [Mon, 15 Sep 2008 13:53:17 +0000 (13:53 +0000)]
* write.c (install_reloc): Correct EMIT_SECTION_SYMBOLS test.

15 years ago * config/tc-frv.c (md_apply_fix): Use abs_section_sym for
Alan Modra [Mon, 15 Sep 2008 05:22:32 +0000 (05:22 +0000)]
* config/tc-frv.c (md_apply_fix): Use abs_section_sym for
relocs with no symbol.
* config/tc-mmix.c (md_assemble): Mark fake symbol on
BFD_RELOC_MMIX_BASE_PLUS_OFFSET as OK for use by relocs.
(mmix_md_end): Likewise mark mmix reg contents section symbol.

15 years agodaily update
Alan Modra [Mon, 15 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years agoAdd new tests for z80
Arnold Metselaar [Sun, 14 Sep 2008 14:04:00 +0000 (14:04 +0000)]
Add new tests for z80

15 years agoFix bugs in the disassembly of some ld-instructions
Arnold Metselaar [Sun, 14 Sep 2008 08:38:02 +0000 (08:38 +0000)]
Fix bugs in the disassembly of some ld-instructions

15 years agoFix Opcode generation of ld a,(bc) and ld a,(de) on target z80
Arnold Metselaar [Sun, 14 Sep 2008 05:40:09 +0000 (05:40 +0000)]
Fix Opcode generation of ld a,(bc) and ld a,(de) on target z80

15 years agodaily update
Alan Modra [Sun, 14 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sat, 13 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2008-09-12 Sterling Augustine <sterling@tensilica.com>
Bob Wilson [Fri, 12 Sep 2008 18:53:55 +0000 (18:53 +0000)]
2008-09-12  Sterling Augustine  <sterling@tensilica.com>
* config/tc-xtensa.c (init_op_placement_info_table): Allow number of
operands equal to MAX_INSN_ARGS.

15 years ago2008-09-11 Chris Demetriou <cgd@google.com>
Chris Demetriou [Fri, 12 Sep 2008 05:42:29 +0000 (05:42 +0000)]
2008-09-11  Chris Demetriou  <cgd@google.com>

        * options.h (origin): New -z option.
        * layout.cc (Layout:finish_dynamic_section): If "-z origin"
        is specified, set DF_ORIGIN in DT_FLAGS and set DF_1_ORIGIN
        in DT_FLAGS_1.

15 years agodaily update
Alan Modra [Fri, 12 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agogas/testsuite/
H.J. Lu [Thu, 11 Sep 2008 23:15:59 +0000 (23:15 +0000)]
gas/testsuite/

2008-09-11  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/sse2avx.s: Remove pclmulXXX tests.  Add tests for
Intel syntax.
* gas/i386/x86-64-sse2avx.s: Likewise.

* gas/i386/sse2avx.d: Updated.
* gas/i386/x86-64-sse2avx.d: Likewise.

opcodes/

2008-09-11  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Fix memory operand size for cmpXXXs[sd].
* i386-tbl.h: Regenerated.

15 years agobfd/
Jan Kratochvil [Thu, 11 Sep 2008 19:02:04 +0000 (19:02 +0000)]
bfd/
Fix loading large elf64 binaries on 32bit hosts.
* configure.in: Call AC_SYS_LARGEFILE.
* config.in: Regenerate.
* configure: Regenerate.

binutils/
Fix loading large elf64 binaries on 32bit hosts.
* configure.in: Call AC_SYS_LARGEFILE.
* config.in: Regenerate.
* configure: Regenerate.

gas/
* configure.in: Call AC_SYS_LARGEFILE.
* config.in: Regenerate.
* configure: Regenerate.

gprof/
* configure.in: Call AC_SYS_LARGEFILE.
* gconfig.in: Regenerate.
* configure: Regenerate.

ld/
* configure.in: Call AC_SYS_LARGEFILE.
* config.in: Regenerate.
* configure: Regenerate.

libiberty/
* configure.in: Call AC_SYS_LARGEFILE.
* config.in: Regenerate.
* configure: Regenerate.

15 years agoUpdated translation versions
Alan Modra [Thu, 11 Sep 2008 09:06:55 +0000 (09:06 +0000)]
Updated translation versions

15 years agodaily update
Alan Modra [Thu, 11 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago2008-09-05 Cary Coutant <ccoutant@google.com>
Cary Coutant [Wed, 10 Sep 2008 17:56:02 +0000 (17:56 +0000)]
2008-09-05  Cary Coutant  <ccoutant@google.com>

* fileread.cc (File_read::make_view): Add check for attempt to map
beyond end of file.

15 years agodaily update
Alan Modra [Wed, 10 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Tue, 9 Sep 2008 18:21:49 +0000 (18:21 +0000)]
merge from gcc

15 years agogas/
Peter Bergner [Tue, 9 Sep 2008 13:25:05 +0000 (13:25 +0000)]
gas/
* config/tc-ppc.c (ppc_setup_opcodes): Simplify POWER4/NOPOWER4 test.
Remove POWER5 and POWER6 tests.

gas/testsuite/
* gas/ppc/common.s: New test.
* gas/ppc/common.d: Likewise.
* gas/ppc/power4_32.s: Likewise.
* gas/ppc/power4_32.d: Likewise.
* gas/ppc/power6.s: Add attn, mtcr, mtcrf, mfcr, dcbz.
* gas/ppc/power6.d: Likewise.
* gas/ppc/ppc.exp: Run power4_32 test.

15 years ago* emultempl/pe.em (pe_find_data_imports): Add trailing newline
Nick Clifton [Tue, 9 Sep 2008 09:45:31 +0000 (09:45 +0000)]
* emultempl/pe.em (pe_find_data_imports): Add trailing newline
  to warning message.
  * emultempl/pep.em (pep_find_data_imports): Likewise.

15 years ago * elfxx-mips.c (mips16_stub_symndx) <sec>: Mark argument as
Tom Tromey [Tue, 9 Sep 2008 03:17:13 +0000 (03:17 +0000)]
* elfxx-mips.c (mips16_stub_symndx) <sec>: Mark argument as
unused.

15 years ago * config/tc-hppa.c (hppa_regname_to_dw2regnum): Add register name to
Dave Anglin [Tue, 9 Sep 2008 00:53:35 +0000 (00:53 +0000)]
* config/tc-hppa.c (hppa_regname_to_dw2regnum): Add register name to
number support for 32-bit targets.

15 years agodaily update
Alan Modra [Tue, 9 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago PR ld/3191
Daniel Jacobowitz [Mon, 8 Sep 2008 21:58:29 +0000 (21:58 +0000)]
PR ld/3191
* dwarf2.c (struct adjusted_section): Renamed from struct
loadable_section.
(struct dwarf2_debug): Adjust for renaming.  Add version field.
(read_attribute_value): Correctly handle DW_FORM_ref_addr for
DWARF3.
(find_abstract_instance_name): Pass a pointer to
attribute instead of offset.  For DW_FORM_ref_addr, get the
entry at the offset from the .debug_info section.
(scan_unit_for_symbols): Update.
(parse_comp_unit): Allow DWARF3.  Save the version.
(unset_sections): Update for renaming.
(place_sections): Likewise.  Set new VMAs for DWARF sections
also.

15 years ago2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 8 Sep 2008 16:07:46 +0000 (16:07 +0000)]
2008-09-08  H.J. Lu  <hongjiu.lu@intel.com>

2008-09-07  Alan Modra  <amodra@bigpond.net.au>

* emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.

15 years ago2008-09-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Sep 2008 12:55:19 +0000 (12:55 +0000)]
2008-09-08  Tristan Gingold  <gingold@adacore.com>

        * configure.in: Update version to 2.19.50
        * configure: Regenerated.

15 years ago2008-09-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Sep 2008 12:44:32 +0000 (12:44 +0000)]
2008-09-08  Tristan Gingold  <gingold@adacore.com>

        * BRANCHES: Add 2.18 and 2.19 release branches.

15 years agold/
Tristan Gingold [Mon, 8 Sep 2008 08:56:57 +0000 (08:56 +0000)]
ld/
2008-09-08  Tristan Gingold  <gingold@adacore.com>

* NEWS: Add a marker for the 2.19 features.
gas/
2008-09-08  Tristan Gingold  <gingold@adacore.com>

* NEWS: Add a marker for the 2.19 features.

binutils/
2008-09-08  Tristan Gingold  <gingold@adacore.com>

* NEWS: Add a marker for the 2.19 features.

15 years ago * config/tc-hppa.h (DIFF_EXPR_OK): Define for SOM target. Revise
Dave Anglin [Mon, 8 Sep 2008 00:54:26 +0000 (00:54 +0000)]
* config/tc-hppa.h (DIFF_EXPR_OK): Define for SOM target.  Revise
comment regarding use of difference expressions.
(TC_FORCE_RELOCATION_SUB_LOCAL): Define to 1.

15 years agodaily update
Alan Modra [Mon, 8 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
Dave Anglin [Sun, 7 Sep 2008 22:54:54 +0000 (22:54 +0000)]
* dw2gencfi.c (CFI_DIFF_EXPR_OK): Define if not defined.
(dot_cfi_personality): Use CFI_DIFF_EXPR_OK instead of DIFF_EXPR_OK.
(dot_cfi_lsda, output_cie, output_fde): Likewise.
* config/tc-hppa.h (CFI_DIFF_EXPR_OK): Define.

15 years ago * ldlang.h (lang_output_section_find): Define.
Alan Modra [Sun, 7 Sep 2008 04:02:31 +0000 (04:02 +0000)]
* ldlang.h (lang_output_section_find): Define.
(lang_output_section_statement_lookup): Update prototype.
* ldlang.c (lang_output_section_find,
lang_output_section_statement_lookup_1): Merge into..
(lang_output_section_statement_lookup): ..here.  Update all callers.
(process_insert_statements): Set constraint negative
for output section statements we might be inserting.  Make error
fatal on not finding insertion section.
(lang_output_section_find): Rather than comparing
output_section_statement.constraint against -1, test whether
it is postive.
(lang_output_section_statement_lookup_1): Likewise.
(output_prev_sec_find, strip_excluded_output_sections): Likewise.
(lang_record_phdrs): Likewise.
* emultempl/elf32.em (output_rel_find): Likewise.
* NEWS: Mention INSERT.

15 years agodaily update
Alan Modra [Sun, 7 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agogas/
Richard Sandiford [Sat, 6 Sep 2008 08:47:00 +0000 (08:47 +0000)]
gas/
* config/tc-mips.h (DWARF2_FDE_RELOC_SIZE): Define.

gas/testsuite/
* gas/mips/cfi-n64-1.s, gas/mips/cfi-n64-1.d: New test.
* gas/mips/mips.exp: Run it.

15 years ago2008-09-05 Cary Coutant <ccoutant@google.com>
Cary Coutant [Sat, 6 Sep 2008 01:13:00 +0000 (01:13 +0000)]
2008-09-05  Cary Coutant  <ccoutant@google.com>

* symtab.cc (Symbol_table::add_from_dynobj): Fix typos in
explicit instantiations.

15 years agodaily update
Alan Modra [Sat, 6 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoFix last commit.
Daniel Jacobowitz [Fri, 5 Sep 2008 17:55:07 +0000 (17:55 +0000)]
Fix last commit.

15 years ago * dwarf2.c: Change leading whitespace to tabs.
Daniel Jacobowitz [Fri, 5 Sep 2008 17:48:08 +0000 (17:48 +0000)]
* dwarf2.c: Change leading whitespace to tabs.

15 years ago * readelf.c (load_specific_debug_section): New function, from
Daniel Jacobowitz [Fri, 5 Sep 2008 14:49:05 +0000 (14:49 +0000)]
* readelf.c (load_specific_debug_section): New function, from
load_debug_section.
(load_debug_section): Use load_specific_debug_section.
(display_debug_section): Use load_specific_debug_section.  Check for
multiple sections with the same name.

15 years ago * gas/arm/abs12.d: Update expected disassembly.
Nick Clifton [Fri, 5 Sep 2008 11:24:30 +0000 (11:24 +0000)]
    * gas/arm/abs12.d: Update expected disassembly.
        * gas/arm/tls_vxworks.d: Likewise.
        * gas/arm/unwind_vxworks.d: Likewise.
        * gas/arm/group-reloc-alu-encoding-bad.d: Skip for vxworks
        targets.
        * gas/arm/group-reloc-alu.d: Likewise.
        * gas/arm/group-reloc-ldc-encoding-bad.d: Likewise.
        * gas/arm/group-reloc-ldc.d: Likewise.
        * gas/arm/group-reloc-ldr-encoding-bad.d: Likewise.
        * gas/arm/group-reloc-ldr.d: Likewise.
        * gas/arm/group-reloc-ldrs-encoding-bad.d: Likewise.
        * gas/arm/group-reloc-ldrs.d: Likewise.
        * gas/arm/local_function.d: Likewise.
        * gas/arm/mapshort-elf.d: Likewise.
        * gas/arm/undefined.d: Likewise.

15 years ago * lib/gas-defs.exp (run_dump_test): If the test expects an error,
Nick Clifton [Fri, 5 Sep 2008 11:19:13 +0000 (11:19 +0000)]
    * lib/gas-defs.exp (run_dump_test): If the test expects an error,
        fail the test if gas doesn't report an error.

15 years ago2008-09-05 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 5 Sep 2008 08:07:54 +0000 (08:07 +0000)]
2008-09-05  Tristan Gingold  <gingold@adacore.com>

Add MacOSX 64 bits support.
* mach-o.h (bfd_mach_o_ppc_thread_flavour): Add
BFD_MACH_O_PPC_THREAD_STATE_64.
(bfd_mach_o_i386_thread_flavour): Add BFD_MACH_O_x86_THREAD_STATE64,
BFD_MACH_O_x86_FLOAT_STATE64, BFD_MACH_O_x86_EXCEPTION_STATE64,
BFD_MACH_O_x86_THREAD_STATE, BFD_MACH_O_x86_FLOAT_STATE,
BFD_MACH_O_x86_EXCEPTION_STATE.
(bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_SEGMENT_64, BFD_MACH_O_LC_ROUTINES_64,
BFD_MACH_O_LC_UUID.
(BFD_MACH_O_CPU_IS64BIT): Added.
(bfd_mach_o_cpu_type): Add BFD_MACH_O_CPU_TYPE_POWERPC_64,
BFD_MACH_O_CPU_TYPE_X86_64.
(bfd_mach_o_header): Add version field.
(bfd_mach_o_section) Add reserved3 field.
(bfd_mach_o_segment_command): Add initprot and maxprot fields.

* mach-o.c (N_TEXT, N_DATA, N_BSS): Added.
(bfd_mach_o_version): New function.
(bfd_mach_o_valid): Handle 64bits cpus.
(bfd_mach_o_write_header): handler 64bits headers.
(bfd_mach_o_scan_write_section_32, bfd_mach_o_scan_write_section_64):
New functions (from bfd_mach_o_scan_write_section) to handle both
flavors.
(bfd_mach_o_scan_write_segment): Parameter wide added to support
both flavors.
(bfd_mach_o_write_contents): Support both flavors.
(bfd_mach_o_read_header): Ditto.
(bfd_mach_o_scan_read_section_32, bfd_mach_o_scan_read_section_64):
New functions (from bfd_mach_o_scan_read_section) to support both
flavors.
(bfd_mach_o_scan_read_symtab_symbol): Support both flavors.
(bfd_mach_o_scan_read_symtab): Ditto.
(bfd_mach_o_scan_read_segment): Parameter wide added to support
both flavors.
(bfd_mach_o_scan_read_segment_32, bfd_mach_o_scan_read_segment_64):
New functions to call bfd_mach_o_scan_read_segment.
(bfd_mach_o_flatten_sections): Support both flavors.
(bfd_mach_o_scan_start_address): Ditto.
(bfd_mach_o_scan): Ditto.
(bfd_mach_o_lookup_section): Ditto.

15 years agodaily update
Alan Modra [Fri, 5 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
Aaron W. LaFramboise [Thu, 4 Sep 2008 02:18:16 +0000 (02:18 +0000)]
2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>

* configure.ac (RPATH_ENVVAR): Use PATH on Windows.
(GCC_SHLIB_SUBDIR): New.
* Makefile.tpl (HOST_LIB_PATH_gcc): Use GCC_SHLIB_SUBDIR.
* configure: Regenerate.
* Makefile.in: Regenerate.

15 years agodaily update
Alan Modra [Thu, 4 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years agoMake new functions static.
Nick Clifton [Wed, 3 Sep 2008 15:44:33 +0000 (15:44 +0000)]
Make new functions static.
Rearrange wording of documentation.

15 years ago* config/tc-i386.c (pe_lcomm_internal): New function. Allows the
Nick Clifton [Wed, 3 Sep 2008 14:02:30 +0000 (14:02 +0000)]
* config/tc-i386.c (pe_lcomm_internal): New function.  Allows the
  alignment field of the .lcomm directive to be optional.
  (pe_lcomm): New function.  Pass pe_lcomm_internal to
  s_comm_internal.
  (md_pseudo_table): Implement .lcomm directive for COFF based
  targets.
  * doc/c-i386.texi (i386-Directives): New node.  Used to document
  the .lcomm directive.

15 years agodaily update
Alan Modra [Wed, 3 Sep 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Tue, 2 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Mon, 1 Sep 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 31 Aug 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
Dave Anglin [Sat, 30 Aug 2008 15:52:22 +0000 (15:52 +0000)]
* config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
and NetBSD.

15 years agodaily update
Alan Modra [Sat, 30 Aug 2008 00:05:55 +0000 (00:05 +0000)]
daily update

15 years ago * config/tc-avr.c (mcu_types): Add atmega16u4.
Nick Clifton [Fri, 29 Aug 2008 16:58:02 +0000 (16:58 +0000)]
    * config/tc-avr.c (mcu_types): Add atmega16u4.
        * doc/c-avr.texi: Likewise.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 16:05:03 +0000 (16:05 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* objdump.c (dump_stabs): Add sections for Darwin.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 16:04:18 +0000 (16:04 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* stab.def: Add BNSYM, ENSYM, OSO for darwin.

15 years agogas/testsuite/
Jan Beulich [Thu, 28 Aug 2008 15:59:32 +0000 (15:59 +0000)]
gas/testsuite/
2008-08-28  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intel.s: Add retf.
* gas/i386/intel.{d,e}: Adjust.
* gas/i386/opcode-intel.d: Replace lret with retf.

opcodes/
2008-08-28  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (dis386): Adjust far return mnemonics.
* i386-opc.tbl: Add retf.
* i386-tbl.h: Re-generate.

15 years agogas/testsuite/
Jan Beulich [Thu, 28 Aug 2008 15:30:30 +0000 (15:30 +0000)]
gas/testsuite/
2008-08-28  Jan Beulich  <jbeulich@novell.com>

* gas/i386/gas/i386/opcode-suffix.d: Add suffixes to cmovXX.

opcodes/
2008-08-28  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (dis386_twobyte): Adjust cmovXX mnemonics.

15 years ago2008-08-28 Kris Van Hees <kris.van.hees@oracle.com>
Kris Van Hees [Thu, 28 Aug 2008 14:51:04 +0000 (14:51 +0000)]
2008-08-28  Kris Van Hees  <kris.van.hees@oracle.com>

        PR gold/6858
        * options.cc (General_options::finalize): Allow undefined symbols
        in shlibs if linking -shared.

        PR gold/6859
        * symtab.cc (Symbol::init_base_undefined): Mark explicitly undefined
        symbols as not needing a dynsym entry.

15 years agogas/
H.J. Lu [Thu, 28 Aug 2008 14:07:50 +0000 (14:07 +0000)]
gas/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-ia64.c (CR_IIB0): New.
(CR_IIB1): Likewise.
(cr): Add cr.iib0 and cr.iib1.
(specify_resource): Handle IA64_RS_CR_IIB and CR_IIB0/CR_IIB1.

gas/testsuite/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* gas/ia64/dv-raw-err.s: Add tests for cr.iib0 and cr.iib1.
* gas/ia64/dv-waw-err.s: Likewise.
* gas/ia64/regs.s: Likewise.

* gas/ia64/dv-raw-err.l: Updated.
* gas/ia64/dv-waw-err.l: Likewise.
* gas/ia64/regs.d: Likewise.

include/opcode/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* ia64.h (ia64_resource_specifier): Add IA64_RS_CR_IIB.  Update
IA64_RS_CR.

opcodes/

2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>

* ia64-dis.c (print_insn_ia64): Handle cr.iib0 and cr.iib1.
* ia64-gen.c (lookup_specifier): Likewise.

* ia64-ic.tbl: Add support for cr.iib0 and cr.iib1.
* ia64-raw.tbl: Likewise.
* ia64-waw.tbl: Likewise.
* ia64-asmtab.c: Regenerated.

15 years ago2008-08-28 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 28 Aug 2008 10:44:31 +0000 (10:44 +0000)]
2008-08-28  Tristan Gingold  <gingold@adacore.com>

* configure.ac (powerpc-*-darwin*, i?86-*-darwin*,x86_64-*-darwin9):
Enable bfd, binutils and opcodes.
* configure: Regenerate.

15 years agogas/
Jan Beulich [Thu, 28 Aug 2008 09:42:11 +0000 (09:42 +0000)]
gas/
2008-08-28  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (md_assemble): Force number of displacement
operands to zero when processing string instruction.
(i386_index_check): Special-case string instruction operands. Don't
fudge address prefix if there already was a memory operand. Fix
error message to correctly reflect the addressing mode used.
(i386_att_operand): Fix comment.
(i386_intel_operand): Snapshot, clear, and restore base and index
reg for each operand processed. Increment count of memory operands
later.

gas/testsuite/
2008-08-28  Jan Beulich  <jbeulich@novell.com>

* gas/i386/string-bad.{l,s}, gas/i386/string-ok.{d,e,s}: New.
* gas/i386/i386.exp: Run new tests.

15 years ago * elf-hppa.h (elf_hppa_reloc_final_type): Handle R_PARISC_GPREL64,
Dave Anglin [Thu, 28 Aug 2008 02:33:45 +0000 (02:33 +0000)]
* elf-hppa.h (elf_hppa_reloc_final_type): Handle R_PARISC_GPREL64,
R_PARISC_SEGREL32 and R_PARISC_SEGREL64.
* som.c (som_fixup_formats): Add R_DATA_GPREL fixup.
(som_hppa_howto_table): Likewise.
(hppa_som_gen_reloc_type): In case R_HPPA_GOTOFF, detect R_DATA_GPREL
final type.
(som_write_fixups): Handle R_DATA_GPREL.

* config/tc-hppa.c (is_SB_relative): New macro.
(fix_new_hppa): Remove $segrel$ marker.
(cons_fix_new_hppa): Set reloc type R_PARISC_SEGREL32 if expression is
segment relative.
* config/tc-hppa.h (tc_frob_symbol): Check for $segrel$.

15 years agogas/testsuite/
H.J. Lu [Wed, 27 Aug 2008 17:53:42 +0000 (17:53 +0000)]
gas/testsuite/

2008-08-27  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/intel.s: Add tests for fidivr.

* gas/i386/intel.d: Updated.

opcodes/

2008-08-27  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Correct fidivr operand size.

* i386-tbl.h: Regenerated.

15 years agogas/
Jan Beulich [Wed, 27 Aug 2008 16:24:32 +0000 (16:24 +0000)]
gas/
2008-08-27  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (check_string): Use register_prefix for error
message.
(process_operands): Likewise.

15 years agodaily update
Alan Modra [Wed, 27 Aug 2008 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * c-arm.texi: Add tutorial on ARM unwinding pseudo ops.
Mark Mitchell [Tue, 26 Aug 2008 16:02:59 +0000 (16:02 +0000)]
* c-arm.texi: Add tutorial on ARM unwinding pseudo ops.

15 years ago * elf32-arm.c: Fix up comment describing Thumb to ARM interworking
Nick Clifton [Tue, 26 Aug 2008 14:40:18 +0000 (14:40 +0000)]
        * elf32-arm.c: Fix up comment describing Thumb to ARM interworking
            stub.

15 years agobfd/
Nick Clifton [Tue, 26 Aug 2008 11:46:41 +0000 (11:46 +0000)]
bfd/
        * elf32-arm.c (arm_thumb_arm_v4t_short_branch_stub): Define.
        (elf32_arm_stub_type): Add arm_thumb_arm_v4t_stub_short_branch.
        (arm_type_of_stub): Handle armv4t short branches. Update
        prototype.
        (arm_stub_is_thumb): Handle arm_thumb_arm_v4t_stub_short_branch.
        (arm_build_one_stub): Likewise.
        (arm_size_one_stub): Likewise.
        (elf32_arm_size_stubs): Use new arm_type_of_stub prototype.
        (arm_map_one_stub): Handle arm_thumb_arm_v4t_stub_short_branch.

        ld/testsuite/
        * ld-arm/arm-elf.exp: Add farcall-thumb-arm-short test.
        * ld-arm/farcall-group2.s: Fix comment.
        * ld-arm/farcall-thumb-arm-short.d: New test.
        * ld-arm/farcall-thumb-arm-short.s: New test.

15 years agoPR 6727
Nick Clifton [Tue, 26 Aug 2008 11:11:17 +0000 (11:11 +0000)]
PR 6727
   * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
   input sections in all input bfds and always select the last
   suitable one, so that interworking stubs are always processed
   after all other input sections.
   (arm_elf_before_allocation): Remove redundant use of
   output_has_begun flag.

15 years ago * config/bfin-parse.y (check_macfunc_option): Fix instruction
Jie Zhang [Tue, 26 Aug 2008 10:03:24 +0000 (10:03 +0000)]
* config/bfin-parse.y (check_macfunc_option): Fix instruction
mode checking.
(asm_1): Check mode for 16-bit multiply instructions.

testsuite/
* gas/bfin/arith_mode.d: New test.
* gas/bfin/arith_mode.s: New test.
* gas/bfin/invalid_arith_mode.l: New test.
* gas/bfin/invalid_arith_mode.s: New test.
* gas/bfin/bfin.exp: Add arith_mode and invalid_arith_mode.

15 years agodaily update
Alan Modra [Tue, 26 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoMerge from gcc:
DJ Delorie [Mon, 25 Aug 2008 17:26:06 +0000 (17:26 +0000)]
Merge from gcc:
2008-08-16  Nicolas Roche  <roche@adacore.com>
* Makefile.tpl: Add BOOT_ADAFLAGS.
* Makefile.in: Regenerate.

15 years agoMerge from gcc.
DJ Delorie [Mon, 25 Aug 2008 17:07:33 +0000 (17:07 +0000)]
Merge from gcc.

15 years ago * gmon_io.h: Don't include sysdep.h here.
Alan Modra [Mon, 25 Aug 2008 04:38:45 +0000 (04:38 +0000)]
* gmon_io.h: Don't include sysdep.h here.
(O_BINARY, SET_BINARY): Don't define here.
* gmon_io.c: Include "binary-io.h".
(gmon_out_read): Remove #ifdef SET_BINARY.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.

15 years ago * sysdep.h: Include "binary-io.h".
Alan Modra [Mon, 25 Aug 2008 04:38:13 +0000 (04:38 +0000)]
* sysdep.h: Include "binary-io.h".
(O_BINARY): Don't define here.
* bin2c.c (O_BINARY, O_TEXT, SET_BINARY): Don't define here.
* strings.c: Likewise.
(main): Remove #ifdef SET_BINARY.
* Makefile.am: Run "make dep-am"
* Makefile.in: Regenerate.

15 years ago * binary-io.h: New file, imported from gnulib, but don't
Alan Modra [Mon, 25 Aug 2008 04:36:03 +0000 (04:36 +0000)]
* binary-io.h: New file, imported from gnulib, but don't
#include <fcntl.h> or <stdio.h>.

15 years agodaily update
Alan Modra [Mon, 25 Aug 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago(_bfd_elf_write_section_eh_frame): Do proper
Andreas Schwab [Sun, 24 Aug 2008 21:43:00 +0000 (21:43 +0000)]
(_bfd_elf_write_section_eh_frame): Do proper
extension when calculating difference of offsets.

15 years ago * Makefile.am (chew.o): Delete rule.
Alan Modra [Sun, 24 Aug 2008 03:57:28 +0000 (03:57 +0000)]
* Makefile.am (chew.o): Delete rule.
($(MKDOC)): Move options before C file.
* Makefile.in: Regenerate.

15 years agoUpdate a number of obsolete autoconf macros.
Alan Modra [Sun, 24 Aug 2008 03:13:05 +0000 (03:13 +0000)]
Update a number of obsolete autoconf macros.