OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
15 years agoReorder variable declarations to avoid problems with MIPS targets.
Nick Clifton [Thu, 23 Jul 2009 15:03:39 +0000 (15:03 +0000)]
Reorder variable declarations to avoid problems with MIPS targets.

15 years ago * config/obj-elf.c (obj_elf_type): Add code to support a type of
Nick Clifton [Thu, 23 Jul 2009 13:00:30 +0000 (13:00 +0000)]
    * config/obj-elf.c (obj_elf_type): Add code to support a type of
        gnu_unique_object.
        * doc/as.texinfo: Document new feature of .type directive.
        * NEWS: Mention support for gnu_unique_object symbol type.

        * common.h (STB_GNU_UNIQUE): Define.

        * NEWS: Mention the linker's support for symbols with a binding of
        STB_GNU_UNIQUE.

        * gas/elf/type.s: Add unique global symbol definition.
        * gas/elf/type.e: Add expected readelf output for global unique
        symbol.

        * elfcpp.h (enum STB): Add STB_GNU_UNIQUE.

        * readelf.c (get_symbol_binding): For Linux targeted files return
        UNIQUE for symbols with the STB_GNU_UNIQUE binding.
        * doc/binutils.texi: Document the meaning of the 'u' symbol
        binding in the output of nm and objdump --syms.

        * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field.
        * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols
        with the BSF_GNU_UNIQUE flag bit set.
        * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag
        for symbols with STB_GNU_UNIQUE binding.
        * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols
        with the STB_GNU_UNIQUE binding.
        (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for
        symbols with STB_GNU_UNIQUE binding.  Set STB_GNU_UNIQUE for
        symbols with the unique_global field set.
        (elf_link_output_extsym): Set unique_global field for symbols with
        the STB_GNU_UNIQUE binding.
        * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit.
        (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE
        symbols.
        (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE
        symbols.
        * bfd-in2.h: Regenerate.

15 years agoOops - forgot to commit this part of a previous delta:
Nick Clifton [Thu, 23 Jul 2009 12:42:07 +0000 (12:42 +0000)]
Oops - forgot to commit this part of a previous delta:

        * config/tc-arm.c (arm_frag_align_code): Replace hard coded
        constant with MAX_MEM_FOR_RS_ALIGN_CODE.

15 years ago PR binutils/10379
Nick Clifton [Thu, 23 Jul 2009 10:19:20 +0000 (10:19 +0000)]
    PR binutils/10379
        * doc/c-mips.texi (MIPS insn): Document the special behaviour of
        the .global directive for MIPS ports.

15 years ago2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 23 Jul 2009 00:08:22 +0000 (00:08 +0000)]
2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10429
* ldlang.c (insert_os_after): Tie assignments to non-alloc
output sections if there is no-input section.

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

15 years ago2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 22 Jul 2009 23:55:54 +0000 (23:55 +0000)]
2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>

 * elflink.c (elf_link_output_extsym): Revert the last change.

15 years ago2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 22 Jul 2009 21:30:30 +0000 (21:30 +0000)]
2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>

 PR ld/10433
 * elflink.c (elf_link_output_extsym): Special case ifunc syms
 when ref_regular, not def_regular.

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

15 years agobfd/
H.J. Lu [Tue, 21 Jul 2009 21:37:26 +0000 (21:37 +0000)]
bfd/

2009-07-21  H.J. Lu  <hongjiu.lu@intel.com>

 PR ld/10426
 * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
 from a DSO into a normal FUNC symbol.
 (elf_link_output_extsym): Turn an undefined IFUNC symbol into
 a normal FUNC symbol.

ld/testsuite/

2009-07-21  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10426
* ld-ifunc/ifunc.exp: Check test-1 and libtest-2.so.  Updated.

* ld-ifunc/test-1.c: New.
* ld-ifunc/test-2.c: Likewise.

15 years agoAdd ccoutant to previous dwarf4 entry.
Doug Evans [Tue, 21 Jul 2009 19:06:39 +0000 (19:06 +0000)]
Add ccoutant to previous dwarf4 entry.

15 years agogas/
H.J. Lu [Tue, 21 Jul 2009 17:50:21 +0000 (17:50 +0000)]
gas/

2009-07-21  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10420
* config/tc-i386.c (i386_align_code): Tune for 32bit nops in
64bit.
(i386_target_format): Set cpu_arch_isa_flags.bitfield.cpulm
for 64bit.

gas/testsuite/

