OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
15 years agogas/
Jan Beulich [Thu, 16 Apr 2009 08:52:27 +0000 (08:52 +0000)]
gas/
2009-04-16  Jan Beulich  <jbeulich@novell.com>

* expr.c: Include limits.h if available, and #define CHAR_BITS
otherwise.
(expr): Check range of shift count when evaluating a constant
expression.

15 years agobinutils/testsuite/
Alan Modra [Thu, 16 Apr 2009 04:24:07 +0000 (04:24 +0000)]
binutils/testsuite/
* binutils-all/localize-hidden-1.s: Use "==" instead of ".set".
* binutils-all/localize-hidden-2.s: Likewise.
gas/testsuite/
* gas/all/gas.exp: Disable assign and assign-ok tests on blackfin.
* gas/all/p2425.s: Use "==" instead of "=".
* gas/all/weakref1.s: Likewise.
* gas/macros/and.s: Likewise.
* gas/macros/test1.s: Likewise.
* gas/hppa/parse/parse.exp: Remove xfail on block1.
ld/testsuite/
* ld-libs/lib-1.s: Use "==" instead of ".set".
* ld-libs/lib-2.s: Likewise.
* ld-scripts/defined.s: Likewise.

15 years agodaily update
Alan Modra [Thu, 16 Apr 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-04-15 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 15 Apr 2009 13:49:54 +0000 (13:49 +0000)]
2009-04-15  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
branch to an undef weak symbol into a jump to next instruction if
a PLT entry will be created.

testsuite/
* ld-arm/arm-elf.exp: Add 1 more test to check undef weak
reference with PLT in ARM mode.
* ld-arm/thumb2-bl-undefweak1.d, ld-arm/thumb2-bl-undefweak1.s:
New files.

15 years agogas/
Jan Beulich [Wed, 15 Apr 2009 13:33:03 +0000 (13:33 +0000)]
gas/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (process_operands): Print operands in
correct order depending on intel_syntax.

gas/testsuite/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intel.e: Adjust expectations.

15 years agogas/testsuite/
Jan Beulich [Wed, 15 Apr 2009 13:31:28 +0000 (13:31 +0000)]
gas/testsuite/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* gas/i386/x86-64-sse5.s: Add test of protd.
* gas/i386/x86-64-sse5.d: Adjust expectations to match input.

opcodes/
2009-04-15  Jan Beulich  <jbeulich@novell.com>

* i386-opc.tbl (protb, protw, protd, protq): Set opcode
extension to None.
(pshab, pshaw, pshad, pshaq): Likewise.
* i386-tbl.h: Re-generate.

15 years agogprof/
Kazu Hirata [Wed, 15 Apr 2009 03:22:42 +0000 (03:22 +0000)]
gprof/
* gprof.h: Include gconfig.h.  #undef PACKAGE.

ld/
* ldlang.c: Do not include limits.h.

15 years agodaily update
Alan Modra [Wed, 15 Apr 2009 01:00:04 +0000 (01:00 +0000)]
daily update

15 years agomerge from gcc
DJ Delorie [Tue, 14 Apr 2009 18:05:58 +0000 (18:05 +0000)]
merge from gcc

15 years agobfd/ChangeLog
Dave Korn [Tue, 14 Apr 2009 09:47:44 +0000 (09:47 +0000)]
bfd/ChangeLog

* coffgen.c (make_a_section_from_file):  Set the backend long
section names enable if long section names found on input.
* coffcode.h:  Extend long section names documentation to match.

binutils/ChangeLog

* objcopy.c (enum long_section_name_handling):  New enum type.
(enum command_line_switch):  Add OPTION_LONG_SECTION_NAMES.
(copy_options[]):  Add entry for --long-section-names option.
(copy_usage):  Document it.
(set_long_section_mode):  New subroutine.
(copy_file):  Call it.
(copy_main):  Accept OPTION_LONG_SECTION_NAMES and parse arg.
* doc/binutils.texi:  Update objcopy documentation with details
of new option.

15 years ago PR ld/10047
Alan Modra [Tue, 14 Apr 2009 03:17:21 +0000 (03:17 +0000)]
PR ld/10047
* ldfile.c (find_scripts_dir): Use make_relative_prefix to find
ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.

15 years ago2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 14 Apr 2009 02:47:22 +0000 (02:47 +0000)]
2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>

* ldfile.c (ldfile_find_command_file): Revert the last change.

