OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
16 years agobfd/
Craig Silverstein [Thu, 10 Jul 2008 01:32:23 +0000 (01:32 +0000)]
bfd/
* Makefile.am (BFD32_LIBS): Add compress.lo.
(BFD32_LIBS_CFILES): Add compress.c.
(BFD_H_FILES): Likewise.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* config.in: Add HAVE_ZLIB_H
* configure.in: Add test for libz and zlib.h
* configure: Regenerate.
* dwarf2.c (read_section): New function.
(read_indirect_string): Call new function read_section.
(read_abbrevs): Likewise.
(decode_line_info): Likewise.
(read_debug_ranges): Likewise.
(find_line): Call new function read_section when just one
.zdebug_info section is found, otherwise read and compress
multiple sections.
(_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr.
* elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix.
(special_sections_z): New struct.
(special_sections): Refer to special_sections_z.
* elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize
sections named .zdebug_*.
(_bfd_mips_elf_fake_sections): Likewise.
* compress.c: New file.
(bfd_uncompress_section_contents): New function.
bfd/doc/
* Makefile.am (BFD_H_DEP): Add ../compress.c.
* Makefile.in: Regenerate.
binutils/
* config.in: Add HAVE_ZLIB_H
* configure.in: Add test for libz and zlib.h
* configure: Regenerate.
* dwarf.c (debug_displays): Add .zdebug_* strings.
* dwarf.h (struct dwarf_section): Add fields uncompressed_namd
and compressed_name.
* objdump.c (load_debug_section): Call
bfd_uncompress_section_contents when loading a compressed
section.
(dump_dwarf_section): Recognize compressed section name.
(mach_o_dwarf_sections): Rename as
mach_o_uncompressed_dwarf_sections.
(mach_o_compressed_dwarf_sections): New variable.
(generic_dwarf_section): Rename as
generic_uncompressed_dwarf_sections.
(generic_compressed_dwarf_sections): New variable.
(check_mach_o_dwarf): Save and restore
mach_o_compressed_dwarf_sections.
* readelf.c: Add #include for config.h and zlib.h
(process_section_headers): Recognize compressed section name.
(uncompress_section_contents): New function.
(load_debug_section): Call uncompress_section_contents when
loading a compressed section.
(display_debug_section): Recognize compressed section name.
binutils/testsuite:
* binutils-all/objdump.exp: Add test for objdump -s on a file
with a compressed debug section.  Add test for objdump -W on a
file that contains a compressed debug section.
* binutils-all/readelf.exp: Call readelf_compressed_wa_test.
(readelf_compressed_wa_test): New function.
* binutils-all/dw2-compressed.S: New file.
* binutils-all/objdump.W: New file.
* binutils-all/objdump.s: New file.
* binutils-all/readelf.wa: New file.

16 years agodaily update
Alan Modra [Thu, 10 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-09 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 9 Jul 2008 10:28:12 +0000 (10:28 +0000)]
2008-07-09  Kai Tietz  <kai.tietz@onevision.com>

* gas/i386/i386.exp (x86-64-pcrel): Disable for w64.
(x86-64-sse5): Likewise.
(x86-64-opcode-inval): Likewise.
(x86-64-opcode-inval-intel): Likewise.
(x86-64-w64-pcrel): New.
* gas/i386/x86-64-w64-pcrel.d: New.

16 years ago *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
Danny Smith [Wed, 9 Jul 2008 03:18:15 +0000 (03:18 +0000)]
       *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
           starting with ".".
           Exclude "_IMPORT_DESCRIPTOR_".
           (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
           (autofilter_symbollist_generic): Don't check for ".text".
           Exclude "_NULL_IMPORT_DESCRIPTOR".
           (autofilter_symbollist_i386): Likewise.

16 years agodaily update
Alan Modra [Wed, 9 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago2008-07-08 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 8 Jul 2008 08:15:09 +0000 (08:15 +0000)]
2008-07-08  Kai Tietz  <kai.tietz@onevision.com>

* binutils-all/objcopy.exp (copy_setup): Check if host-triplet
is target-triplet for execution tests.
(copy_executable): Likewise.
(strip_executable): Likewise.
(strip_executable_with_saving_a_symbol): Likewise.

16 years ago * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
Nathan Sidwell [Tue, 8 Jul 2008 06:33:41 +0000 (06:33 +0000)]
* config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
about overriding an earlier setting.

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

16 years ago * gas/mips/mips32.s: Move out coprocessor2 insns from here ...
Adam Nemet [Mon, 7 Jul 2008 19:28:02 +0000 (19:28 +0000)]
* gas/mips/mips32.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32-cp2.s: ... to here.
* gas/mips/mips32.d: Update.
* gas/mips/mips32-cp2.d: New file.
* gas/mips/mips32r2.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32r2-cp2.s: ... to here.
* gas/mips/mips32r2.d: Update.
* gas/mips/mips32r2-cp2.d: New file.
* gas/mips/mips64.s: Move out coprocessor2 insns from here ...
* gas/mips/mips64-cp2.s: ... to here.
* gas/mips/mips64.d: Update.
* gas/mips/mips64-cp2.d: New file.
* gas/mips/mips.exp: Run mips32-cp2, mips32r2-cp2 and mips64-cp
except for Octeon.
* gas/mips/octeon.s: Add supported coprocessor insns.  Move pop
down to keep alphabetical order.
* gas/mips/octeon.d: Update.
* gas/mips/octeon-ill.s: Add unsupported coprocessor insns.
* gas/mips/octeon-ill.l: Update.

16 years ago * config/tc-mips.c (NO_ISA_COP): New macro.
Adam Nemet [Mon, 7 Jul 2008 19:16:23 +0000 (19:16 +0000)]
* config/tc-mips.c (NO_ISA_COP): New macro.
(COP_INSN): New macro.
(is_opcode_valid): Use them.
(macro) <ld_st>: Use them.  Don't accept coprocessor load store
insns based on the ISA if CPU is NO_ISA_COP.
<copz>: Likewise for coprocessor operations.

16 years agogas/
Carlos O'Donell [Mon, 7 Jul 2008 19:12:58 +0000 (19:12 +0000)]
gas/

2008-07-07  Paul Brook  <paul@codesourcery.com>

* config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
relocations.

gas/testsuite/

2008-07-07  Paul Brook  <paul@codesourcery.com>

* gas/arm/movw-local.d: New test.
* gas/arm/movw-local.s: New test.

16 years ago * mips-opc.c (CP): New macro.
Adam Nemet [Mon, 7 Jul 2008 19:11:15 +0000 (19:11 +0000)]
* mips-opc.c (CP): New macro.
(mips_builtin_opcodes): Mark c0, c2 and c3 as CP.  Add Octeon to the
membership of di, dmfc0, dmtc0, ei, mfc0 and mtc0.  Add dmfc2 and
dmtc2 Octeon instructions.

16 years ago * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
Stan Shebs [Mon, 7 Jul 2008 19:00:21 +0000 (19:00 +0000)]
    * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test.
    * ld-arm/arm-be8.d: Change to test disassembly.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 7 Jul 2008 18:40:13 +0000 (18:40 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-asm.h (struct disassemble_info): Add endian_code field.

16 years ago2008-07-07 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Mon, 7 Jul 2008 18:35:24 +0000 (18:35 +0000)]
2008-07-07  Stan Shebs  <stan@codesourcery.com>

    * dis-init.c (init_disassemble_info): Init endian_code field.
    * arm-dis.c (print_insn): Disassemble code according to
    setting of endian_code.
    (print_insn_big_arm): Detect when BE8 extension flag has been set.

16 years ago * safe-ctype.h: Add #include of ctype.h before redefining
Joel Brobecker [Mon, 7 Jul 2008 17:09:31 +0000 (17:09 +0000)]
    * safe-ctype.h: Add #include of ctype.h before redefining
        the ctype.h macros.

16 years ago * configure.tgt: Add bfin-*-rtems*.
Nick Clifton [Mon, 7 Jul 2008 16:43:06 +0000 (16:43 +0000)]
    * configure.tgt: Add bfin-*-rtems*.

16 years ago * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
Nick Clifton [Mon, 7 Jul 2008 16:02:32 +0000 (16:02 +0000)]
    * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
        the presence of a PLT.

16 years ago * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
Alan Modra [Mon, 7 Jul 2008 11:48:27 +0000 (11:48 +0000)]
* bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.

16 years ago * objdump.c (find_symbol_for_address): Prefer symbols in current
Alan Modra [Mon, 7 Jul 2008 04:37:53 +0000 (04:37 +0000)]
* objdump.c (find_symbol_for_address): Prefer symbols in current
section.

16 years ago * emultempl/armelf.em (elf32_arm_add_stub_section): Use
Alan Modra [Mon, 7 Jul 2008 00:46:51 +0000 (00:46 +0000)]
* emultempl/armelf.em (elf32_arm_add_stub_section): Use
bfd_make_section_with_flags.
* emultempl/avrelf.em (avr_elf_create_output_section_statements):
Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
* emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
Likewise.

16 years ago * ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
Alan Modra [Mon, 7 Jul 2008 00:44:41 +0000 (00:44 +0000)]
* ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
* nlmconv.c (main, powerpc_build_stubs): Likewise.
* rescoff.c (write_coff_file): Likewise.
* resres.c (write_res_file): Likewise.
* windmc.c (windmc_write_bin): Likewise.

16 years agodaily update
Alan Modra [Mon, 7 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * ld.texinfo (File Commands): Document that INCLUDE can be used in
Nathan Sidwell [Sun, 6 Jul 2008 13:38:37 +0000 (13:38 +0000)]
* ld.texinfo (File Commands): Document that INCLUDE can be used in
several different places.
* ldgram.y (statement, memory_spec, section): Allow INCLUDE.
(memory, memory_spec_list): Simplify BNF
(memory_spec_list_opt): New rule.
* ldlex.l (INCLUDE): Recognize in EXPRESSION.
testsuite/
* ld-scripts/include-1.d: New.
* ld-scripts/include-1.t: New.
* ld-scripts/include-data.t: New.
* ld-scripts/include-mem.t: New.
* ld-scripts/include-ram.t: New.
* ld-scripts/include-sections.t: New.
* ld-scripts/include-subdata.t: New.
* ld-scripts/include.exp: New.
* ld-scripts/include.s: New.

16 years agodaily update
Alan Modra [Sun, 6 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 5 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * safe-ctype.h: Remove #error when detecting that ctype.h has been
Joel Brobecker [Fri, 4 Jul 2008 17:11:29 +0000 (17:11 +0000)]
    * safe-ctype.h: Remove #error when detecting that ctype.h has been
        included. Redefine the various macros provided by ctype.h as
        undefined variables.

16 years ago * config/tc-spu.c (md_apply_fix): Handle fully resolved
Alan Modra [Fri, 4 Jul 2008 13:04:04 +0000 (13:04 +0000)]
* config/tc-spu.c (md_apply_fix): Handle fully resolved
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.

16 years ago * layout.cc (Layout::include_section): Do not discard unrecognized
Ian Lance Taylor [Fri, 4 Jul 2008 03:34:01 +0000 (03:34 +0000)]
* layout.cc (Layout::include_section): Do not discard unrecognized
SHT_STRTAB sections.

16 years agodaily update
Alan Modra [Fri, 4 Jul 2008 00:00:04 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Thu, 3 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-ppc.c (is_pic_glink_stub): New function.
Alan Modra [Wed, 2 Jul 2008 13:31:53 +0000 (13:31 +0000)]
* elf32-ppc.c (is_pic_glink_stub): New function.
(ppc_elf_get_synthetic_symtab): Don't generate symbols when
multiple shared/pie stubs per plt entry.

16 years agodaily update
Alan Modra [Wed, 2 Jul 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Tue, 1 Jul 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago2008-06-30 Craig Silverstein <csilvers@cs.stanford.edu>
Craig Silverstein [Mon, 30 Jun 2008 20:59:54 +0000 (20:59 +0000)]
2008-06-30  Craig Silverstein  <csilvers@cs.stanford.edu>

        * script.cc (Lex::can_continue_name): Make '?' allowable in
        version-script names.
        * testsuite/version_script.map: Change glob pattern to use '?'

16 years agobfd/
Richard Sandiford [Mon, 30 Jun 2008 20:53:06 +0000 (20:53 +0000)]
bfd/
* elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
bed->s->int_rels_per_ext_rel.

16 years agobfd/
Richard Sandiford [Mon, 30 Jun 2008 20:51:58 +0000 (20:51 +0000)]
bfd/
* syms.c (BSF_SYNTHETIC): New flag.
* elf.c (_bfd_elf_get_synthetic_symtab): Set it.
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
* elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
* bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
for synthetic symbols.
* bfd-in2.h: Regenerate.

opcodes/
* mips-dis.c (_print_insn_mips): Use bfd_asymbol_flavour to check
for ELF symbols.

16 years ago PR 6585
Ian Lance Taylor [Mon, 30 Jun 2008 18:16:31 +0000 (18:16 +0000)]
PR 6585
* symtab.cc (Symbol_table::add_undefined_symbols_from_command_line):
Correct typo.

16 years ago PR 6660
Ian Lance Taylor [Mon, 30 Jun 2008 16:36:40 +0000 (16:36 +0000)]
PR 6660
PR 6682
* powerpc.cc (Powerpc_relocate_functions::addr16_ha) [both
versions]: Don't try to read the value in the contents, since we
don't use it.  Use the template endianness when writing.

16 years ago * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Daniel Jacobowitz [Mon, 30 Jun 2008 15:32:51 +0000 (15:32 +0000)]
* elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
Expand comments.
(arm_map_one_stub): Use | 1 when setting the low bit.

16 years agodaily update
Alan Modra [Mon, 30 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
Andreas Schwab [Sun, 29 Jun 2008 12:56:41 +0000 (12:56 +0000)]
* elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
addend on _GLOBAL_OFFSET_TABLE_.

ld/testsuite/:
* ld-m68k/got-1.s: New file.
* ld-m68k/got-1.d: New dump test.
* ld-m68k/m68k.exp: Run it.

16 years agodaily update
Alan Modra [Sun, 29 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Sat, 28 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago* gas/mips/odd-float.d: Replace ... with #pass.
Chao-ying Fu [Fri, 27 Jun 2008 18:30:11 +0000 (18:30 +0000)]
* gas/mips/odd-float.d: Replace ... with #pass.
* gas/mips/ldstla-32-shared.d: Add -march=mips1 for as.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/mips16-hilo-match.d: Add -mabi=32 -march=mips1 for as.

16 years agodaily update
Alan Modra [Fri, 27 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years agodaily update
Alan Modra [Thu, 26 Jun 2008 00:00:06 +0000 (00:00 +0000)]
daily update

16 years ago2008-06-25 Cary Coutant <ccoutant@google.com>
Cary Coutant [Wed, 25 Jun 2008 17:10:08 +0000 (17:10 +0000)]
2008-06-25  Cary Coutant  <ccoutant@google.com>

* fileread.cc (File_read::make_view): Assert on zero-length view.
* object.cc (Sized_relobj::do_read_symbols): Don't try to read
symbol table when there are no symbols to read.

16 years agogas/
Peter Bergner [Wed, 25 Jun 2008 16:49:03 +0000 (16:49 +0000)]
gas/
* config/tc-ppc.c (parse_cpu): Handle -m464.
(md_show_usage): Likewise.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle -M464.
(print_ppc_disassembler_options): Likewise.
* ppc-opc.c (PPC464): Define.
(powerpc_opcodes): Add mfdcrux and mtdcrux.

16 years ago/gas:
Eric B. Weddington [Wed, 25 Jun 2008 16:19:11 +0000 (16:19 +0000)]
/gas:
2008-06-24  Eric B. Weddington  <eric.weddington@atmel.com>

Add support for ATtiny13A.
* config/tc-avr.c (mcu_types): Add attiny13a.
* doc/c-avr.texi: Likewise.

16 years ago * elf32-arm.c (STUB_ENTRY_NAME): Define.
Daniel Jacobowitz [Wed, 25 Jun 2008 14:28:48 +0000 (14:28 +0000)]
* elf32-arm.c (STUB_ENTRY_NAME): Define.
(arm_thumb_thumb_long_branch_stub): Use bx instead of b.n.
(arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of
R_ARM_ABS32.
(struct elf32_arm_stub_hash_entry): Add output_name.
(arm_build_one_stub): Move offsets into the offset argument
of _bfd_final_link_relocate.  Correct offset for
arm_thumb_arm_v4t_stub_long_branch.
(elf32_arm_size_stubs): Set stub_entry->output_name.
(elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym.
Update all callers.
(elf32_arm_output_stub_sym): New.
(arm_map_one_stub): Correct formatting.  Use elf32_arm_output_stub_sym.

* ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d,
ld-arm/thumb2-bl-as-thumb1-bad.d, ld-arm/thumb2-bl-bad.d: Update for
stub symbols and stub corrections.

16 years agodaily update
Alan Modra [Wed, 25 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * version.cc (version_string): Bump to 1.7
Craig Silverstein [Tue, 24 Jun 2008 06:14:58 +0000 (06:14 +0000)]
* version.cc (version_string): Bump to 1.7

16 years agomerge from gcc
DJ Delorie [Tue, 24 Jun 2008 03:01:29 +0000 (03:01 +0000)]
merge from gcc

16 years ago * write.c (relax_segment <rs_org>): Include current stretch
Alan Modra [Tue, 24 Jun 2008 01:49:36 +0000 (01:49 +0000)]
* write.c (relax_segment <rs_org>): Include current stretch
value when calculating whether .org is backwards.

16 years agodaily update
Alan Modra [Tue, 24 Jun 2008 00:00:07 +0000 (00:00 +0000)]
daily update

16 years ago* gas/mips/e32-rel2.d: Add -march=mips1 for as.
Chao-ying Fu [Fri, 20 Jun 2008 18:34:00 +0000 (18:34 +0000)]
* gas/mips/e32-rel2.d: Add -march=mips1 for as.

16 years ago* basic_blocks.c: Always include "gprof.h" first.
Andreas Schwab [Thu, 19 Jun 2008 16:30:29 +0000 (16:30 +0000)]
* basic_blocks.c: Always include "gprof.h" first.
* cg_arcs.c: Likewise.
* cg_dfn.c: Likewise.
* cg_print.c: Likewise.
* corefile.c: Likewise.
* gprof.c: Likewise.
* hist.c: Likewise.
* search_list.c: Likewise.
* sym_ids.c: Likewise.
* utils.c: Likewise.

16 years ago * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
Alan Modra [Thu, 19 Jun 2008 16:16:58 +0000 (16:16 +0000)]
* elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
non-branch insns.

16 years agoupdate
Alan Modra [Thu, 19 Jun 2008 16:15:17 +0000 (16:15 +0000)]
update

16 years ago * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
Alan Modra [Thu, 19 Jun 2008 16:14:53 +0000 (16:14 +0000)]
* emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
build overlay stubs" a fatal error.

16 years ago * elf32-spu.c (build_stub): Allow wraparound on stub branches.
Alan Modra [Thu, 19 Jun 2008 16:14:15 +0000 (16:14 +0000)]
* elf32-spu.c (build_stub): Allow wraparound on stub branches.
(allocate_spuear_stubs, build_spuear_stubs): Return value from
count_stub/build_stub.
(spu_elf_build_stubs): Correct location of stub reloc error message.

16 years ago2008-06-19 Eric Blake <ebb9@byu.net>
Eric Blake [Thu, 19 Jun 2008 15:17:56 +0000 (15:17 +0000)]
2008-06-19  Eric Blake  <ebb9@byu.net>

Adjust strsignal to POSIX 200x prototype.
* strsignal.c (strsignal): Remove const.

16 years agodaily update
Alan Modra [Thu, 19 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.
Ian Lance Taylor [Wed, 18 Jun 2008 23:20:43 +0000 (23:20 +0000)]
* src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.

16 years ago2008-06-18 Craig Silverstein <csilvers@google.com>
Craig Silverstein [Wed, 18 Jun 2008 22:32:37 +0000 (22:32 +0000)]
2008-06-18  Craig Silverstein  <csilvers@google.com>

* powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast
constant 0xFFFF to type Valtype.
(Powerpc_relocate_functions::rel16_ha): Likewise.

16 years ago2008-06-18 Ian Lance Taylor <iant@google.com>
Ian Lance Taylor [Wed, 18 Jun 2008 20:06:36 +0000 (20:06 +0000)]
2008-06-18  Ian Lance Taylor  <iant@google.com>

* src-release (BINUTILS_SUPPORT_DIRS): Add depcomp.

16 years ago elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 11:12:54 +0000 (11:12 +0000)]
elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.

16 years ago elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 11:08:19 +0000 (11:08 +0000)]
  elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.

16 years ago common.h (EM_CR16): Correct value.
M R Swami Reddy [Wed, 18 Jun 2008 11:04:29 +0000 (11:04 +0000)]
  common.h (EM_CR16): Correct value.
  (EM_CR16): Rename to EM_CR16_OLD.

16 years ago common.h (EM_CR16): Correct value.
M R Swami Reddy [Wed, 18 Jun 2008 11:03:03 +0000 (11:03 +0000)]
   common.h (EM_CR16): Correct value.
   (EM_CR16): Rename to EM_CR16_OLD.

16 years ago Updated the readelf with Add EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 11:00:49 +0000 (11:00 +0000)]
 Updated the readelf with Add EM_CR16_OLD.

16 years ago (guess_is_rela): Add EM_CR16_OLD.
M R Swami Reddy [Wed, 18 Jun 2008 10:49:50 +0000 (10:49 +0000)]
    (guess_is_rela): Add EM_CR16_OLD.
        (dump_relocations): Likewise.
        (get_machine_name): Likewise.
        (is_32bit_abs_reloc): Likewise.

16 years ago * output.h (Output_section::Input_section): Initialize p2align_ to
Ian Lance Taylor [Wed, 18 Jun 2008 04:39:41 +0000 (04:39 +0000)]
* output.h (Output_section::Input_section): Initialize p2align_ to
zero for Output_section_data constructors.
(Output_section::Input_section::addralign): If not an input
section, return the alignment of the Output_section_data.
* testsuite/copy_test.cc: New file.
* testsuite/copy_test_1.cc: New file.
* testsuite/copy_test_2.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add copy_test.
(copy_test_SOURCES, copy_test_DEPENDENCIES): New variables.
(copy_test_LDFLAGS, copy_test_LDADD): New variables.
(copy_test_1_pic.o, copy_test_1.so): New targets.
(copy_test_2_pic.o, copy_test_2.so): New targets.
* testsuite/Makefile.in: Rebuild.

16 years ago * script-sections.cc (Script_sections::place_orphan): Initialize
Ian Lance Taylor [Wed, 18 Jun 2008 04:15:52 +0000 (04:15 +0000)]
* script-sections.cc (Script_sections::place_orphan): Initialize
local variable exact.

16 years agomerge from gcc
DJ Delorie [Wed, 18 Jun 2008 03:36:03 +0000 (03:36 +0000)]
merge from gcc

16 years agodaily update
Alan Modra [Wed, 18 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * configure: Regenerate.
Ralf Wildenhues [Tue, 17 Jun 2008 23:14:44 +0000 (23:14 +0000)]
* configure: Regenerate.

config/
* override.m4: Use m4_version_prereq throughout.
(_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE): Backport from git
Autoconf: output pwd along with fatal errors, so the right
config.log file is hinted at more prominently.
(PARSE_ARGS): Push setting of ac_pwd in this diversion.
(_GCC_AUTOCONF_VERSION): New, define to 2.59 if not defined.
(_GCC_AUTOCONF_VERSION_CHECK): New macro, require use of Autoconf
version _GCC_AUTOCONF_VERSION throughout the tree.
(m4_wrap): New override, fix for Posix semantics of m4wrap.

binutils/
* configure: Regenerate.

opcodes/
* configure: Regenerate.

bfd/
* configure: Regenerate.

gas/
* configure: Regenerate.

gprof/
* configure: Regenerate.

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

16 years ago * app.c (do_scrub_chars): Do not UNGET an EOF value.
Nick Clifton [Tue, 17 Jun 2008 16:01:28 +0000 (16:01 +0000)]
    * app.c (do_scrub_chars): Do not UNGET an EOF value.

        * ti.h (GET_SCNHDR_NLNNO): Provide an alternative version of this
        macro which does not trigger an array bounds warning in gcc.
        (PUT_SCNHDR_NLNNO): Likewise.
        (GET_SCNHDR_FLAGS): Likewise.
        (PUT_SCNHDR_FLAGS): Likewise.
        (GET_SCNHDR_PAGE): Likewise.
        (PUT_SCNHDR_PAGE): Likewise.

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

16 years ago * configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
Ralf Wildenhues [Mon, 16 Jun 2008 21:38:13 +0000 (21:38 +0000)]
* configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, when
"$@" is still intact with both Autoconf 2.59 and 2.62.
* configure: Regenerate.

16 years ago * Makefile.tpl: Fix comment errors.
Ralf Wildenhues [Mon, 16 Jun 2008 21:30:58 +0000 (21:30 +0000)]
* Makefile.tpl: Fix comment errors.
* Makefile.in: Regenerate.

16 years agomerge from gcc
DJ Delorie [Mon, 16 Jun 2008 18:15:47 +0000 (18:15 +0000)]
merge from gcc

16 years agobfd/
Alan Modra [Mon, 16 Jun 2008 16:16:31 +0000 (16:16 +0000)]
bfd/
* elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space.
(spu_elf_check_vma): Add extra_stack_space param, copy to htab.
(spu_elf_auto_overlay): Use it.
(RECURSE_UNMARK): Define as 0.
(unmark_overlay_section): Heed RECURSE_UNMARK.
* elf32-spu.h (spu_elf_check_vma): Update prototype.
ld/
* emultempl/spuelf.em (extra_stack_space): New variable.
(gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
* emultempl/spu_ovl.S: Mask interrupts during dma and update of
overlay manager structures.
* emultempl/spu_ovl.o: Regenerate.

16 years ago * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:10:13 +0000 (15:10 +0000)]
* ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
mention it as being special for global symbols.

16 years ago PR gas/6607
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:07:01 +0000 (15:07 +0000)]
PR gas/6607
* ld-mmix/loc10.d, ld-mmix/loc10.s, ld-mmix/loc10m.d, ld-mmix/loc8.d,
ld-mmix/loc8.s, ld-mmix/loc8m.d, ld-mmix/loc9.d, ld-mmix/loc9.s,
ld-mmix/loc9m.d: New tests.

16 years ago PR gas/6607
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:05:55 +0000 (15:05 +0000)]
PR gas/6607
* gas/mmix/err-loc-10.s, gas/mmix/err-loc-9.s, gas/mmix/loc-6.d,
gas/mmix/loc-6.s, gas/mmix/loc-7.d, gas/mmix/loc-7.s: New tests.

16 years ago PR gas/6607
Hans-Peter Nilsson [Mon, 16 Jun 2008 15:04:41 +0000 (15:04 +0000)]
PR gas/6607
* config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
text_section.  Do the "stepping backwards" test for text_section
using unsigned operands.

16 years agodaily update
Alan Modra [Mon, 16 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agomerge from gcc
DJ Delorie [Sun, 15 Jun 2008 18:33:29 +0000 (18:33 +0000)]
merge from gcc

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

16 years agodaily update
Alan Modra [Sat, 14 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years agoinclude/opcode/
Peter Bergner [Fri, 13 Jun 2008 20:16:00 +0000 (20:16 +0000)]
include/opcode/
* ppc.h (ppc_cpu_t): New typedef.
(struct powerpc_opcode <flags>): Use it.
(struct powerpc_operand <insert, extract>): Likewise.
(struct powerpc_macro <flags>): Likewise.

gas/
* config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
(ppc_insert_operand): Likewise.
(ppc_machine): Likewise.
* config/tc-ppc.h: #include "opcode/ppc.h"
(struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
(ppc_cpu): Update extern decl.

opcodes/
* ppc-dis.c (print_insn_powerpc): Update prototye to use new
ppc_cpu_t typedef.
(struct dis_private): New.
(POWERPC_DIALECT): New define.
(powerpc_dialect): Renamed to...
(powerpc_init_dialect): This.  Update to use ppc_cpu_t and
struct dis_private.
(print_insn_big_powerpc): Update for using structure in
info->private_data.
(print_insn_little_powerpc): Likewise.
(operand_value_powerpc): Change type of dialect param to ppc_cpu_t.
(skip_optional_operands): Likewise.
(print_insn_powerpc): Likewise.  Remove initialization of dialect.
* ppc-opc.c (extract_bat, extract_bba, extract_bdm, extract_bdp,
extract_bo, extract_boe, extract_fxm, extract_mb6, extract_mbe,
extract_nb, extract_nsi, extract_rbs, extract_sh6, extract_spr,
extract_sprg, extract_tbr insert_bat, insert_bba, insert_bdm,
insert_bdp, insert_bo, insert_boe, insert_fxm, insert_mb6, insert_mbe,
insert_nsi, insert_ral, insert_ram, insert_raq, insert_ras, insert_rbs,
insert_sh6, insert_spr, insert_sprg, insert_tbr): Change the dialect
param to be of type ppc_cpu_t.  Update prototype.

16 years ago * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.
David Edelsohn [Fri, 13 Jun 2008 17:15:52 +0000 (17:15 +0000)]
    * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.

16 years ago * configure.ac (arm*-*-linux-gnueabi): Don't disable building
Julian Brown [Fri, 13 Jun 2008 13:05:13 +0000 (13:05 +0000)]
* configure.ac (arm*-*-linux-gnueabi): Don't disable building
    of libobjc for ARM EABI Linux.
    * configure: Regenerate.

16 years agodaily update
Alan Modra [Fri, 13 Jun 2008 00:00:05 +0000 (00:00 +0000)]
daily update

16 years ago * mips.h: Document new field descriptors +Q.
Nick Clifton [Thu, 12 Jun 2008 21:44:54 +0000 (21:44 +0000)]
    * mips.h: Document new field descriptors +Q.
        (OP_SH_SEQI, OP_MASK_SEQI): New bit mask and shift count for SEQI.

opcodes/

        * mips-dis.c (print_insn_args): Handle field descriptor +Q.
        * mips-opc.c (mips_builtin_opcodes): Add Octeon instructions seq,
        seqi, sne and snei.

gas/

        * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
        (mips_ip): Likewise.
        (macro_build): Likewise.
        (CPU_HAS_SEQ): New macro.
        (macro2) <M_SEQ_I, M_SNE_I>: Use it.  Emit seq/sne and seqi/snei.

gas/testsuite/

        * gas/mips/octeon.s, gas/mips/octeon.d: Add tests for seq* and sne*.
        * gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: Add tests for seqi
        and snei.

16 years ago* common.h (EM_M32C_NEW): Rename to EM_M32C.
DJ Delorie [Thu, 12 Jun 2008 19:49:48 +0000 (19:49 +0000)]
* common.h (EM_M32C_NEW): Rename to EM_M32C.
(EM_M32C): Rename to EM_M32C_OLD.

* elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.

* readelf.c (guess_is_rela): Add EM_M32C_OLD.
(dump_relocations): Likewise.
(process_section_headers): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_16bit_abs_reloc): Likewise.

16 years ago2008-06-12 David S. Miller <davem@davemloft.net>
David Edelsohn [Thu, 12 Jun 2008 17:07:34 +0000 (17:07 +0000)]
2008-06-12  David S. Miller  <davem@davemloft.net>
            David Edelsohn  <edelsohn@gnu.org>

        * configure.ac: Add powerpc*-*-* to gold supported targets.
        * configure: Regenerate.

16 years ago2008-06-12 David Edelsohn <edelsohn@gnu.org>
David Edelsohn [Thu, 12 Jun 2008 17:02:17 +0000 (17:02 +0000)]
2008-06-12  David Edelsohn  <edelsohn@gnu.org>
            David S. Miller  <davem@davemloft.net>

        * powerpc.cc: New file.
        * Makefile.am (TARGETSOURCES): Add powerpc.cc
        (ALL_TARGETOBJS): Add powerpc.$(OBJEXT)
        * configure.tgt: Add entries for powerpc-* and powerpc64-*.
        * Makefile.in: Rebuild.