2009-07-21  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10420
* gas/i386/i386.exp: Run x86-64-nops-1-pentium.

* gas/i386/x86-64-nops-1-pentium.d: New.

15 years ago PR 10419
Ian Lance Taylor [Tue, 21 Jul 2009 05:22:54 +0000 (05:22 +0000)]
PR 10419
* x86_64.cc (Target_x86_64::do_code_fill): Correct nop sequences.

15 years agodaily update
Alan Modra [Tue, 21 Jul 2009 00:00:08 +0000 (00:00 +0000)]
daily update

15 years ago Add some dwarf4 values.
Doug Evans [Mon, 20 Jul 2009 20:57:39 +0000 (20:57 +0000)]
Add some dwarf4 values.
* dwarf2.h (enum dwarf_tag): Add DW_TAG_type_unit.
(enum dwarf_form): Add DW_FORM_sec_offset, DW_FORM_exprloc,
DW_FORM_flag_present, DW_FORM_sig8.
(enum dwarf_attribute): Add DW_AT_signature.

15 years ago2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 20 Jul 2009 13:40:48 +0000 (13:40 +0000)]
2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>

* NEWS: Mention --insn-width.

* objdump.c (insn_width): New.
(usage): Display --insn-width.
(option_values): Add OPTION_INSN_WIDTH.
(long_options): Add --insn-width.
(disassemble_bytes): Handle insn_width.
(main): Handle OPTION_INSN_WIDTH.

* doc/binutils.texi: Document --insn-width.