15 years agodaily update
Alan Modra [Tue, 14 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years agoMerged from gcc head revision 146001.
Kai Tietz [Mon, 13 Apr 2009 10:48:27 +0000 (10:48 +0000)]
Merged from gcc head revision 146001.
2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>

        PR target/39397
        * pex-common.h (struct pex_obj): Store pid values as pid_t,
        not as long (members *children and (*wait))
        * pex-common.c (pex_run_in_environment): Likewise.
        * pex-win32.c (pex_win32_wait): Return pid_t and properly check
        returned pid value.
        * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
        * pex-msdos.c (pex_msdos_wait): Likewise.

15 years agodaily update
Alan Modra [Mon, 13 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 12 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years agoMove testsuite ChangeLog entries to testsuite/ChangeLog*.
H.J. Lu [Sat, 11 Apr 2009 14:42:17 +0000 (14:42 +0000)]
Move testsuite ChangeLog entries to testsuite/ChangeLog*.

15 years ago2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 11 Apr 2009 14:06:56 +0000 (14:06 +0000)]
2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10047
* ldfile.c (ldfile_find_command_file): First try raw name.

15 years agodaily update
Alan Modra [Sat, 11 Apr 2009 01:00:04 +0000 (01:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Fri, 10 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years ago PR 9824
Nick Clifton [Thu, 9 Apr 2009 16:06:48 +0000 (16:06 +0000)]
    PR 9824
        * ld.texinfo (Output Section Constraint): New node.  Documents the
        ONLY_IF_RO and ONLY_IF_RW constraints.
        (Symbolic Constants): New node.  Documents the CONSTANT operator.

15 years ago2009-04-09 Catherine Moore <clm@codesourcery.com>
Catherine Moore [Thu, 9 Apr 2009 15:55:59 +0000 (15:55 +0000)]
2009-04-09  Catherine Moore  <clm@codesourcery.com>

        * config/tc-mips.c (mips_fix_24k): Declare.
        (check_for_24k_errata): New.
        (mips_cleanup): Call check_for_24k_errata.
        (start_noreorder): Likewise.
        (md_mips_end): Likewise.
        (s_change_sec): Likewise.
        (s_change_section): Likewise.
        (append_insn): Call check_for_24k_errata.  Prevent
        ERET/DERET instructions from being moved into delay
        slots.
        (OPTION_FIX_24K): New.
        (OPTION_NO_FIX_24k) New.
        (md_longopts): Add "mfix-24k" and "mno-fix-24k".
        (md_parse_option): Handle fix-24k options.
        (md_show_usage): Display fix-24k options.
        * doc/c-mips.texi: Document.
        * testsuite/gas/mips/mips.exp: Run new tests.
        * testsuite/gas/mips/eret.s: New test.
        * testsuite/gas/mips/eret.d: New test output.
        * testsuite/gas/mips/eret.l: New test output.

15 years ago2009-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
H.J. Lu [Thu, 9 Apr 2009 15:54:10 +0000 (15:54 +0000)]
2009-04-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

* configure.ac: Bump minimum GMP/MPFR versions to 4.2 and 2.3.1.
* configure: Regenerate.

15 years ago2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 9 Apr 2009 15:40:57 +0000 (15:40 +0000)]
2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10039
* configure.ac: Require texinfo 4.7.
* configure: Regenerated.

15 years ago2009-04-09 Steve Ellcey <sje@cup.hp.com>
H.J. Lu [Thu, 9 Apr 2009 15:39:52 +0000 (15:39 +0000)]
2009-04-09  Steve Ellcey  <sje@cup.hp.com>

* Makefil.def (languages): New entries.
* Makefile.tpl (check-gcc-*): New generic target.
* Makefile.in: Regenerate.

15 years ago * config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
Adam Nemet [Thu, 9 Apr 2009 15:28:56 +0000 (15:28 +0000)]
* config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
instead of HAVE_64BIT_SYMBOLS.

15 years ago * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
Alan Modra [Thu, 9 Apr 2009 13:55:35 +0000 (13:55 +0000)]
* emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
of fork/execvp.

15 years ago * corefile.c (core_create_function_syms): Initialise a symbol's
Nick Clifton [Thu, 9 Apr 2009 13:07:34 +0000 (13:07 +0000)]
    * corefile.c (core_create_function_syms): Initialise a symbol's
        is_func field based on the setting of the BSF_FUNCTION flag.

15 years agodaily update
Alan Modra [Thu, 9 Apr 2009 01:00:04 +0000 (01:00 +0000)]
daily update

15 years ago2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 8 Apr 2009 21:48:47 +0000 (21:48 +0000)]
2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* ld-i386/abs.d: Add  --32 for assembler and -melf_i386 for
linker.

15 years ago[cgen]
DJ Delorie [Wed, 8 Apr 2009 20:39:35 +0000 (20:39 +0000)]
[cgen]
* cpu/mep-c5.cpu: New.
* cpu/mep-core.cpu: Add C5 support.
* cpu/mep.opc: Likewise.
[opcodes]
* mep-asm.c: Regenerate.
* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-dis.c: Regenerate.
* mep-ibld.c: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.
[sid]
* component/cache/cache.cxx (cache_component::cache_component):
Add write_hint_pin().  Attach it to write-hint.
(cache_component::write_hint): New.
* component/cache/cache.h (write_hint_pin): New.
(write_hint): New.

* component/cgen-cpu/mep/Makefile.am: Regenerate.
* component/cgen-cpu/mep/Makefile.in: Regenerate.
* component/cgen-cpu/mep/mep-core1-decode.cxx: Regenerate.
* component/cgen-cpu/mep/mep-core1-decode.h: Regenerate.
* component/cgen-cpu/mep/mep-core1-defs.h: Regenerate.
* component/cgen-cpu/mep/mep-core1-model.cxx: Regenerate.
* component/cgen-cpu/mep/mep-core1-model.h: Regenerate.
* component/cgen-cpu/mep/mep-core1-sem.cxx: Regenerate.
* component/cgen-cpu/mep/mep-decode.cxx: Regenerate.
* component/cgen-cpu/mep/mep-decode.h: Regenerate.
* component/cgen-cpu/mep/mep-defs.h: Regenerate.
* component/cgen-cpu/mep/mep-desc.h: Regenerate.
* component/cgen-cpu/mep/mep-model.cxx: Regenerate.
* component/cgen-cpu/mep/mep-model.h: Regenerate.
* component/cgen-cpu/mep/mep-sem.cxx: Regenerate.
* component/cgen-cpu/mep/mep.cxx (mep_cpu): Connect
write-hint pin.
(do_cache): Add C5 support.
(do_cache_prefetch): Likewise.
(do_casb3, do_cash3, do_casw3): New.
* component/cgen-cpu/mep/mep.h: Add C5 support and write-hint pin.
(do_casb3, do_cash3, do_casw3): New.

* component/families/mep/Makefile.in: Regenerate.
* component/families/mep/dsu.in: Add C5 support.
* main/dynamic/mainDynamic.cxx: Add C5 support.
* main/dynamic/mepCfg.cxx: Connect write-hint pin.
* main/dynamic/mepCfg.h: Add C5 support.

15 years agomerge from gcc
DJ Delorie [Wed, 8 Apr 2009 16:42:57 +0000 (16:42 +0000)]
merge from gcc

15 years agobfd/
H.J. Lu [Wed, 8 Apr 2009 16:04:50 +0000 (16:04 +0000)]
bfd/

2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (elf_link_add_object_symbols): Warn alternate ELF
machine code.

include/

2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* bfdlink.h (bfd_link_info): Add warn_alternate_em.

ld/

2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>

* lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
(ld_options): Likewise.
(parse_args): Likewise.

* ld.texinfo: Document --warn-alternate-em.

* NEWS: Mention --warn-alternate-em.

15 years ago[include/elf]
DJ Delorie [Wed, 8 Apr 2009 02:24:23 +0000 (02:24 +0000)]
[include/elf]
* mep.h (EF_MEP_CPU_C5): New.
[bfd]
* archures.c: Add bfd_mach_mep_c5.
* bfd-in2.h: Likewise.
* cpu-mep.c: Add bfd_c5_arch.
* elf32-mep.c: Support it.
[gas]
* config/tc-mep.c: Add UCI/DSP instruction support.  Add C5 support.
(md_show_usage): Change default endian to little.
* config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little.
[ld]
* emulparams/elf32mep.sh: Change default endian to little.

15 years agodaily update
Alan Modra [Wed, 8 Apr 2009 01:00:09 +0000 (01:00 +0000)]
daily update

15 years ago2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 7 Apr 2009 20:04:08 +0000 (20:04 +0000)]
2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (_bfd_elf_section_already_linked): Add `\n' for
info->callbacks->einfo.
* linker.c (_bfd_generic_section_already_linked): Likewise.

15 years agoopcodes/
Peter Bergner [Tue, 7 Apr 2009 18:28:02 +0000 (18:28 +0000)]
opcodes/
* ppc-opc.c (powerpc_opcodes) <"tlbilxlpid", "tlbilxpid", "tlbilxva",
"tlbilx">: Use secondary opcode "18" as per the ISA 2.06 documentation.
Reorder entries so the extended mnemonics are listed before tlbilx.

gas/testsuite/
* gas/ppc/e500mc.d: Update to match extended mnemonics.

15 years ago[bfd]
DJ Delorie [Tue, 7 Apr 2009 18:21:22 +0000 (18:21 +0000)]
[bfd]
* elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
[gas]
* tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA
immediates.
(build_bytes): Pass insn to do_a_fix_imm.
[include/opcode]
* h8300.h: Add relaxation attributes to MOVA opcodes.

15 years ago * ld.texinfo (Output Section Address): Note that specifying an
Nick Clifton [Tue, 7 Apr 2009 08:07:08 +0000 (08:07 +0000)]
    * ld.texinfo (Output Section Address): Note that specifying an
        address for an output section will only change the location
        counter if the output section is used.

15 years agodaily update
Alan Modra [Tue, 7 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years ago2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 6 Apr 2009 16:48:36 +0000 (16:48 +0000)]
2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>

* coff-x86_64.c (bfd_pe_print_pdata): Defined to
_bfd_pex64_print_pdata only if PE is defined.

* libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
(_bfd_pex64_print_pdata): This.

* peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
(_bfd_pex64_print_pdata): This.  Defined only if COFF_WITH_pex64
is defined.

15 years ago * ldfile.c (ldfile_find_command_file): Initialize result.
Kazu Hirata [Mon, 6 Apr 2009 01:21:09 +0000 (01:21 +0000)]
* ldfile.c (ldfile_find_command_file): Initialize result.

15 years agodaily update
Alan Modra [Mon, 6 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years ago * ld.texinfo (-L): Mention that -L options do not affect how ld
Kazu Hirata [Mon, 6 Apr 2009 00:47:09 +0000 (00:47 +0000)]
* ld.texinfo (-L): Mention that -L options do not affect how ld
searches for a linker script unless -T option is specified.
* ldfile.c (ldfile_find_command_file): Append the path obtained
from the program name to the search path instead of
prepending. Add a new parameter "default_only". Restrict the
search to the default script location if the new parameter is
true.
(ldfile_open_command_file_1): New.
(ldfile_open_command_file): Call ldfile_open_command_file_1.
(ldfile_open_default_command_file): New.

15 years ago2009-04-05 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Sun, 5 Apr 2009 18:12:21 +0000 (18:12 +0000)]
2009-04-05  Kai Tietz  <kai.tietz@onevision.com>

        * coff-x86_64.c (bfd_pe_print_pdata): Define as
        _bfd_pep_print_x64_pdata.
        * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
        * peXXigen.c (_bfd_pep_print_x64_pdata): New.

15 years agodaily update
Alan Modra [Sun, 5 Apr 2009 01:00:05 +0000 (01:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sat, 4 Apr 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
Sterling Augustine [Fri, 3 Apr 2009 16:06:40 +0000 (16:06 +0000)]
2009-04-02  Sterling Augustine  <sterling@jaw.hq.tensilica.com>

* elf32-xtensa.c (relax_property_section): Always set r_offset
to zero.

15 years ago * ld-scripts/rgn-at.s: Use explicit .section pseudos.
Nathan Sidwell [Fri, 3 Apr 2009 10:15:21 +0000 (10:15 +0000)]
* ld-scripts/rgn-at.s: Use explicit .section pseudos.

15 years ago * ld-pe/image_size.d (#target): Also run test on Cygwin and x86_64
Dave Korn [Fri, 3 Apr 2009 09:25:32 +0000 (09:25 +0000)]
* ld-pe/image_size.d (#target):  Also run test on Cygwin and x86_64
MinGW targets.

15 years ago * ldlang.c (lang_leave_output_section_statement): Set lma_region
Nathan Sidwell [Fri, 3 Apr 2009 07:45:28 +0000 (07:45 +0000)]
* ldlang.c (lang_leave_output_section_statement): Set lma_region
if it is not overridden and section is for the same vma region as
the previous section.

* ld-scripts/rgn-at.exp: New.
* ld-scripts/rgn-at.s: New.
* ld-scripts/rgn-at1.d: New.
* ld-scripts/rgn-at1.t: New.
* ld-scripts/rgn-at2.d: New.
* ld-scripts/rgn-at2.t: New.
* ld-scripts/rgn-at3.d: New.
* ld-scripts/rgn-at3.t: New.

15 years ago * ld-pe/export_dynamic_warning.s: Make dummy code portable.
Dave Korn [Fri, 3 Apr 2009 07:00:26 +0000 (07:00 +0000)]
* ld-pe/export_dynamic_warning.s:  Make dummy code portable.

15 years agodaily update
Alan Modra [Fri, 3 Apr 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * ld-pe/export_dynamic_warning.d (#warning): Fix regex pattern.
Dave Korn [Thu, 2 Apr 2009 16:44:23 +0000 (16:44 +0000)]
* ld-pe/export_dynamic_warning.d (#warning):  Fix regex pattern.

15 years agold/ChangeLog
Dave Korn [Thu, 2 Apr 2009 14:42:41 +0000 (14:42 +0000)]
ld/ChangeLog

PR ld/6744
* ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
* emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
warning if --export-dynamic was passed on command-line.
* emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.

ld/testsuite/ChangeLog

PR ld/6744
* ld-pe/export_dynamic_warning.d:  New test control file.
* ld-pe/export_dynamic_warning.s:  New test source file.
* ld-pe/pe.exp:  Also run export_dynamic_warning dump test.

15 years ago2009-04-02 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Thu, 2 Apr 2009 14:12:46 +0000 (14:12 +0000)]
2009-04-02  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
branch stubs.
(elf32_arm_stub_type): New enum values for the two new stubs.
(arm_type_of_stub): Make use of the two new stubs.
(arm_size_one_stub): Handle the two new stubs.

testsuite/
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Update expected
results.
* ld-arm/farcall-thumb-thumb.d: Likewise.

15 years ago * inutils-all/objcopy.exp (strip_executable): Delete remote dest
Dave Korn [Thu, 2 Apr 2009 13:47:44 +0000 (13:47 +0000)]
* inutils-all/objcopy.exp (strip_executable):  Delete remote dest
file before downloading.
(strip_executable_with_saving_a_symbol):  Likewise.
(keep_debug_symbols_and_test_copy):  Likewise.

15 years agoopcodes/
Peter Bergner [Thu, 2 Apr 2009 13:30:56 +0000 (13:30 +0000)]
opcodes/
* ppc-dis.c (powerpc_init_dialect): Do not choose a default dialect
due to -many/-Many.
(print_insn_powerpc): Make sure we only deprecate instructions using
the original dialect and not a modified dialect due to -Many handling.
Move the handling of the condition register and default operands to
the end of the if/else if/else chain.
* ppc-opc.c (powerpc_opcodes): Reorder the opcode table so that
instructions from newer processors are listed before older ones.
<"icblce", "sync", "eieio", "tlbld">: Deprecate for processors
that have instructions with conflicting opcodes.

15 years ago * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
Nick Clifton [Thu, 2 Apr 2009 09:43:56 +0000 (09:43 +0000)]
    * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
        * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
        Cortex-M1.

15 years agoPR 9987
Nick Clifton [Thu, 2 Apr 2009 09:34:22 +0000 (09:34 +0000)]
PR 9987
        * lib/ld-lib.exp (check_gc_sections_available): Do not run garbage
        collection tests for cygwin targets.

15 years ago * gold.h (reserve_unordered_map): Define, three versions, one for
Ian Lance Taylor [Thu, 2 Apr 2009 04:19:03 +0000 (04:19 +0000)]
* gold.h (reserve_unordered_map): Define, three versions, one for
each version of Unordered_map.
* layout.cc (Layout::Layout): Remove options parameter.  Add
number_of_input_files parameter.  Don't initialize options_.
Initialize number_of_input_files_ and resized_signatures_.  Move
sections_are_attached_.
(Layout::layout_group): Reserve space for group_signatures_.
(Layout::find_or_add_kept_section): Change name parameter to be a
reference.  Resize signatures_ map when it gets large enough.
(Layout::layout_eh_frame): Use parameters->options() instead of
this->options_.
(Layout::make_output_section): Likewise.
(Layout::attach_allocated_section_to_segment): Likewise.
(Layout::finalize, Layout::create_executable_stack): Likewise.
(Layout::set_segment_offsets, Layout::create_interp): Likewise.
(Layout::finish_dynamic_section, Layout::write_binary): Likewise.
* layout.h (class Layout): Update declarations.  Remove options_
field.  Add number_of_input_files_ and resized_signatures_
fields.  Move sections_are_attached_ field.
* main.cc (main): Pass number of input files to Layout
constructor.  Don't pass options.

15 years agoopcodes/
Peter Bergner [Thu, 2 Apr 2009 00:42:29 +0000 (00:42 +0000)]
opcodes/
        * ppc-opc.c (powerpc_opcodes) <"dcbzl">: Merge the POWER4 and
        E500MC entries.

15 years ago2009-04-01 Matt Thomas <matt@netbsd.org>
Matt Thomas [Thu, 2 Apr 2009 00:20:42 +0000 (00:20 +0000)]
2009-04-01  Matt Thomas  <matt@netbsd.org>

* elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
hidden symbols into the GOT or PLT.GOT.
(elf_vax_relocate_section): Do not emit a PCREL reloc
into a shared object if it is against a hidden symbol.

15 years ago2009-04-01 Matt Thomas <matt@netbsd.org>
Matt Thomas [Thu, 2 Apr 2009 00:10:46 +0000 (00:10 +0000)]
2009-04-01 Matt Thomas  <matt@netbsd.org>

* config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
(md_assemble): emit symbol name when used as immediate in PIC mode.
(md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).

15 years agodaily update
Alan Modra [Thu, 2 Apr 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago2009-04-01 Sterling Augustine <sterling@jaw.hq.tensilica.com>
Sterling Augustine [Wed, 1 Apr 2009 21:07:14 +0000 (21:07 +0000)]
2009-04-01  Sterling Augustine  <sterling@jaw.hq.tensilica.com>

* config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 20:13:10 +0000 (20:13 +0000)]
bfd/
* xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
and know_contains_shared_object_p.
(xcoff_archive_contains_shared_object_p): Add an "info" parameter.
Cache the result in the archive_info table.
(xcoff_auto_export_p): Add an "info" parameter and update the
call to xcoff_archive_contains_shared_object_p.
(xcoff_mark_auto_exports): Update accordingly.
(xcoff_post_gc_symbol): Likewise.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 20:09:03 +0000 (20:09 +0000)]
bfd/
* xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
rather than C_EXT.

ld/testsuite/
* ld-powerpc/aix-gc-1.nd: New test.
* ld-powerpc/aix52.exp: Run it.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 20:04:28 +0000 (20:04 +0000)]
bfd/
* coff-rs6000.c (member_layout): New structure.
(archive_iterator): Likewise.
(member_layout_init): New function.
(archive_iterator_begin): Likewise.
(archive_iterator_next): Likewise.
(xcoff_write_armap_old): Use the new iterator functions.
(do_shared_object_padding): Delete.
(xcoff_write_armap_big): Use the new iterator functions.  Simplify
handling of arch_info.
(xcoff_write_archive_contents_old): Allocate arelt_data in the
first loop rather than the second.  Allocate a member header if
there isn't one, then work out the stat information and length
in the first loop too.  Use the new iterators for the second loop.
(xcoff_write_archive_contents_big): Likewise.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 19:53:53 +0000 (19:53 +0000)]
bfd/
* bfd-in.h (bfd_xcoff_split_import_path): Declare.
(bfd_xcoff_set_archive_import_path): Likewise.
* bfd-in2.h: Regenerate.
* xcofflink.c: Include libiberty.h.
(xcoff_archive_info): New structure.
(xcoff_archive_info_hash): New function.
(xcoff_archive_info_eq): Likewise.
(xcoff_get_archive_info): Likewise.
(_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
(bfd_xcoff_split_import_path): New function.
(bfd_xcoff_set_archive_import_path): Likewise.
(xcoff_set_import_path): Move earlier in file.
(xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
object to the the directory part of the bfd's filename.  Get the
import path and filename of an archive object from the archive's
xcoff_tdata, initializing it if necessary.  Update use of
import_file_id.
(bfd_link_input_bfd): Update use of import_file_id.
(xcoff_write_global_symbol): Likewise.

ld/
* emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
function.
(ld_${EMULATION_NAME}_emulation): Use it.

15 years agoinclude/coff/
Richard Sandiford [Wed, 1 Apr 2009 19:38:11 +0000 (19:38 +0000)]
include/coff/
* xcoff.h (xcoff_link_hash_table): Move to bfd/xcofflink.c.

bfd/
* xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 19:27:38 +0000 (19:27 +0000)]
bfd/
* xcofflink.c (xcoff_link_create_extra_sections): Don't create
a .loader section for relocatable links.
(xcoff_need_ldrel_p): New function.
(xcoff_mark): Use it.
(bfd_xcoff_link_count_reloc): Only count loader relocs if there's
a loader section.
(xcoff_build_ldsym): New function, split out from...
(xcoff_build_ldsyms): ...here.  Rename to...
(xcoff_post_gc_symbol): ...this.  Only export symbols, and only
call xcoff_build_ldsym, if there's a loader section.
(xcoff_build_loader_section): New function, extracted verbatim from...
(bfd_xcoff_size_dynamic_sections): ...here.  Only call it if
there's a loader section.  Only add an __rtinit loader symbol
if there's a loader section.  Update after above name change.
(xcoff_symbol_section, xcoff_create_ldrel): New functions.
(bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
and xcoff_create_ldrel.
(xcoff_write_global_symbol): Use xcoff_create_ldrel.
(xcoff_reloc_link_order): Likewise, but only call it if there's
a loader section.  Use xcoff_symbol_section.
(_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
if there's a loader section.

ld/testsuite/
* ld-powerpc/aix-rel-1.s, ld-powerpc/aix-rel-1.od: New test.
* ld-powerpc/aix52.exp: Run it.

15 years agobfd/
Richard Sandiford [Wed, 1 Apr 2009 19:05:53 +0000 (19:05 +0000)]
bfd/
* xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.

15 years ago2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 1 Apr 2009 17:30:35 +0000 (17:30 +0000)]
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_INTEL178): Removed.
(EM_INTEL179): Likewise.
(EM_ETPU): New.
(EM_SLE9X): Likewise.
(EM_INTEL181): Likewise.
(EM_INTEL182): Likewise.

15 years agobinutils/ChangeLog
Dave Korn [Wed, 1 Apr 2009 17:20:19 +0000 (17:20 +0000)]
binutils/ChangeLog

* dlltool.c (set_dll_name_from_def):  Accept new second arg that
indicates if we are building DLL or EXE, and use it to add a
default suffix to the output filename when none is already present.
(def_name):  Indicate we are building an EXE when calling it.
(def_library):  Indicate we are building a DLL when calling it.

ld/testsuite/ChangeLog

* ld-cygwin/exe-export.exp:  Add "-lkernel32" when linking test exe.
* ld-cygwin/testexe.c (testexe_main):  Indicate whether global_a
was set to correct final value using error return status.
(testexe_dummy):  Dummy function calls an import from kernel32.dll
to ensure it is mapped into the process space at runtime.

15 years ago2009-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Ramana Radhakrishnan [Wed, 1 Apr 2009 16:49:32 +0000 (16:49 +0000)]
2009-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
(find_real_start): Likewise.
* config/tc-arm.h (TC_VALIDATE_FIX): Likewise

15 years ago2009-04-01 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 1 Apr 2009 15:45:13 +0000 (15:45 +0000)]
2009-04-01  Christophe Lyon  <christophe.lyon@st.com>

opcodes/
* arm-dis.c (print_insn): Print BE8 opcodes in little endianness.

ld/testsuite/
* ld-arm/arm-elf.exp: BE8 tests expect the same output as the
default ones.
* ld-arm/arm-be8.d: Print opcodes in little endian.
* ld-arm/farcall-thumb-arm-be8.d: Removed useless expected result.
* ld-arm/farcall-arm-arm-be8.d: Likewise.

15 years ago2009-04-01 Christophe Lyon <christophe.lyon@st.com>
Christophe Lyon [Wed, 1 Apr 2009 15:34:12 +0000 (15:34 +0000)]
2009-04-01  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (group_sections): Rewrite loops for better
readability.

15 years ago PR 9972
Nick Clifton [Wed, 1 Apr 2009 14:57:11 +0000 (14:57 +0000)]
    PR 9972
        * doc/binutils.texi (strings): Document the -V alias for the
        --version option.
        * strings.c (usage): Likewise.

15 years ago * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
Nathan Sidwell [Wed, 1 Apr 2009 14:02:57 +0000 (14:02 +0000)]
* config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
(arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
whenever possible.

testsuite/
* gas/arm/align.s, gas/arm/align.d: New.
* gas/arm/thumb32.d, gas/arm/arch6zk.d, gas/arm/arch6zk.s,
arm/thumb2_relax.d: Adjust for align changes.

15 years agogas/
Peter Bergner [Wed, 1 Apr 2009 01:41:07 +0000 (01:41 +0000)]
gas/
* config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.

gas/testsuite/
* gas/ppc/power7.d ("ori", ".p2align"): Add tests for group ending nop.
* gas/ppc/power7.s: Likewise.
* gas/ppc/power6.d: Likewise.
* gas/ppc/power6.s: Likewise.

15 years agodaily update
Alan Modra [Wed, 1 Apr 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago2009-03-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 31 Mar 2009 21:19:03 +0000 (21:19 +0000)]
2009-03-31  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (EM_INTEL178): New.
(EM_INTEL179): Likewise.
(EM_INTEL180): Likewise.

15 years ago PR 9992
Nick Clifton [Tue, 31 Mar 2009 08:08:33 +0000 (08:08 +0000)]
    PR 9992
        * configure.in: Import Solaris specific largefile test from
        bfd/configure.in.
        * configure: Regenerate.

15 years ago * doc/internals.texi: Fix trivial syntax errors.
Dave Korn [Tue, 31 Mar 2009 04:57:48 +0000 (04:57 +0000)]
* doc/internals.texi:  Fix trivial syntax errors.

15 years ago* elflink.c (elf_link_input_bfd): Don't try to resolve complex
DJ Delorie [Tue, 31 Mar 2009 01:42:29 +0000 (01:42 +0000)]
* elflink.c (elf_link_input_bfd): Don't try to resolve complex
relocs when doing a relocatable link.

15 years agodaily update
Alan Modra [Tue, 31 Mar 2009 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * ffsll.c (ffsll): Correct implementation.
Ian Lance Taylor [Mon, 30 Mar 2009 23:17:11 +0000 (23:17 +0000)]
* ffsll.c (ffsll): Correct implementation.

15 years agobinutils/
Richard Sandiford [Mon, 30 Mar 2009 20:39:43 +0000 (20:39 +0000)]
binutils/
* MAINTAINERS: Add self.

15 years agogas/testsuite:
Joseph Myers [Mon, 30 Mar 2009 14:41:31 +0000 (14:41 +0000)]
gas/testsuite:
* gas/arm/mapsecs.d, gas/arm/mapsecs.s: New.

opcodes:
* arm-dis.c (print_insn): Also check section matches in backwards
search for mapping symbol.

15 years agodaily update
Alan Modra [Mon, 30 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 29 Mar 2009 00:00:06 +0000 (00:00 +0000)]
daily update

15 years ago * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
Mark Mitchell [Sat, 28 Mar 2009 23:19:00 +0000 (23:19 +0000)]
* coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
"ERROR:", in error messages.
* cpu-arm.c (bfd_arm_merge_machines): Likewise.
* elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
* elf32-arm.c (tag_cpu_arch_combine): Likewise.
(elf32_arm_merge_eabi_attributes): Likewise.
(elf32_arm_merge_private_bfd_data): Likewise.

15 years ago * ffsll.c: New file.
Ian Lance Taylor [Sat, 28 Mar 2009 05:22:30 +0000 (05:22 +0000)]
* ffsll.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on ffsll.
* gold.h (ffsll): Declare if HAVE_FFSLL is not defined.
* ftruncate.c (ftruncate): Declare before definition.
* mremap.c (mremap): Likewise.
* pread.c (pread): Likewise.
* configure, Makefile.in, config.in: Rebuild.

15 years agodaily update
Alan Modra [Sat, 28 Mar 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * mremap.c: New file.
Ian Lance Taylor [Fri, 27 Mar 2009 23:21:09 +0000 (23:21 +0000)]
* mremap.c: New file.
* configure.ac: Call AC_REPLACE_FUNCS on mremap.
* gold.h (MREMAP_MAYMOVE): Define if HAVE_MREMAP is not defined.
(mremap): Declare if HAVE_MREMAP is not defined.
* configure, Makefile.in, config.in: Rebuild.

15 years agomerge from gcc
DJ Delorie [Fri, 27 Mar 2009 23:07:30 +0000 (23:07 +0000)]
merge from gcc

15 years ago * powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
Cary Coutant [Fri, 27 Mar 2009 18:19:09 +0000 (18:19 +0000)]
* powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
position independent.
* sparc.cc (Target_sparc::check_non_pic): Likewise.
* x86_64.cc (Target_x86_64::check_non_pic): Likewise.

15 years ago * dwarf.c (display_debug_ranges): Add the base address to the
Nick Clifton [Fri, 27 Mar 2009 14:27:02 +0000 (14:27 +0000)]
    * dwarf.c (display_debug_ranges): Add the base address to the
        displayed values for 'Begin' and 'End'.

15 years ago * djunpack.bat: Use ".." quoting in Sed command, for the sake of
Eli Zaretskii [Fri, 27 Mar 2009 13:37:09 +0000 (13:37 +0000)]
* djunpack.bat: Use ".." quoting in Sed command, for the sake of
Windows builds of Sed.