external/binutils.git
14 years agobfd/
Richard Sandiford [Sun, 19 Sep 2010 10:26:28 +0000 (10:26 +0000)]
bfd/
* elfxx-mips.c (mips_got_entry): Adjust commentary.
(mips_elf_create_local_got_entry): If given a symbol, check that it
has been assigned to the local part of the GOT.
(mips_elf_count_got_symbols): Take the bfd_link_info as argument
instead of the master GOT.  Put all locally-binding symbols in
the local area.
(mips_elf_make_got_per_bfd): Use global_got_area to decide whether
a symbol lives in the local or global area.
(mips_elf_local_relocation_p): Remove check_forced argument and
retain only the !check_forced behavior.
(mips_elf_calculate_relocation): Adjust call accordingly.
Use global_got_area to decide whether an output relocation
should be local or global.  Explicitly decay R_MIPS_GOT_PAGE
into R_MIPS_GOT_DISP where appropriate.  Fix selection of
local vs. global semantics for R_MIPS*_26.  Remove redundant
reevaluation of what is stored in was_local_p.
(mips_elf_create_dynamic_relocation): Use global_got_area to decide
whether the relocation should be against a global or local symbol.
(mips_elf_lay_out_got): Update the GOT traversal after the above
change to mips_elf_count_got_symbols.
(mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
(_bfd_mips_elf_relocate_section): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
whether the symbol has a global got entry.
(_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.

ld/testsuite/
* ld-mips-elf/elf-rel-got-n32.d: Swap two local GOT entries
and remove some duplication between the global and local GOT
entries.  Adjust GP offsets accordingly.
* ld-mips-elf/elf-rel-got-n64-linux.d: Likewise.
* ld-mips-elf/elf-rel-xgot-n32.d: Reorder GOT entries and update
GP offsets accordingly.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
* ld-mips-elf/mips16-pic-1.gd: Move all global GOT entries to
the local GOT.
* ld-mips-elf/mips16-pic-1.dd: Update GP offsets accordingly.
* ld-mips-elf/multi-got-no-shared.d: Adjust GP setup for
smaller GOT sizes.

14 years agobfd/
Richard Sandiford [Sun, 19 Sep 2010 10:07:30 +0000 (10:07 +0000)]
bfd/
* elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
to the global GOT on VxWorks.

14 years agobfd/
Richard Sandiford [Sun, 19 Sep 2010 10:03:28 +0000 (10:03 +0000)]
bfd/
* elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
about HI/LO relocations in shared objects.

14 years ago*** empty log message ***
gdbadmin [Sun, 19 Sep 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 19 Sep 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago * lib/ld-lib.exp (check_gc_sections_available): Fail more targets.
Alan Modra [Sat, 18 Sep 2010 02:30:41 +0000 (02:30 +0000)]
* lib/ld-lib.exp (check_gc_sections_available): Fail more targets.
* ld-discard/discard.exp: Move xfails from here..
* ld-discard/extern.d: ..to here.
* ld-discard/start.d: ..and here.
* ld-discard/static.d: ..and here.
* ld-elf/binutils.exp: Don't run tbss1 and tbss2 tests on hppa64.
* ld-elf/empty2.d: Remove xfails.
* ld-elf/flags1.d: xfail hppa64.
* ld-elf/group1.d: Add comment.
* ld-elf/group2.d: xfail cr16 and crx.
* ld-elf/group3b.d: Correct xfail and add comment.
* ld-elf/group4.d: xfail cr16 and crx.
* ld-elf/group5.d: Likewise.
* ld-elf/group6.d: Likewise.
* ld-elf/group7.d: Likewise.
* ld-elf/group8a.d: Add more notarget and xfail entries.  Comment.
* ld-elf/group8b.d: Likewise.
* ld-elf/group9a.d: Likewise.
* ld-elf/group9b.d: Likewise.
* ld-elf/linkonce2.d: Correct notarget and comment.
* ld-elf/merge2.d: Remove iq2000 from xfail.
* ld-elf/multibss1.d: xfail hppa64.
* ld-elf/nobits-1.d: Likewise.
* ld-elf/note-1.d: Likewise.
* ld-elf/note-2.d: Likewise.
* ld-elf/orphan-region.d: Add xfails.
* ld-elf/orphan-region.ld: Discard some sections.
* ld-elf/orphan.d: Add xfails.
* ld-elf/orphan.ld: Discard some sections.
* ld-elf/orphan3.d: Replace xfail frv-*-* with frv-*-elf.  Remove
cr16, crx and d10v.
* ld-elf/pr349.d: Add xfails.
* ld-elf/warn2.d: Add xfails.  Tweak symbol section for hppa64.
* ld-scripts/rgn-at5.t: Discard .reginfo.

14 years agoFix date.
H.J. Lu [Sat, 18 Sep 2010 00:43:39 +0000 (00:43 +0000)]
Fix date.

14 years agoAdd a target argument.
H.J. Lu [Sat, 18 Sep 2010 00:42:25 +0000 (00:42 +0000)]
Add a target argument.

2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* emul_aix.c (ar_emul_aix_append): Add a target argument
and ignore it if it is set.
(ar_emul_aix5_append): Likewise.
(ar_emul_aix_replace): Likewise.
(ar_emul_aix5_replace): Likewise.

14 years ago * testsuite/Makefile.am (memory_test.o): New target.
Ian Lance Taylor [Sat, 18 Sep 2010 00:34:58 +0000 (00:34 +0000)]
* testsuite/Makefile.am (memory_test.o): New target.
(memory_test): Depend on memory_test.o, gcctestdir/ld, and
memory_test.t.
* testsuite/Makefile.in: Rebuild.

14 years ago * testsuite/memory_test.sh: Adjust for change of 2010-09-10.
Ian Lance Taylor [Sat, 18 Sep 2010 00:31:02 +0000 (00:31 +0000)]
* testsuite/memory_test.sh: Adjust for change of 2010-09-10.

14 years agodaily update
Alan Modra [Sat, 18 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 18 Sep 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago2010-09-17 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 17 Sep 2010 23:51:42 +0000 (23:51 +0000)]
2010-09-17  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::Relocate::relocate): Ignore symbol type and
defintion if relocation uses GOT entries of the symbol.
* testsuite/icf_safe_test.sh: Fix test.
* testsuite/icf_safe_so_test.sh: Fix test.

14 years ago2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
Matthew Gretton-Dann [Fri, 17 Sep 2010 15:19:14 +0000 (15:19 +0000)]
2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* config/tc-arm.c (do_t_ldmstm): Add logic to handle single-register
list for ldm/stm.

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* gas/arm/thumb2_ldmstm.d: Change single-register stmia to use 16-bit
str encoding instead of str.w.  Likewise for ldmia.
* gas/arm/thumb2_ldmstm.s: Change stmia comment.  Add tests for T1
ldmia-to-ldr.

14 years ago2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
Matthew Gretton-Dann [Fri, 17 Sep 2010 10:42:04 +0000 (10:42 +0000)]
2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* config/tc-arm.c (parse_psr): Add condition for matching "APSR" on
non-M-arch cpus.
(psrs): Add entry for PSR flags, g, nzcvq, nzcvqg.

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* gas/arm/msr-reg.s: New file.
* gas/arm/msr-reg.d: Likewise.
* gas/arm/msr-imm.s: Likewise.
* gas/arm/msr-imm.d: Likewise.
* gas/arm/msr-imm-bad.d: Likewise.
* gas/arm/msr-imm-bad.l: Likewise.
* gas/arm/msr-reg-bad.d: Likewise.
* gas/arm/msr-imm-bad.d: Likewise.
* gas/arm/msr-reg-thumb.d: Likewise.
* gas/arm/arch7.s: Add tests for xpsr.
* gas/arm/arch7.d: Likewise.

14 years ago2010-09-17 Tejas Belagod <tejas.belagod@arm.com>
Matthew Gretton-Dann [Fri, 17 Sep 2010 10:13:41 +0000 (10:13 +0000)]
2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* config/tc-arm.c (insns): Change MRC entry to accept APSR_RR instead
of just RR.

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* gas/arm/copro.s: Add test for APSR_nzcv as a MRC operand.
* gas/arm/copro.d: Change pc in MRC to disassemble as APSR_nzcv.  Also
add disassembly for test added in copro.s

2010-09-17  Tejas Belagod  <tejas.belagod@arm.com>

* arm_dis.c (coprocessor_opcodes): Add MRC entry for APSR_nzcv.

14 years ago*** empty log message ***
gdbadmin [Fri, 17 Sep 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 17 Sep 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago PR gas/12011
Alan Modra [Thu, 16 Sep 2010 23:55:10 +0000 (23:55 +0000)]
PR gas/12011
* config/obj-elf.c (obj_elf_parse_section_letters): Correct test
for error return from md_elf_section_letter.
* config/tc-alpha.c (alpha_elf_section_letter): Correct error message.
* config/tc-i386.c (x86_64_section_letter): Likewise.
* config/tc-ia64.c (ia64_elf_section_letter): Likewise.
* config/tc-mep.c (mep_elf_section_letter): Likewise.
* gas/elf/bad-section-flag.d, * gas/elf/bad-section-flag.err,
* gas/elf/bad-section-flag.s: New test.
* gas/elf/elf.exp: Run it.

14 years agogdb/
Jan Kratochvil [Thu, 16 Sep 2010 19:20:51 +0000 (19:20 +0000)]
gdb/
* charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
characters.

14 years ago * script_sections.cc (class Memory_region): Remove "NULL" from
Cary Coutant [Thu, 16 Sep 2010 15:52:15 +0000 (15:52 +0000)]
* script_sections.cc (class Memory_region): Remove "NULL" from
vector initializations.

14 years ago2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 16 Sep 2010 13:47:55 +0000 (13:47 +0000)]
2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>

PR mi/11407
* mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
read_var_value and common_val_print and print a warning.

2010-09-16  Phil Muldoon  <pmuldoon@redhat.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>

PR mi/11407
* gdb.mi/dw2-ref-missing-frame-func.c: New File.
* gdb.mi/dw2-ref-missing-frame-main.c New File.
* gdb.mi/dw2-ref-missing-frame.S New File.
* gdb.mi/dw2-ref-missing-frame.exp New File.

14 years ago * ld-elf/orphan-region.d: xfail for spu.
Alan Modra [Thu, 16 Sep 2010 10:51:41 +0000 (10:51 +0000)]
* ld-elf/orphan-region.d: xfail for spu.
* ld-elf/relocatable.d: xfail for hppa.

14 years ago * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
Alan Modra [Thu, 16 Sep 2010 10:36:00 +0000 (10:36 +0000)]
* elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
sections.
(spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
set dynobj.
(spu_elf_finish_dynamic_sections): New function.
(elf_backend_finish_dynamic_sections): Define.

14 years ago * binutils-all/i386/i386.exp: Don't run on linuxaout.
Alan Modra [Thu, 16 Sep 2010 00:42:00 +0000 (00:42 +0000)]
* binutils-all/i386/i386.exp: Don't run on linuxaout.

14 years ago * gas/all/redef3.d: Don't run on arc.
Alan Modra [Thu, 16 Sep 2010 00:39:11 +0000 (00:39 +0000)]
* gas/all/redef3.d: Don't run on arc.
* gas/i386/i386.exp: Don't run intel-got32 on linuxaout.  Move
x86_64 mingw exclusions to equivalent elf only block of tests.

14 years ago * ld-elf/group3b.d: Disable for generic linker targets.
Alan Modra [Thu, 16 Sep 2010 00:28:57 +0000 (00:28 +0000)]
* ld-elf/group3b.d: Disable for generic linker targets.
* ld-elf/linkonce2.d: Likewise.
* ld-scripts/empty-address-2a.d: Disable for frv and aout,oldld.
* ld-scripts/empty-address-2b.d: Likewise.
* ld-scripts/rgn-at5.s: Don't use .word.
* ld-scripts/rgn-at5.d: Update.

14 years agobfd/
Alan Modra [Thu, 16 Sep 2010 00:06:12 +0000 (00:06 +0000)]
bfd/
* elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
* elflink.c (elf_link_input_bfd): Likewise.
ld/
* ld.texinfo (NOLOAD): Do not erroneously state that contents will
appear in output file.
* ldlang.c (lang_add_section): Clear SEC_HAS_CONTENTS on noload
unless SEC_COFF_SHARED_LIBRARY.
(map_input_to_output_sections): Don't set SEC_HAS_CONTENTS for noload
output sections.
(lang_size_sections_1): Don't test SEC_NEVER_LOAD when deciding
to update dot in region.  Ditto when setting SEC_ALLOC if dot
advanced due to assignment.
* ldwrite.c (build_link_order): Don't test SEC_NEVER_LOAD.

14 years ago*** empty log message ***
gdbadmin [Thu, 16 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 16 Sep 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years agogdb/
Jan Kratochvil [Wed, 15 Sep 2010 22:53:53 +0000 (22:53 +0000)]
gdb/
* MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
keep the list in alphabetical order.  Use longer e-mail address.

14 years ago * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
Tom Tromey [Wed, 15 Sep 2010 22:26:25 +0000 (22:26 +0000)]
* MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.

14 years ago * charset.c (iconv_open): New define.
Tom Tromey [Wed, 15 Sep 2010 20:18:47 +0000 (20:18 +0000)]
* charset.c (iconv_open): New define.
(iconv): Likewise.
(iconv_close): Likewise.
(phony_iconv_open): Add "phony_" prefix.
(phony_iconv_close): Likewise.
(phony_iconv): Likewise.
* gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
Change how INTERMEDIATE_ENCODING is defined.

14 years agoFix intend
Kai Tietz [Wed, 15 Sep 2010 19:50:13 +0000 (19:50 +0000)]
Fix intend

14 years agoChangeLog gas
Kai Tietz [Wed, 15 Sep 2010 19:48:52 +0000 (19:48 +0000)]
ChangeLog gas

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

* config/obj-coff-seh.c (seh_validate_seg): New funtion.
(obj_coff_seh_endproc): Add check for segment.
(obj_coff_seh_endprologue): Likewise.
(obj_coff_seh_pushreg): Likewise.
(obj_coff_seh_pushframe): Likewise.
(obj_coff_seh_save): Likewise.
(obj_coff_seh_setframe): Likewise.

ChangeLog gas/testsuite

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

* gas/pe/pe.exp: Add new test.
* gas/pe/seh-x64-err-1.l: New.
* gas/pe/seh-x64-err-1.s: New.

14 years agoChangeLog gas
Kai Tietz [Wed, 15 Sep 2010 19:43:56 +0000 (19:43 +0000)]
ChangeLog gas

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

       * config/obj-coff-seh.h (seh_context): New member code_seg.
       * config/obj-coff-seh.c: Implementing xdata/pdata section cloning
       for link-once code-segment.

ChangeLog ld

2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

       * scripttempl/pep.sc: Add .xdata segment and
       put into .pdata all segments beginning with .pdata.

ChangeLog gas/testsuite
2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

       * gas/pe/pe.exp: Add peseh-x64-4,5,6 tests.
       * gas/pe/peseh-x64-4.s: New.
       * gas/pe/peseh-x64-4.d: New.
       * gas/pe/peseh-x64-5.d: New.
       * gas/pe/peseh-x64-6.d: New.

14 years ago2010-09-15 Paul Bolle <pebolle@tiscali.nl>
Tom Tromey [Wed, 15 Sep 2010 19:31:59 +0000 (19:31 +0000)]
2010-09-15  Paul Bolle  <pebolle@tiscali.nl>

* gdb.texinfo (Character Sets): Correctly reference host-charset
in example.

14 years ago * dwarf2read.c (struct die_info): Fix comment.
Doug Evans [Wed, 15 Sep 2010 18:14:47 +0000 (18:14 +0000)]
* dwarf2read.c (struct die_info): Fix comment.

14 years ago * incremental.cc (Output_section_incremental_inputs::write_info_blocks):
Cary Coutant [Wed, 15 Sep 2010 18:10:31 +0000 (18:10 +0000)]
* incremental.cc (Output_section_incremental_inputs::write_info_blocks):
Resolve forwarding symbols.

14 years ago2010-09-15 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 15 Sep 2010 17:39:57 +0000 (17:39 +0000)]
2010-09-15  Doug Kwan  <dougkwan@google.com>

* gold/testsuite/script_test_3.t: Add ARM special sections.
* gold/testsuite/script_test_4.t: Same.
* gold/testsuite/script_test_5.t: Same.
* gold/testsuite/script_test_6.t: Same.
* gold/testsuite/script_test_7.t: Same.
* gold/testsuite/script_test_7.t: Same.
* gold/testsuite/thumb_blx_out_of_range.s: Fix instruction alignment.

14 years ago2010-09-15 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Wed, 15 Sep 2010 17:27:30 +0000 (17:27 +0000)]
2010-09-15  Kai Tietz  <kai.tietz@onevision.com>

        * pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
        (pex64_get_scope_entry): Removed.
        (find_next_xdata_or_end): New helper.
        (pex64_dump_xdata): Reworked.
        (pex64_bfd_print_pdata): Add checking for
        valid pdata sorting and values. Reworked
        output.

14 years agoHandle NULL iostream in bfd_plugin_object_p.
H.J. Lu [Wed, 15 Sep 2010 17:12:59 +0000 (17:12 +0000)]
Handle NULL iostream in bfd_plugin_object_p.

2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/12004
* plugin.c (bfd_plugin_object_p): Handle NULL iostream.

14 years agoPass "plugin" as target for "ar --plugin" when opening a BFD file.
H.J. Lu [Wed, 15 Sep 2010 17:10:15 +0000 (17:10 +0000)]
Pass "plugin" as target for "ar --plugin" when opening a BFD file.

2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>

* ar.c (plugin_target): New.
(main): Set plugin_target to "plugin" for --plugin.
(open_inarch): Initialize target to plugin_target.
(replace_members): Pass plugin_target to ar_emul_replace
and ar_emul_append.

* binemul.h (ar_emul_append): Add a target argument.
(ar_emul_default_append): Likewise.
(ar_emul_replace): Likewise.
(ar_emul_default_replace): Likewise.
(bin_emulation_xfer_struct): Add a target argument to
ar_append and ar_replace.

* binemul.c (ar_emul_append): Updated.  Pass target to bfd_openr.
(do_ar_emul_default_append): Likewise.
(ar_emul_default_append): Likewise.
(ar_emul_replace): Likewise.
(ar_emul_default_replace): Likewise.

14 years ago PR 4606
Alan Modra [Wed, 15 Sep 2010 03:30:30 +0000 (03:30 +0000)]
PR 4606
* gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
than setting SEC_NEVER_LOAD on sections that need not be copied.

14 years ago*** empty log message ***
gdbadmin [Wed, 15 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

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

14 years ago opcodes/
Maciej W. Rozycki [Tue, 14 Sep 2010 23:49:04 +0000 (23:49 +0000)]
opcodes/
* mips-opc.c (mips_builtin_opcodes): Add "sync_acquire",
"sync_mb", "sync_release", "sync_rmb" and "sync_wmb".

gas/testsuite/
* gas/mips/mips32r2-sync.d: New test for MIPS32r2 "sync"
instruction variants.
* gas/mips/octeon@mips32r2-sync.d: Likewise, Octeon version.
* gas/mips/mips32r2-sync.s: Source for the new test.
* gas/mips/mips.exp: Run the new test.

14 years ago * psympriv.h (add_psymbol_to_list, init_psymbol_list)
Tom Tromey [Tue, 14 Sep 2010 22:50:30 +0000 (22:50 +0000)]
* psympriv.h (add_psymbol_to_list, init_psymbol_list)
(start_psymtab_common, allocate_psymtab, discard_psymtab):
Declare.
* symfile.h (extend_psymbol_list): Remove.
(add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
(allocate_psymtab, discard_psymtab): Move to psympriv.h.
* psymtab.c (extend_psymbol_list): Move earlier.  Now static.

14 years ago * x86_64.cc (Target_x86_64::saw_tls_block_reloc_): Remove member.
Cary Coutant [Tue, 14 Sep 2010 21:44:21 +0000 (21:44 +0000)]
* x86_64.cc (Target_x86_64::saw_tls_block_reloc_): Remove member.
(Target_x86_64::Relocate::relocate_tls): Replace check for
saw_tls_block_reloc_ with test for executable section.

14 years agogdb/
Jan Kratochvil [Tue, 14 Sep 2010 21:28:53 +0000 (21:28 +0000)]
gdb/
* dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
Update the comment.

14 years ago2010-09-14 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 14 Sep 2010 20:40:39 +0000 (20:40 +0000)]
2010-09-14  Kai Tietz  <kai.tietz@onevision.com>

        * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
        .rdata, .data, and .text partial matched section names.
        * pei-x86_64.c: Likewise.

14 years ago2010-09-14 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Tue, 14 Sep 2010 20:25:34 +0000 (20:25 +0000)]
2010-09-14  Kai Tietz  <kai.tietz@onevision.com>

        * peXXigen.c (sort_x64_pdata): New helper.
        (_bfd_XXi_final_link_postscript): Do pdata sorting.

14 years agogdb
Tom Tromey [Tue, 14 Sep 2010 19:39:59 +0000 (19:39 +0000)]
gdb
PR symtab/8399:
* dwarf2loc.c (locexpr_describe_location_piece): Don't call error
for unrecognized frame base expression.
gdb/testsuite
PR symtab/8399:
* gdb.threads/tls.exp: Remove kfail.  Update expected output.

14 years agogdb
Tom Tromey [Tue, 14 Sep 2010 19:08:30 +0000 (19:08 +0000)]
gdb
PR exp/11803:
* value.c (value_static_field): Use value_of_variable.
gdb/testsuite
PR exp/11803:
* gdb.threads/tls.exp: Use C++.
(check_thread_local): Use K::another_thread_local.
* gdb.threads/tls.c (class K): New.
(another_thread_local): Now a member of K.
(spin): Update.  No longer K&R C.

14 years ago * doc/c-arm.texi: Document -mcpu=cortex-m4.
Jie Zhang [Tue, 14 Sep 2010 09:16:21 +0000 (09:16 +0000)]
* doc/c-arm.texi: Document -mcpu=cortex-m4.

14 years ago * m32r-rom.c: Replace winsock.h with winsock2.h header.
Pierre Muller [Tue, 14 Sep 2010 08:01:12 +0000 (08:01 +0000)]
* m32r-rom.c: Replace winsock.h with winsock2.h header.
* remote-m32r-sdi.c: Replace winsock.h by winsock2.h.

14 years agodaily update
Alan Modra [Tue, 14 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Tue, 14 Sep 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agoFix PR 11992: C++ 'this' scope sometimes does not work
Sami Wagiaalla [Mon, 13 Sep 2010 20:41:05 +0000 (20:41 +0000)]
Fix PR 11992: C++ 'this' scope sometimes does not work

2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>

PR symtab/11992:
* c-exp.y (classify_name): Check is_a_member_of_this before returning
UNKNOWN_CPP_NAME.

2010-09-13  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/koenig.cc: created class for testing member lookup.
* gdb.cp/koenig.exp: Added test for member lookup.

14 years ago[NEWS] Announce gdbserver support for x86-lynxos
Joel Brobecker [Mon, 13 Sep 2010 20:37:34 +0000 (20:37 +0000)]
[NEWS] Announce gdbserver support for x86-lynxos

This patch adjusts the NEWS entry for the LynxOS gdbserver to include
x86-lynxos to the list of supported platforms.

gdb/ChangeLog:

        * NEWS: Add x86-lynxos to the list of platforms supported by
        gdbserver.

14 years agogdb/testsuite/
Jan Kratochvil [Mon, 13 Sep 2010 20:05:04 +0000 (20:05 +0000)]
gdb/testsuite/
Fix false FAILs on sourcetree topdir directory containing "kill".
* gdb.base/sigall.exp (test_one_sig) <advance to $nextsig>: Extend the
source line matching regexp.

14 years agoAdd support for x86 LynxOS
Joel Brobecker [Mon, 13 Sep 2010 19:11:03 +0000 (19:11 +0000)]
Add support for x86 LynxOS

This patch adds support for x86 LynxOS (tested on LynxOS 5.0).

gdb/gdbserver/ChangeLog:

        * lynx-i386-low.c: New file.
        * configure.srv: Add handling of i[34567]86-*-lynxos* targets.

14 years ago[NEWS] Announce support for PowerPC LynxOS 5.x.
Joel Brobecker [Mon, 13 Sep 2010 19:10:51 +0000 (19:10 +0000)]
[NEWS] Announce support for PowerPC LynxOS 5.x.

This adjusts the news entry about ppc-lynxos to add version 5.x
of the OS to the list of supported versions...

gdb/ChangeLog:

        * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.

14 years ago[LynxOS] Remove handling of PTRACE_* values removed in Lynx5.
Joel Brobecker [Mon, 13 Sep 2010 19:10:30 +0000 (19:10 +0000)]
[LynxOS] Remove handling of PTRACE_* values removed in Lynx5.

Some of the PTRACE_ macros/values were removed in LynxOS 5.x.
Since we have not use them so far, the chances that we will use them
one day are very small.  So I decided to delete them.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (ptrace_request_to_str): Remove handling for
        request values that have been removed in LynxOS 5.x.

14 years ago[LynxOS] Include sys/ptrace.h instead of ptrace.h.
Joel Brobecker [Mon, 13 Sep 2010 19:10:19 +0000 (19:10 +0000)]
[LynxOS] Include sys/ptrace.h instead of ptrace.h.

This is one of the changes needed in order to build gdbserver on
LynxOS 5.x.

Really interesting: On LynxOS 4.x, there is a #warning when sys/ptrace.h
is used (explaining that ptrace.h will be used instead), whereas this
file was removed from LynxOS 5.x. The contents of sys/ptrace.h on 4.x
(or at least the meat of it):

    #if defined(__GNUC__) || defined(__GNUG__)
    #if !defined(__NO_INCLUDE_WARN__)
    #warning Using <ptrace.h> instead of <sys/ptrace.h>
    #endif /* defined(__NO_INCLUDE_WARN__) */
    #endif /* defined(__GNUC__) || defined(__GNUG__) */

    #include <ptrace.h>

The fix I went for, for now, is to just include <sys/ptrace.h>
unconditionally.  I could have done some configury, but we already
have to build with -D__NO_INCLUDE_WARN__ to avoid the warnings
anyway, and that's unvoidable, due to system includes themselves
including the "wrong" header file.

Since <sys/ptrace.h> seems to be the choice that was made for LynxOS,
and since it works to include it on LynxOS 4.x, I think that's the simplest
solution.

gdb/gdbserver/ChangeLog:

        * lynx-low.c, lynx-ppc-low.c: Include <sys/ptrace.h> instead of
        <ptrace.h>

14 years ago * gdb.texinfo (GDB/MI Stack Manipulation) <-stack-list-frames>:
Tom Tromey [Mon, 13 Sep 2010 18:27:04 +0000 (18:27 +0000)]
* gdb.texinfo (GDB/MI Stack Manipulation) <-stack-list-frames>:
Document "fullname" and "from".

14 years ago * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
Tom Tromey [Mon, 13 Sep 2010 17:59:59 +0000 (17:59 +0000)]
* Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.

14 years agoSet 256bit vector type name to builtin_type_vec256i.
H.J. Lu [Mon, 13 Sep 2010 17:39:48 +0000 (17:39 +0000)]
Set 256bit vector type name to builtin_type_vec256i.

2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>

* i386-tdep.c (i386_ymm_type): Set type name to
builtin_type_vec256i.

14 years ago2010-09-13 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Mon, 13 Sep 2010 07:13:35 +0000 (07:13 +0000)]
2010-09-13  Kai Tietz  <kai.tietz@onevision.com>

        * gas/pe/pe.exp: Add x64 SEH tests.
        * gas/pe/peseh-x64.s: New.
        * gas/pe/peseh-x64.d: New.
        * gas/pe/peseh-x64-2.s: New.
        * gas/pe/peseh-x64-2.d: New.
        * gas/pe/peseh-x64-3.s: New.
        * gas/pe/peseh-x64-3.d: New.

14 years ago*** empty log message ***
gdbadmin [Mon, 13 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 13 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago2010-09-12 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Sun, 12 Sep 2010 21:49:40 +0000 (21:49 +0000)]
2010-09-12  Michael Snyder  <msnyder@vmware.com>

* i386-tdep.c (i386_gdbarch_init): Fix typo in comments.

14 years ago * symtab.h (Symbol::needs_dynamic_reloc): Non-PIC calls from
Cary Coutant [Sun, 12 Sep 2010 19:58:02 +0000 (19:58 +0000)]
* symtab.h (Symbol::needs_dynamic_reloc): Non-PIC calls from
position-independent executables to shared libraries need dynamic
relocations.
(Symbol::may_need_copy_reloc): Do not generate COPY relocs in
position-independent executables.
* testsuite/Makefile.am (two_file_mixed_pie_test): New test.
* testsuite/Makefile.in: Regenerate.

14 years agoFix typo in comments.
H.J. Lu [Sun, 12 Sep 2010 18:33:17 +0000 (18:33 +0000)]
Fix typo in comments.

2010-09-12  H.J. Lu  <hongjiu.lu@intel.com>

* i386-tdep.c (i386_gdbarch_init): Fix typo in comments.

14 years ago*** empty log message ***
gdbadmin [Sun, 12 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

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

14 years agoRemove amd64_register_name.
H.J. Lu [Sat, 11 Sep 2010 19:09:35 +0000 (19:09 +0000)]
Remove amd64_register_name.

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

* amd64-tdep.c (amd64_register_name): Removed.
(amd64_init_abi): Don't call set_gdbarch_register_name.

* i386-tdep.c (i386_ymmh_regnum_p): Make it static.

* i386-tdep.h (i386_ymmh_regnum_p): Removed.

14 years agogdb/
Jan Kratochvil [Sat, 11 Sep 2010 16:00:27 +0000 (16:00 +0000)]
gdb/
Redirect also uiout and stdtarg{,err} in execute_command_to_string.
* cli-logging.c (struct saved_output_files) <targerr>: New.
(set_logging_redirect, pop_output_files, handle_redirections):
Redirect also gdb_stdtargerr.
* defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
declarations.
* event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
also gdb_stdtargerr.
* top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
to the top.  Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
* tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
* utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
New functions.

gdb/testsuite/
* gdb.python/python.exp (set height 0, collect help from uiout)
(verify help to uiout): New tests.

14 years agodaily update
Alan Modra [Sat, 11 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sat, 11 Sep 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agomerge from gcc
DJ Delorie [Fri, 10 Sep 2010 23:17:28 +0000 (23:17 +0000)]
merge from gcc

14 years ago2010-09-10 James Lyon <jameslyon0@googlemail.com>
Tom Tromey [Fri, 10 Sep 2010 22:42:05 +0000 (22:42 +0000)]
2010-09-10  James Lyon  <jameslyon0@googlemail.com>

http://sourceware.org/bugzilla/show_bug.cgi?id=11572
* cp-demangle.c (d_find_pack): Add case for
DEMANGLE_COMPONENT_LAMBDA.
* testsuite/demangle-expected: Add regression test.

14 years agogdb/testsuite/
Jan Kratochvil [Fri, 10 Sep 2010 20:29:25 +0000 (20:29 +0000)]
gdb/testsuite/
* gdb.base/break-interp.exp (test_ld) <istarget powerpc64-*>: Add
is_lp64_target to check 64bit target.

14 years ago * hppa-tdep.c (unwind_command): Use host_address_to_string function
Pierre Muller [Fri, 10 Sep 2010 16:17:14 +0000 (16:17 +0000)]
* hppa-tdep.c (unwind_command): Use host_address_to_string function
to display a host address.
* monitor.c (monitor_read_memory): Likewise.
* xtensa-tdep.c (xtensa_push_dummy_call): Likewise.

14 years ago * coffread.c (struct coff_symbol): Change c_value type from `long' to
Pierre Muller [Fri, 10 Sep 2010 16:12:22 +0000 (16:12 +0000)]
* coffread.c (struct coff_symbol): Change c_value type from `long' to
`CORE_ADDRESS' as it might contain target addresses.

14 years ago * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
Pierre Muller [Fri, 10 Sep 2010 16:04:58 +0000 (16:04 +0000)]
* alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
before cast to pointer to avoid warning.

14 years ago * src/opcodes/dlx-dis.c (print_insn_dlx): Use dlx_insn type for
Pierre Muller [Fri, 10 Sep 2010 13:00:54 +0000 (13:00 +0000)]
* src/opcodes/dlx-dis.c (print_insn_dlx): Use dlx_insn type for
dlx_insn_type array.

14 years ago * objcopy.c: Add --interleave-width option to allow interleaving
Nick Clifton [Fri, 10 Sep 2010 12:11:28 +0000 (12:11 +0000)]
    * objcopy.c: Add --interleave-width option to allow interleaving
        of more than one byte at a time.
        (copy_width): New variable.
        (copy_options): Add --interleave-width.
        (copy_section): When interleaving copy in units of copy_width
        bytes.
        (copy_main): Parse the new option.
        * doc/binutils: Document the new option.
        * NEWS: Mention the new feature.

        * binutils-all/objcopy.exp: Add test of new --interleave-width
        option.

14 years ago PR gold/11997
Nick Clifton [Fri, 10 Sep 2010 11:50:24 +0000 (11:50 +0000)]
    PR gold/11997
        * testsuite/memory_test.t: Discard any sections that are not
        needed.

14 years ago * ld-gc/abi-note.d: Exclude aout and oldld targets.
Alan Modra [Fri, 10 Sep 2010 07:18:36 +0000 (07:18 +0000)]
* ld-gc/abi-note.d: Exclude aout and oldld targets.
* ld-gc/start.d: Likewise.
* ld-scripts/section-match-1.d: Likewise, and tic30.

14 years ago PR ld/11931
Alan Modra [Fri, 10 Sep 2010 01:23:12 +0000 (01:23 +0000)]
PR ld/11931
* ldlang.h (lang_for_each_statement_worker): Declare.
* ldlang.c (lang_for_each_statement_worker): Make global.  Don't
recurse into children of output_section_statement with constraint
set to -1.
(print_assignment): Handle NULL output_section->bfd_section.
(lang_size_sections_1): Ignore output section statement address
when constraint is -1.
* emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.

14 years ago * ld-scripts/rgn-at5.d: Restrict to *-*-linux*.
Hans-Peter Nilsson [Fri, 10 Sep 2010 01:00:28 +0000 (01:00 +0000)]
* ld-scripts/rgn-at5.d: Restrict to *-*-linux*.

14 years ago*** empty log message ***
gdbadmin [Fri, 10 Sep 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 10 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
Kevin Buettner [Thu, 9 Sep 2010 23:04:46 +0000 (23:04 +0000)]
* v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
type to be signed.

14 years agoCheck VEXW1 for 2-byte VEX prefix.
H.J. Lu [Thu, 9 Sep 2010 21:12:37 +0000 (21:12 +0000)]
Check VEXW1 for 2-byte VEX prefix.

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

* config/tc-i386.c (build_vex_prefix): Check VEXW1 for 2-byte
VEX prefix.

14 years ago * doc/c-tic6x.texi (.c6xabi_attribute): Document directive.
Joseph Myers [Thu, 9 Sep 2010 20:56:15 +0000 (20:56 +0000)]
* doc/c-tic6x.texi (.c6xabi_attribute): Document directive.

14 years agogdb/testsuite/
Jan Kratochvil [Thu, 9 Sep 2010 20:00:49 +0000 (20:00 +0000)]
gdb/testsuite/
* gdb.base/break-interp.exp (reach): Permit leading . for ppc64.
(test_ld) <powerpc64-*>: New.

14 years agoSupport building gold with gcc 4.2/4.3.
H.J. Lu [Thu, 9 Sep 2010 19:57:06 +0000 (19:57 +0000)]
Support building gold with gcc 4.2/4.3.

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

PR gold/11996
* object.cc (Sized_relobj::do_finalize_local_symbols): Remove
"This::" to work around a bug in gcc 4.2.

* testsuite/ifuncmain7.c (foo_ifunc): Add __attribute__ ((used)).

14 years agoDon't warn zero LMA adjustment.
H.J. Lu [Thu, 9 Sep 2010 19:22:29 +0000 (19:22 +0000)]
Don't warn zero LMA adjustment.

bfd/

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

PR ld/11998
* elf.c (assign_file_positions_for_load_sections): Don't warn
zero LMA adjustment.

ld/testsuite/

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

PR ld/11998
* ld-scripts/rgn-at5.d: New.
* ld-scripts/rgn-at5.s: Likewise.
* ld-scripts/rgn-at5.t: Likewise.