15 years ago PR 10288
Nick Clifton [Mon, 20 Jul 2009 12:11:18 +0000 (12:11 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Catch non-zero bits 8-11 in register
        offset or indexed based addressing mode 3.

15 years agodaily update
Alan Modra [Mon, 20 Jul 2009 00:00:07 +0000 (00:00 +0000)]
daily update

15 years agodaily update
Alan Modra [Sun, 19 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

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

15 years agomerge from gcc
DJ Delorie [Fri, 17 Jul 2009 20:20:45 +0000 (20:20 +0000)]
merge from gcc

15 years ago2009-07-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 17 Jul 2009 17:54:51 +0000 (17:54 +0000)]
2009-07-17  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Update operand types.
(update_imm): Updated.
(finalize_imm): Update the first 2 immediate operands only
for instructions with 2 operands or more.

15 years ago2009-07-17 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 17 Jul 2009 17:08:34 +0000 (17:08 +0000)]
2009-07-17  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Check implicit registers
only for instructions with 3 operands or less.

15 years ago * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
Nick Clifton [Fri, 17 Jul 2009 15:22:11 +0000 (15:22 +0000)]
    * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
        compile time warning.

15 years ago * dwarf.c (display_debug_lines): If do_debug_lines has not been
Nick Clifton [Fri, 17 Jul 2009 15:19:21 +0000 (15:19 +0000)]
    * dwarf.c (display_debug_lines): If do_debug_lines has not been
        set then default to displaying raw .debug_line section contents.

15 years ago PR other/40784
Joseph Myers [Fri, 17 Jul 2009 15:11:33 +0000 (15:11 +0000)]
PR other/40784
* tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to
AC_LINK_IFELSE.

15 years ago * ld-mips-elf/pic-and-nonpic-3b.dd: Updated to use new PLT
Nick Clifton [Fri, 17 Jul 2009 13:36:16 +0000 (13:36 +0000)]
    * ld-mips-elf/pic-and-nonpic-3b.dd: Updated to use new PLT
        entries.
        * ld-mips-elf/pic-and-nonpic-5b.dd: Likewise.
        * ld-mips-elf/pic-and-nonpic-6-o32.dd: Likewise.
        * ld-mips-elf/pic-and-nonpic-6-n32.dd: Likewise.
        * ld-mips-elf/pic-and-nonpic-6-n64.dd: Likewise.

15 years ago * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
Nick Clifton [Fri, 17 Jul 2009 09:46:00 +0000 (09:46 +0000)]
    * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
        (_bfd_mips_elf_size_dynamic_sections): For CPUs without load
        interlocking, the last PLT entry needs a nop in the branch delay slot.
        (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking,
        output the last two PLT entries in reverse order.

        * ld-mips-elf/pic-and-nonpic-3b.dd,
        ld-mips-elf/pic-and-nonpic-5b.dd,
        ld-mips-elf/pic-and-nonpic-6-o32.dd: Updated to use new PLT entries.

15 years ago PR 10400
Ian Lance Taylor [Fri, 17 Jul 2009 01:07:33 +0000 (01:07 +0000)]
PR 10400
* layout.h: #include <map>.
(class Kept_section): Change from struct to class.  Add accessors
and setters.  Add section size to Comdat_group mapping.  Change
Comdat_group to std::map.  Add is_comdat_ field.  Add
linkonce_size field in union.
(class Layout): Update declaration of find_or_add_kept_section.
Don't declare find_kept_object.
* layout.cc (Layout::find_or_add_kept_section): Remove candidate
parameter.  Add object, shndx, is_comdat, and is_group_name
parameters.  Change all callers.  Adjust for new Kept_section.
(Layout::find_kept_object): Remove.
* object.cc (Sized_relobj::include_section_group): Update use of
Kept_section.  Rename secnum to shndx.  Only record
Kept_comdat_section if sections are the same size.
(Sized_relobj::include_linkonce_section): Update use of
Kept_section.  Only record Kept_comdat_section if sections are the
same size.  Set size of linkonce section.
(Sized_relobj::map_to_kept_section): Update call to
get_kept_comdat_section.
* object.h (class Sized_relobj): Rename fields in
Kept_comdat_section to drop trailing underscores; change object
field to Relobj*.  Change Kept_comdat_section_table to store
struct rather than pointer.
(Sized_relobj::set_kept_comdat_section): Remove kept parameter.
Add kept_object and kept_shndx parameters.  Change all callers.
(Sized_relobj::get_kept_comdat_section): Change return type to
bool.  Add kept_object and kept_shndx parameters.  Change all
callers.
* plugin.cc (Pluginobj::include_comdat_group): Update call to
Layout::find_or_add_kept_section.

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

15 years ago * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
Joseph Myers [Thu, 16 Jul 2009 23:21:15 +0000 (23:21 +0000)]
* tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
cross-compiling.

15 years ago2009-07-16 Dave Korn <dave.korn.cygwin@gmail.com>
H.J. Lu [Thu, 16 Jul 2009 21:10:49 +0000 (21:10 +0000)]
2009-07-16  Dave Korn  <dave.korn.cygwin@gmail.com>
    H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/objcopy.exp: Run testranges and testranges-ia64
for ELF targets only.

15 years ago2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 16 Jul 2009 21:00:09 +0000 (21:00 +0000)]
2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/objcopy.exp; Run testranges-ia64.

* binutils-all/testranges.d: Don't run for ia64.

* binutils-all/testranges-ia64.d: New.
* binutils-all/testranges-ia64.s: Likewise.

15 years ago * cpu/simplify.inc (*): One line doc strings don't need \n.
Doug Evans [Thu, 16 Jul 2009 17:53:25 +0000 (17:53 +0000)]
* cpu/simplify.inc (*): One line doc strings don't need \n.
(df): Invoke define-full-ifield instead of claiming it's an alias.
(dno): Define.
(dnop): Mark as deprecated.

15 years agogas/
H.J. Lu [Thu, 16 Jul 2009 17:37:26 +0000 (17:37 +0000)]
gas/

2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (md_assemble): Only check i.operands for AX.
(md_estimate_size_before_relax): Don't relax IFUNC symbols.

gas/testsuite/

2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run ifunc and x86-64-ifunc.

* gas/i386/ifunc.d: New,
* gas/i386/ifunc.s: Likewise.
* gas/i386/x86-64-ifunc.d: Likewise.

15 years agobfd/
H.J. Lu [Thu, 16 Jul 2009 14:23:12 +0000 (14:23 +0000)]
bfd/

2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* elf32-i386.c (elf_i386_relocate_section): Don't get local
STT_GNU_IFUNC symbol for relocatable link.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.

ld/testsuite/

2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-5r-local-i386.d: New.
* ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.

15 years ago gas/
Nathan Sidwell [Thu, 16 Jul 2009 13:18:52 +0000 (13:18 +0000)]
gas/
* config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write
the offset for REL targets here.

gas/testsuite/
* gas/arm/target-reloc-1.s: New.
* gas/arm/target-reloc-1.d: New.

ld/testsuite/
* ld-arm/arm-target2.s: Add addend cases.
* ld-arm/arm-target2-rel.d: Adjust.
* ld-arm/arm-target2-abs.d: Adjust.
* ld-arm/arm-target2-got-rel.d: Adjust.

15 years ago2009-07-15 Kai Tietz <kai.tietz@onevision.com>
H.J. Lu [Thu, 16 Jul 2009 00:37:28 +0000 (00:37 +0000)]
2009-07-15  Kai Tietz  <kai.tietz@onevision.com>

* listing.c (print_source): Initialize cache by NULL.

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

15 years ago * doc/c-arm.texi (mauto-it): Removed old option.
Nick Clifton [Wed, 15 Jul 2009 15:08:55 +0000 (15:08 +0000)]
    * doc/c-arm.texi (mauto-it): Removed old option.
        (mimplicit-it): Added right option.

15 years agodaily update
Alan Modra [Wed, 15 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agobinutils/
Jan Kratochvil [Tue, 14 Jul 2009 16:57:18 +0000 (16:57 +0000)]
binutils/
Support unordered .debug_info references to .debug_ranges.
* dwarf.c (struct range_entry, range_entry_compar): New.
(display_debug_ranges): Remove variables last_offset, first, j,
seen_first_offset, use_debug_info and next.  New variables
range_entries and range_entry_fill.  Create the sorted copy
range_entries.  Remove the FIXME error on detected unordered references.
* dwarf.h (debug_info <range_lists>): New comment.

binutils/testsuite/
* binutils-all/objcopy.exp (testranges): New test.
* binutils-all/testranges.d, binutils-all/testranges.s: New files.

15 years ago * config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
Nick Clifton [Tue, 14 Jul 2009 15:47:13 +0000 (15:47 +0000)]
    * config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
        (MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of
        MAX_MEM_ALIGNMENT_BYTES.
        * config/tc-arm.c (arm_frag_align_code): Replace hard coded
        constant with MAX_MEM_FOR_RS_ALIGN_CODE.

        * gas/arm/align64.s: New test case.
        * gas/arm/align64.d: Expected disassembly.

15 years ago PR 10387
Nick Clifton [Tue, 14 Jul 2009 15:38:20 +0000 (15:38 +0000)]
    PR 10387
        * config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
        (ARM_IS_FUNC): Likewise.

15 years ago PR 10288
Nick Clifton [Tue, 14 Jul 2009 14:16:34 +0000 (14:16 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Catch illegal Addressing Mode 1
        patterns.
        (arm_decode_shift): Catch illegal register based shifts.
        (print_insn_arm): Properly handle negative register r0
        post-indexed addressing.

15 years ago gas/
Nick Clifton [Tue, 14 Jul 2009 12:54:47 +0000 (12:54 +0000)]
gas/
    * config/tc-arm.c (md_assemble): Added validation.

    gas/testsuite
    * gas/arm/thumb-w-bad.d: New test case.
    * gas/arm/thumb-w-bad.l: New file.
    * gas/arm/thumb-w-bad.s: New file.
    * gas/arm/thumb-w-good.d: New test case.
    * gas/arm/thumb-w-good.s: New file.

15 years ago PR 10380
Nick Clifton [Tue, 14 Jul 2009 07:43:18 +0000 (07:43 +0000)]
    PR 10380
        * README: Document use of LDFLAGS="--static".

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

15 years agoFix a typo.
H.J. Lu [Mon, 13 Jul 2009 16:55:09 +0000 (16:55 +0000)]
Fix a typo.

15 years ago2009-07-13 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Mon, 13 Jul 2009 16:52:37 +0000 (16:52 +0000)]
2009-07-13  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc.exp: Don't use -shared/-static to build object
files.  Use ld_simple_link to build static non-ifunc-using
executable.  Re-enable static non-ifunc-using executable check.

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

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

15 years ago * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
Alan Modra [Sat, 11 Jul 2009 00:10:29 +0000 (00:10 +0000)]
* ldlang.c (insert_os_after): Don't tie assignments to non-alloc
output sections.

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

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 19:31:54 +0000 (19:31 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc.exp: Don't chck static non-ifunc-using
executable.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 18:38:27 +0000 (18:38 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* bfdio.c (bfd_iovec): Add comments for bmmap.
* bfd-in2.h: Regenerated.

15 years agobfd/
H.J. Lu [Fri, 10 Jul 2009 18:27:01 +0000 (18:27 +0000)]
bfd/

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

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

binutils/

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

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

gas/

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

* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.

15 years ago2009-07-10 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 10 Jul 2009 16:58:54 +0000 (16:58 +0000)]
2009-07-10  Doug Kwan  <dougkwan@google.com>

* arm-disc.c (print_insn_coprocessor, print_insn_arm):  Print only
lower 32 bits of long types to make hexadecimal output consistent
on both 32-bit and 64-bit hosts.

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

* elf32-arm.c (stub_hash_newfunc): Initialize fields
target_addend and orig_insn.

15 years agobfd
Tom Tromey [Fri, 10 Jul 2009 15:27:04 +0000 (15:27 +0000)]
bfd
* Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
(elf-eh-frame.lo): Likewise.
(elf32-bfin.lo): Likewise.
(elf32-frv.lo): Likewise.
(elf32-xc16x.lo): Likewise.
* Makefile.in: Rebuild.
* dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
* elf-eh-frame.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-xc16x.c: Likewise.
binutils
* Makefile.am (dwarf.o): Refer to dwarf2.h, not elf/dwarf2.h.
* Makefile.in: Rebuild.
* dwarf.c: Include dwarf2.h, not elf/dwarf2.h.
gas
* Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
elf/dwarf2.h.
(DEPTC_alpha_elf): Likewise.
(DEPTC_alpha_evax): Likewise.
(DEPTC_arm_elf): Likewise.
(DEPTC_hppa_elf): Likewise.
(DEPTC_i386_aout): Likewise.
(DEPTC_i386_coff): Likewise.
(DEPTC_i386_elf): Likewise.
(DEPTC_m68k_aout): Likewise.
(DEPTC_m68k_coff): Likewise.
(DEPTC_m68k_elf): Likewise.
(DEPTC_mips_coff): Likewise.
(DEPTC_mips_ecoff): Likewise.
(DEPTC_mips_elf): Likewise.
(DEPTC_ppc_coff): Likewise.
(DEPTC_ppc_elf): Likewise.
(DEPTC_s390_elf): Likewise.
(DEPTC_sh_coff): Likewise.
(DEPTC_sh_elf): Likewise.
(DEPTC_sh64_elf): Likewise.
(DEPTC_sparc_aout): Likewise.
(DEPTC_sparc_coff): Likewise.
(DEPTC_sparc_elf): Likewise.
(as.o): Likewise.
(dwarf2dbg.o): Likewise.
(dw2gencfi.o): Likewise.
(ehopt.o): Likewise.
(read.o): Likewise.
* Makefile.in: Rebuild.
* dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2dbg.c: Likewise.
* ehopt.c: Likewise.
gdb
* dwarf2-frame.c: Include dwarf2.h, not elf/dwarf2.h.
* dwarf2expr.c: Likewise.
* dwarf2loc.c: Likewise.
* dwarf2read.c: Likewise.
* sh-tdep.c: Likewise.
* xtensa-tdep.c: Likewise.
include
* dwarf2.h: New file, moved from elf/.
include/elf

* dwarf2.h: Move to `..'.

15 years ago * elf32-arm.c (arm_build_one_stub): Use the hash entry of the
Julian Brown [Fri, 10 Jul 2009 14:57:00 +0000 (14:57 +0000)]
* elf32-arm.c (arm_build_one_stub): Use the hash entry of the
symbol a stub entry is derived from, not the entry for the stub
itself, in call to elf32_arm_final_link_relocate.

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

* dwarf2.h: Just include ../dwarf2.h.

15 years ago2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 10 Jul 2009 14:30:21 +0000 (14:30 +0000)]
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-1-local-x86.d: Updated.
* ld-ifunc/ifunc-1-x86.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.

15 years agoRegenerate.
Alan Modra [Fri, 10 Jul 2009 14:20:41 +0000 (14:20 +0000)]
Regenerate.

15 years agobfd/
H.J. Lu [Fri, 10 Jul 2009 14:03:03 +0000 (14:03 +0000)]
bfd/

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

* elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
when reporting  addends.

ld/testsuite/

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

* ld-ifunc/ifunc-1-local-x86.d: Updated.
* ld-ifunc/ifunc-1-x86.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-local-x86-64.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.Likewise.

15 years ago * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
Alan Modra [Fri, 10 Jul 2009 14:00:38 +0000 (14:00 +0000)]
* elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
data even when no stubs.
(spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust.

15 years ago * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
Alan Modra [Fri, 10 Jul 2009 12:29:40 +0000 (12:29 +0000)]
* emultempl/ppc32elf.em (ppc_before_allocation): Turn on
linker relaxation if it might be necessary.

15 years agoSTT_GNU_IFUNC support for PowerPC.
Alan Modra [Fri, 10 Jul 2009 12:19:58 +0000 (12:19 +0000)]
STT_GNU_IFUNC support for PowerPC.

15 years ago * elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
Alan Modra [Fri, 10 Jul 2009 10:33:19 +0000 (10:33 +0000)]
* elf.c (_bfd_elf_get_synthetic_symtab): Report addends.

15 years ago * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
Alan Modra [Fri, 10 Jul 2009 10:04:20 +0000 (10:04 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
and ref_regular_nonweak comment.
* elflink.c (elf_link_output_extsym): Special case ifunc syms
when def_regular, not ref_regular.
(elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
* elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
* elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.

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

15 years ago * merge.cc (Object_merge_map::initialize_input_to_output_map):
Ian Lance Taylor [Thu, 9 Jul 2009 23:29:55 +0000 (23:29 +0000)]
* merge.cc (Object_merge_map::initialize_input_to_output_map):
Reserve space in the hash table.

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 21:01:15 +0000 (21:01 +0000)]
merge from gcc

15 years agomerge from gcc
DJ Delorie [Thu, 9 Jul 2009 20:02:41 +0000 (20:02 +0000)]
merge from gcc

15 years ago * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
Alan Modra [Thu, 9 Jul 2009 10:58:06 +0000 (10:58 +0000)]
* elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
of malloc'd struct call_info.
(pasted_function): Likewise, priority too.

15 years ago * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
Nick Clifton [Thu, 9 Jul 2009 07:52:37 +0000 (07:52 +0000)]
    * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
        (set_it_insn_type_nonvoid): New macro.
        (emit_thumb32_expr): New function.
        (thumb_insn_size): New function.
        (emit_insn): New function.
        (s_arm_elf_inst): New function.
        (md_pseudo_table): New pseudo-opcode entries added.
        * doc/c-arm.texi: New directive added.

        * gas/arm/inst-po.d: New testcase.
        * gas/arm/inst-po.s: New file.
        * gas/arm/inst-po-2.d: New testcase.
        * gas/arm/inst-po-2.s: New file.
        * gas/arm/inst-po-2.l: New file.
        * gas/arm/inst-po-3.d: New testcase.
        * gas/arm/inst-po-3.s: New file.
        * gas/arm/inst-po-be.d: New testcase.

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

15 years ago * ld-selective/selective.exp: Remove check that $CC contains the
Alan Modra [Wed, 8 Jul 2009 03:09:13 +0000 (03:09 +0000)]
* ld-selective/selective.exp: Remove check that $CC contains the
string "gcc".  Do -dumpversion for $CXX.

15 years agodaily update
Alan Modra [Wed, 8 Jul 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago* config/tc-mep.c (md_begin): Don't reset the coprocessor options
DJ Delorie [Tue, 7 Jul 2009 21:12:52 +0000 (21:12 +0000)]
* config/tc-mep.c (md_begin): Don't reset the coprocessor options
when enabling other options without a specific configuration.

15 years agogas/
Nick Clifton [Tue, 7 Jul 2009 16:15:32 +0000 (16:15 +0000)]
gas/
    * config/tc-arm.c (insns): Fix encoding for torvsc.

gas/testsuite/
    * gas/arm/iwmmxt2.d: Fix insn pattern for torvsc,
    add patterns for waddsubhx.
    * gas/arm/iwmmxt2.s: Add tests for waddsubhx.

opcodes/
    * arm-dis.c (coprocessor_opcodes): Fix mask for waddbhus.

15 years ago PR 10288
Nick Clifton [Tue, 7 Jul 2009 14:46:14 +0000 (14:46 +0000)]
    PR 10288
        * arm-dis.c (arm_opcodes): Be more strict about decoding scaled
        addressing modes.

15 years ago2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 7 Jul 2009 13:57:46 +0000 (13:57 +0000)]
2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/fma4.d: Append "#pass".
* gas/i386/x86-64-fma4.d: Likewise.

15 years ago2009-07-07 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 7 Jul 2009 08:29:58 +0000 (08:29 +0000)]
2009-07-07  Tristan Gingold  <gingold@adacore.com>

* gas/i386/jump.d: Adjust to be relocated offset for jump to external
symbol.

15 years ago * elf32-spu.c (spu_elf_auto_overlay): Take into account section
Alan Modra [Tue, 7 Jul 2009 03:26:47 +0000 (03:26 +0000)]
* elf32-spu.c (spu_elf_auto_overlay): Take into account section
alignment when packing sections into overlays.

15 years ago[cgen]
DJ Delorie [Tue, 7 Jul 2009 01:56:05 +0000 (01:56 +0000)]
[cgen]

* cpu/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
* cpu/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
unspecified accesses to control registers.

[sid/component/cgen-cpu/mep]

* mep-cop1-16-decode.cxx: Regenerate.
* mep-cop1-16-decode.h: Regenerate.
* mep-cop1-16-defs.h: Regenerate.
* mep-cop1-16-model.cxx: Regenerate.
* mep-cop1-16-model.h: Regenerate.
* mep-cop1-16-sem.cxx: Regenerate.
* mep-cop1-32-decode.cxx: Regenerate.
* mep-cop1-32-decode.h: Regenerate.
* mep-cop1-32-defs.h: Regenerate.
* mep-cop1-32-model.cxx: Regenerate.
* mep-cop1-32-model.h: Regenerate.
* mep-cop1-32-sem.cxx: Regenerate.
* mep-cop1-48-decode.cxx: Regenerate.
* mep-cop1-48-decode.h: Regenerate.
* mep-cop1-48-defs.h: Regenerate.
* mep-cop1-48-model.cxx: Regenerate.
* mep-cop1-48-model.h: Regenerate.
* mep-cop1-48-sem.cxx: Regenerate.
* mep-cop1-64-decode.cxx: Regenerate.
* mep-cop1-64-decode.h: Regenerate.
* mep-cop1-64-defs.h: Regenerate.
* mep-cop1-64-model.cxx: Regenerate.
* mep-cop1-64-model.h: Regenerate.
* mep-cop1-64-sem.cxx: Regenerate.
* mep-core1-decode.cxx: Regenerate.
* mep-core1-decode.h: Regenerate.
* mep-core1-defs.h: Regenerate.
* mep-core1-model.cxx: Regenerate.
* mep-core1-model.h: Regenerate.
* mep-core1-sem.cxx: Regenerate.
* mep-cpu.h: Regenerate.
* mep-decode.cxx: Regenerate.
* mep-decode.h: Regenerate.
* mep-defs.h: Regenerate.
* mep-desc.h: Regenerate.
* mep-model.cxx: Regenerate.
* mep-model.h: Regenerate.
* mep-sem.cxx: Regenerate.

[opcodes]

* mep-desc.c: Regenerate.
* mep-desc.h: Regenerate.
* mep-opc.c: Regenerate.
* mep-opc.h: Regenerate.

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

15 years ago * fileread.cc (File_read::get_mtime): New method.
Ian Lance Taylor [Mon, 6 Jul 2009 23:11:21 +0000 (23:11 +0000)]
* fileread.cc (File_read::get_mtime): New method.
* fileread.h (Timespec): New structure.
(File_read::get_mtime): New method.
* incremental.cc (Incremental_inputs_entry_data::timestamp_usec):
Renamed from timestamp_nsec.
(Incremental_inputs_entry_write::timestamp_sec): Fix argument to
Elf_Xword.
(Incremental_inputs_entry_write::timestamp_usec): Renamed from
timestamp_nsec.
(Incremental_inputs::report_archive): Save mtime; style fix.
(Incremental_inputs::report_obejct): Save mtime; style fix.
(Incremental_inputs::report_script): Save mtime; style fix.
(Incremental_inputs::finalize_inputs): Style fix.
(Incremental_inputs::finalize): Style fix.
(Incremental_inputs::create_input_section_data): Store inputs
mtime.
* incremental.h (Incremental_inputs::report_script): Add mtime
argument.
(Incremental_inputs::Input_info::Input_info): Intialize only one
union member.
(Incremental_inputs::Input_info::archive): Move to nameless
union.
(Incremental_inputs::Input_info::obejct): Move to nameless union.
(Incremental_inputs::Input_info::script): Move to nameless union.
(Incremental_inputs::mtime): New field.
* script.cc (read_input_script): Pass file mtime to
Incremental_input.
* script.h (Script_info::inputs): Style fix.

15 years ago<gas changes>
Dwarakanath Rajagopal [Mon, 6 Jul 2009 19:34:30 +0000 (19:34 +0000)]
<gas changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS.
(build_modrm_byte): Add support to handle FMA4 instructions.
(md_show_usage): Add fma4.

<gas/testsuite changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* gas/i386/i386.exp: Add FMA4 tests.
* gas/i386/x86-64-fma4.d: Ditto.
* gas/i386/fma4.d: Ditto.
* gas/i386/x86-64-fma4.s: Ditto.
* gas/i386/fma4.s: Ditto.

<opcodes changes>
2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>

* i386-opc.h (CpuFMA4): Add CpuFMA4.
(i386_cpu_flags): New.
* i386-gen.c: Add CPU_FMA4_FLAGS.
* i386-opc.tbl: Add FMA4 instructions.
* i386-tbl.h: Regenerate.
* i386-init.h: Regenerate.
* i386-dis.c (OP_VEX_FMA): New. Handle FMA4.
(OP_XMM_VexW): Ditto.
(OP_EX_VexW): Ditto.
(VEXI4_Fixup): Ditto.
(VexI4, VexFMA, Vex128FMA, EXVexW, EXdVexW, XMVexW): New Macros.
(PREFIX_VEX_3A5C, PREFIX_VEX_3A5D, PREFIX_VEX_3A5E): New.
(PREFIX_VEX_3A5F, PREFIX_VEX_3A60): New.
(PREFIX_VEX_3A68, PREFIX_VEX_3A69, PREFIX_VEX_3A6A): New.
(PREFIX_VEX_3A6B, PREFIX_VEX_3A6C, PREFIX_VEX_3A6D): New.
(PREFIX_VEX_3A6E, PREFIX_VEX_3A6F, PREFIX_VEX_3A7A): New.
(PREFIX_VEX_3A7B, PREFIX_VEX_3A7C, PREFIX_VEX_3A7D): New.
(PREFIX_VEX_3A7E, PREFIX_VEX_3A7F): New.
(VEX_LEN_3A6A_P_2,VEX_LEN_3A6B_P_2, VEX_LEN_3A6E_P_2): New.
(VEX_LEN_3A6F_P_2,VEX_LEN_3A7A_P_2, VEX_LEN_3A7B_P_2): New.
(VEX_LEN_3A7E_P_2,VEX_LEN_3A7F_P_2): New.
(get_vex_imm8): New. handle FMA4.
(OP_EX_VexReg): Ditto.

15 years ago2009-07-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 6 Jul 2009 14:45:56 +0000 (14:45 +0000)]
2009-07-06  Tristan Gingold  <gingold@adacore.com>

* objdump.c (dump_dwarf_section): Handle .eh_frame like other dwarf
sections.
* dwarf.h (struct dwarf_section_display): Remove eh_frame field.
* dwarf.c (debug_displays): Adjust for removed field.

15 years ago * ld.texinfo: Fix typo.
Nick Clifton [Mon, 6 Jul 2009 13:48:51 +0000 (13:48 +0000)]
    * ld.texinfo: Fix typo.

15 years agodaily update
Alan Modra [Mon, 6 Jul 2009 00:00:04 +0000 (00:00 +0000)]
daily update

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

15 years ago * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
Alan Modra [Sat, 4 Jul 2009 01:50:44 +0000 (01:50 +0000)]
* config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.

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

15 years ago2009-07-03 Cary Coutant <ccoutant@google.com>
Dave Korn [Fri, 3 Jul 2009 17:02:43 +0000 (17:02 +0000)]
2009-07-03  Cary Coutant  <ccoutant@google.com>

* dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.

15 years ago2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
Dave Korn [Fri, 3 Jul 2009 16:07:38 +0000 (16:07 +0000)]
2009-07-03  Dave Korn  <dave.korn.cygwin@gmail.com>

* coffcode.h (sec_to_styp_flags):  Partially revert (functional
changes only) earlier patch:-

  2009-06-25  Kai Tietz  <kai.tietz@onevision.com>

  * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
  give .debug and .reloc data characteristics.
  (DOT_RELOC): New define for .reloc section string.
  (coff_write_object_contents): Use DOT_RELOC instead of string.

15 years ago2009-07-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Fri, 3 Jul 2009 10:44:57 +0000 (10:44 +0000)]
2009-07-03  Tristan Gingold  <gingold@adacore.com>

* scripttempl/pep.sc: Put .eh_frame in its own section.
* scripttempl/pe.sc: Ditto.

15 years ago * dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
Jakub Jelinek [Fri, 3 Jul 2009 08:53:50 +0000 (08:53 +0000)]
* dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value
and DW_OP_stack_value.

* dwarf.c (decode_location_expression): Handle DW_OP_stack_value
and DW_OP_implicit_value.

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