binutils-gdb.git
14 years ago * gdb.texinfo (Python): Fix long line.
Doug Evans [Sat, 30 Oct 2010 04:39:47 +0000 (04:39 +0000)]
* gdb.texinfo (Python): Fix long line.

14 years agomerge from gcc
DJ Delorie [Sat, 30 Oct 2010 00:01:15 +0000 (00:01 +0000)]
merge from gcc

14 years ago*** empty log message ***
gdbadmin [Sat, 30 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 29 Oct 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago * elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.
Maciej W. Rozycki [Fri, 29 Oct 2010 21:28:31 +0000 (21:28 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Fix a typo.

14 years ago2010-10-29 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 29 Oct 2010 20:49:20 +0000 (20:49 +0000)]
2010-10-29  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_outout_section::fix_exidx_coverage): Adjust call to
Output_section::add_relaxed_input_section.
* output.cc (Output_section::add_relaxed_input_section): Add new
arguments LAYOUT and NAME.  Set section order index.
(Output_section::convert_input_sections_in_list_to_relaxed_sections):
Copy section order index.
* output.h (Output_section::add_relaxed_input_section): Add new
arguments LAYOUT and NAME.

14 years agoUse uLong on compressed_size when using zlib.
H.J. Lu [Fri, 29 Oct 2010 19:56:00 +0000 (19:56 +0000)]
Use uLong on compressed_size when using zlib.

2010-10-29  Pawel Sikora  <pluto@pld-linux.org>

PR binutils/12075
* compress.c (bfd_compress_section_contents): Use uLong on
compressed_size.

14 years agobfd:
Joseph Myers [Fri, 29 Oct 2010 16:47:55 +0000 (16:47 +0000)]
bfd:
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check
Tag_ABI_compatibility not Tag_compatibility.
(elf32_tic6x_merge_attributes): Update compatibility attribute
name in comment.  Return FALSE if merging common attributes fails.

binutils:
* readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility
not hardcoded 32.  Display name of this attribute.

gas:
* doc/c-tic6x.texi (TIC6X Directives): Mention
Tag_ABI_compatibility.

gas/testsuite:
* gas/tic6x/attr-compatibility-directive-1.d,
gas/tic6x/attr-compatibility-directive-1.s,
gas/tic6x/attr-compatibility-directive-2.d,
gas/tic6x/attr-compatibility-directive-2.s: New tests.

include/elf:
* tic6x-attrs.h (Tag_ABI_compatibility): Define.

ld/testsuite:
* ld-tic6x/attr-compatibility-gnu-gnu.d,
ld-tic6x/attr-compatibility-gnu-other.d,
ld-tic6x/attr-compatibility-gnu.s,
ld-tic6x/attr-compatibility-other-gnu.d,
ld-tic6x/attr-compatibility-other-other.d,
ld-tic6x/attr-compatibility-other.s: New tests.

14 years agoOnly run ld-elf/compress1c.d for Linux targets.
H.J. Lu [Fri, 29 Oct 2010 16:16:59 +0000 (16:16 +0000)]
Only run ld-elf/compress1c.d for Linux targets.

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

* ld-elf/compress1c.d: Only run for Linux targets.

14 years ago * testsuite/Makefile.am: Move gcctestdir/ld rule to
Ian Lance Taylor [Fri, 29 Oct 2010 15:45:40 +0000 (15:45 +0000)]
* testsuite/Makefile.am: Move gcctestdir/ld rule to
        NATIVE_OR_CROSS_LINKER.
* testsuite/Makefile.in: Regenerate.

14 years ago PR bintils/6962
Nick Clifton [Fri, 29 Oct 2010 13:20:04 +0000 (13:20 +0000)]
    PR bintils/6962
        * coffcode.h (handle_COMDAT): Only check the base type when
        looking for a section symbol.

14 years agoAdd compressed debug section support to binutils and ld.
H.J. Lu [Fri, 29 Oct 2010 12:10:39 +0000 (12:10 +0000)]
Add compressed debug section support to binutils and ld.

bfd/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
    Cary Coutant  <ccoutant@google.com>

* archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
and BFD_DECOMPRESS.

* bfd.c (BFD_COMPRESS): New.
(BFD_DECOMPRESS): Likewise.
(BFD_FLAGS_SAVED): Likewise.
(bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.

* compress.c (bfd_uncompress_section_contents): Removed.
(get_uncompressed_size): New.
(decompress_contents): Likewise.
(bfd_compress_section_contents): Likewise.
(bfd_get_full_section_contents): Likewise.
(bfd_is_section_compressed): Likewise.
(bfd_init_section_decompress_status): Likewise.
(bfd_init_section_compress_status): Likewise.

* dwarf2.c (dwarf_debug_sections): New.
(dwarf_debug_section_enum): Likewise.
(read_section): Remove section_name and compressed_section_name.
Add dwarf_debug_section_enum.  Try compressed debug section.
(read_indirect_string): Updated.
(read_abbrevs): Likewise.
(decode_line_info): Likewise.
(read_debug_ranges): Likewise.
(find_line): Updated.

* ecoff.c (bfd_debug_section): Add compress_status and
compressed_size.

* elf.c (_bfd_elf_make_section_from_shdr): Call
bfd_is_section_compressed to check if a DWARF debug section is
compressed.  Call bfd_init_section_compress_status or
bfd_init_section_decompress_status if needed.

* elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
with bfd_get_full_section_contents.
* merge.c (_bfd_add_merge_section): Likewise.
* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
* simple.c (bfd_simple_get_relocated_section_contents): Likewise.

* elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
BFD_DECOMPRESS.
(TARGET_LITTLE_SYM): Likewise.

* libbfd-in.h (dwarf_debug_section): New.
(dwarf_debug_sections): Likewise.

* libbfd.c (_bfd_generic_get_section_contents): Issue an error
when getting contents on compressed/decompressed section.

* section.c (COMPRESS_SECTION_NONE): New.
(COMPRESS_SECTION_DONE): Likewise.
(DECOMPRESS_SECTION_SIZED): Likewise.
(BFD_FAKE_SECTION): Add compress_status and compressed_size.
(bfd_malloc_and_get_section): Replace bfd_get_section_contents
with bfd_get_full_section_contents.

* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.

binutils/

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

* addr2line.c (process_file): Set BFD_DECOMPRESS.

* objcopy.c (do_debug_sections): New.
(OPTION_COMPRESS_DEBUG_SECTIONS): New.
(OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise.
(copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
OPTION_DECOMPRESS_DEBUG_SECTIONS.
(copy_usage): Add --compress-debug-sections and
--decompress-debug-sections.
(copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
(copy_section): Replace bfd_get_section_contents with
bfd_get_full_section_contents.
(copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
OPTION_DECOMPRESS_DEBUG_SECTIONS.  Check do_debug_sections to
rename DWARF debug sections.

* objdump.c (load_specific_debug_section): Replace
bfd_get_section_contents with bfd_get_full_section_contents.
Remove bfd_uncompress_section_contents.
(dump_section): Replace bfd_get_section_contents with
bfd_get_full_section_contents.
(display_file): Set BFD_DECOMPRESS if needed.

* readelf.c (uncompress_section_contents): Set buffer to NULL
to indiate decompression failure.
(load_specific_debug_section): Always call
uncompress_section_contents.

* doc/binutils.texi: Document --compress-debug-sections and
--decompress-debug-sections.

binutils/testsuite/

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

* binutils-all/compress.exp: New.
* binutils-all/dw2-1.S: Likewise.
* binutils-all/dw2-2.S: Likewise.
* binutils-all/libdw2-compressed.out: Likewise.
* binutils-all/libdw2.out: Likewise.

gas/

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

* write.c (compress_debug): Optimize section flags check.

gas/testsuite/

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

* elf/dwarf2-1.s: Replace .zdebug_abbrev section with
.debug_abbrev section.
* elf/dwarf2-2.3: Likewise.

* elf/dwarf2-1.d: Pass --compress-debug-sections to assembler.
Updated.
* elf/dwarf2-2.d: Likewise.

* gas/i386/i386.exp: Remove xfail on dw2-compress-2 and
x86-64-dw2-compress-2.

ld/

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

* ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
bfd_openr returns.
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.

* scripttempl/elf.sc: Include compressed DWARF debug sections.

ld/testsuite/

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

* ld-elf/compress.exp: New.
* ld-elf/compress1.s: Likewise.
* ld-elf/compress1a.d: Likewise.
* ld-elf/compress1b.d: Likewise.
* ld-elf/compress1c.d: Likewise.

14 years ago PR binutils/12058
Nick Clifton [Fri, 29 Oct 2010 08:47:02 +0000 (08:47 +0000)]
    PR binutils/12058
        * ar.c (usage): Revert previous change.  Describe how 's' can be
        used as a command letter.
        * doc/binutils.texi (ar cmdline): Describe how 's' can be used as
        a command letter.

14 years ago * gprof.texi (Deprecated Options): Move introduction out of the table.
Alan Modra [Fri, 29 Oct 2010 01:53:19 +0000 (01:53 +0000)]
* gprof.texi (Deprecated Options): Move introduction out of the table.

14 years agobfd:
Joseph Myers [Fri, 29 Oct 2010 00:15:59 +0000 (00:15 +0000)]
bfd:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* elf32-tic6x.c (elf32_tic6x_merge_attributes): Check for mismatch
of DSBT attributes.

binutils:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT.

gas:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* config/tc-tic6x.c (OPTION_MDSBT, OPTION_MNO_DSBT): New enum
values.
(md_longopts): Add mdsbt and mno-dsbt.
(tic6x_dsbt): New static variable.
(md_parse_option): Handle OPTION_MDSBT and OPTION_MNO_DSBT.
(md_show_usage): Output help text for -mdsbt and -mno-dsbt.
(TAG): Add comma at the end.
(tic6x_set_attributes): Set Tag_ABI_DSBT.
* doc/as.texinfo: Document -mdsbt and -mno-dsbt.
* doc/c-tic6x.texi (TIC6X Options): Likewise.
(TIC6X Directives): Mention Tag_ABI_DSBT.

gas/testsuite:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* gas/tic6x/attr-dsbt-directive-1.d,
gas/tic6x/attr-dsbt-directive-1.s,
gas/tic6x/attr-dsbt-directive-2.d,
gas/tic6x/attr-dsbt-directive-2.s,
gas/tic6x/attr-dsbt-opts-mdsbt.d,
gas/tic6x/attr-dsbt-opts-mno-dsbt.d: New tests.

include/elf:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* tic6x-attrs.h (Tag_ABI_DSBT): New.

ld/testsuite:
2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* ld-tic6x/attr-dsbt-0.s, ld-tic6x/attr-dsbt-00.d,
ld-tic6x/attr-dsbt-01.d, ld-tic6x/attr-dsbt-1.s,
ld-tic6x/attr-dsbt-10.d, ld-tic6x/attr-dsbt-11.d: New tests.

14 years ago*** empty log message ***
gdbadmin [Fri, 29 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 28 Oct 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago PR binutils/12058
Nick Clifton [Thu, 28 Oct 2010 14:11:29 +0000 (14:11 +0000)]
    PR binutils/12058
        * ar.c (usage): Remove spurious 's' from list of accepted command
        letters.

14 years ago * mips-opc.c (mips_builtin_opcodes): Fix formatting of "ld".
Maciej W. Rozycki [Thu, 28 Oct 2010 13:49:51 +0000 (13:49 +0000)]
* mips-opc.c (mips_builtin_opcodes): Fix formatting of "ld".

14 years ago * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
Alan Modra [Thu, 28 Oct 2010 12:06:27 +0000 (12:06 +0000)]
* ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.

14 years agoAdd directory section for info document.
Alan Modra [Thu, 28 Oct 2010 11:40:26 +0000 (11:40 +0000)]
Add directory section for info document.

14 years agold/testsuite/
Thomas Schwinge [Thu, 28 Oct 2010 09:10:08 +0000 (09:10 +0000)]
ld/testsuite/

* ld-scripts/script.exp: Sort all filename globs.

gas/testsuite/

* gas/iq2000/load-hazards.exp: Sort all filename globs.
* gas/iq2000/yield.exp: Likewise.
* gas/mt/errors.exp: Likewise.

14 years ago * ld-elfvers/vers.exp: Enable test for powerpc64.
Alan Modra [Thu, 28 Oct 2010 09:08:35 +0000 (09:08 +0000)]
* ld-elfvers/vers.exp: Enable test for powerpc64.
* ld-elfweak/elfweak.exp: Likewise
* ld-shared/shared.exp: Likewise.  Xfail non-pic dso tests for ppc64.
* ld-elfvers/vers1.dsym, * ld-elfvers/vers1.sym,
* ld-elfvers/vers2.dsym, * ld-elfvers/vers3.dsym,
* ld-elfvers/vers4.sym, * ld-elfvers/vers4a.dsym,
* ld-elfvers/vers4a.sym, * ld-elfvers/vers6.dsym,
* ld-elfvers/vers6.sym, * ld-elfvers/vers7a.dsym,
* ld-elfvers/vers7a.sym, * ld-elfvers/vers9.dsym,
* ld-elfvers/vers9.sym, * ld-elfvers/vers15.dsym,
* ld-elfvers/vers15.sym, * ld-elfvers/vers16.dsym,
* ld-elfvers/vers16a.dsym, * ld-elfvers/vers17.dsym,
* ld-elfvers/vers18.dsym, * ld-elfvers/vers18.sym,
* ld-elfvers/vers19.dsym, * ld-elfvers/vers20.dsym,
* ld-elfvers/vers21.dsym, * ld-elfvers/vers21.sym,
* ld-elfvers/vers22.dsym, * ld-elfvers/vers22a.dsym,
* ld-elfvers/vers22a.sym, * ld-elfvers/vers22b.dsym,
* ld-elfvers/vers23.dsym, * ld-elfvers/vers23a.dsym,
* ld-elfvers/vers23a.sym, * ld-elfvers/vers23b.dsym,
* ld-elfvers/vers25a.dsym, * ld-elfvers/vers26a.dsym,
* ld-elfvers/vers27a.dsym, * ld-elfvers/vers27d.dsym,
* ld-elfvers/vers27d.sym, * ld-elfvers/vers27d4.dsym,
* ld-elfvers/vers28b.dsym, * ld-elfvers/vers28c.dsym,
* ld-elfvers/vers29.dsym, * ld-elfvers/vers30.dsym,
* ld-elfvers/vers31.dsym, * ld-elfvers/vers32a.dsym,
* ld-elfvers/vers32b.dsym, * ld-elfvers/vers32c.dsym,
* ld-elfweak/dso.dsym, * ld-elfweak/dsodata.dsym,
* ld-elfweak/dsow.dsym, * ld-elfweak/dsowdata.dsym,
* ld-elfweak/strong.sym, * ld-elfweak/strongcomm.sym,
* ld-elfweak/strongdata.sym, * ld-elfweak/weak.dsym,
* ld-elfweak/weakdata.dsym: Relax whitespace matching, tighten
non-whitespace matching.  Match powerpc64 functions in .opd section.
* ld-shared/elf-offset.ld: Place powerpc64 .toc sections.

14 years ago * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
Alan Modra [Thu, 28 Oct 2010 08:38:45 +0000 (08:38 +0000)]
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
--no-undefined-version, don't report dot sym versions added by ld.

14 years ago * ld-plugin/plugin.exp (libs): Remove $LIBS.
Alan Modra [Thu, 28 Oct 2010 08:16:34 +0000 (08:16 +0000)]
* ld-plugin/plugin.exp (libs): Remove $LIBS.

14 years ago2010-10-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 28 Oct 2010 07:37:45 +0000 (07:37 +0000)]
2010-10-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (md_begin): Only add to hash table if cpu and
mode mask fit.

2010-10-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-opc.txt: cfxr, cfdr and cfer z900 -> g5.

14 years ago * ldlang.h (ldlang_add_undef): Add cmdline param.
Alan Modra [Thu, 28 Oct 2010 06:45:33 +0000 (06:45 +0000)]
* ldlang.h (ldlang_add_undef): Add cmdline param.
* ldlang.c (undef_from_cmdline): New var.
(ldlang_add_undef): Add cmdline param.  Set undef_from_cmdline.
(lang_end): Really require -e or -u from command line on
relocatable --gc-sections.
* ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
* ldgram.y (extern_name_list_body): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.

14 years ago * ld-elf/sec-to-seg.exp (B_test_same_seg): Clear for i960,
Alan Modra [Thu, 28 Oct 2010 06:27:55 +0000 (06:27 +0000)]
* ld-elf/sec-to-seg.exp (B_test_same_seg): Clear for i960,
microblaze, moxie, and mt.

14 years ago * ld-elf/flags1.s: Use arm compatible .type syntax.
Alan Modra [Thu, 28 Oct 2010 06:21:49 +0000 (06:21 +0000)]
* ld-elf/flags1.s: Use arm compatible .type syntax.
* ld-elf/flags1.d: Remove arm and xscale xfails, add i960, ip2k,
moxie, mt.

14 years ago * gas/elf/elf.exp (groupautob): Don't run on xtensa.
Alan Modra [Thu, 28 Oct 2010 06:12:16 +0000 (06:12 +0000)]
* gas/elf/elf.exp (groupautob): Don't run on xtensa.
* gas/elf/groupautoa.d: Change test name.
* gas/elf/groupautob.d: Change test name.

14 years ago * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
Alan Modra [Thu, 28 Oct 2010 06:00:13 +0000 (06:00 +0000)]
* readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
(is_32bit_pcrel_reloc): Support microblaze.

14 years ago * config/tc-d30v.c (d30v_cons_align): Don't align .eh_frame.
Alan Modra [Thu, 28 Oct 2010 05:34:55 +0000 (05:34 +0000)]
* config/tc-d30v.c (d30v_cons_align): Don't align .eh_frame.

14 years ago2010-10-28 Hui Zhu <teawater@gmail.com>
Hui Zhu [Thu, 28 Oct 2010 03:38:36 +0000 (03:38 +0000)]
2010-10-28  Hui Zhu  <teawater@gmail.com>

* tracepoint.c (trace_save): Change utp->actions to
utp->step_actions.

14 years ago*** empty log message ***
gdbadmin [Thu, 28 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 27 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago2010-10-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Wed, 27 Oct 2010 15:02:52 +0000 (15:02 +0000)]
2010-10-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* ld-s390/tlsbin.dd: bc 0,0 -> nop 0 and bcr 0,%r0 -> nopr %r0.

14 years ago2010-10-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Wed, 27 Oct 2010 15:01:32 +0000 (15:01 +0000)]
2010-10-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/all/gas.exp: Don't run byte test on s390.

14 years ago*** empty log message ***
gdbadmin [Wed, 27 Oct 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 26 Oct 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago * gas/i386/x86-64-relax-1.s: Use .balign. not .align.
Alan Modra [Tue, 26 Oct 2010 22:38:57 +0000 (22:38 +0000)]
* gas/i386/x86-64-relax-1.s: Use .balign. not .align.
* gas/i386/x86-64-relax-1.d: Remove label match, match pe output.

14 years ago * gas/i386/relax-1.s: Use .p2align, not .align.
Alan Modra [Tue, 26 Oct 2010 22:18:38 +0000 (22:18 +0000)]
* gas/i386/relax-1.s: Use .p2align, not .align.
* gas/i386/relax-2.s: Likewise.
* gas/i386/relax-1.d: Remove label match.
* gas/i386/relax-2.d: Likewise.  Correct test name.

14 years agomerge from gcc
DJ Delorie [Tue, 26 Oct 2010 19:18:21 +0000 (19:18 +0000)]
merge from gcc

14 years agofix typo in _FILE_OFFSET_BITS comment
Joel Brobecker [Tue, 26 Oct 2010 18:08:04 +0000 (18:08 +0000)]
fix typo in _FILE_OFFSET_BITS comment

This fixes a typo that MichaelS noticed in a patch I submitted and
forgot to fix.

gdb/ChangeLog:

* (_FILE_OFFSET_BITS): Fix typo in comment.

14 years agoFix build failures with python support on sparc-solaris
Joel Brobecker [Tue, 26 Oct 2010 18:06:34 +0000 (18:06 +0000)]
Fix build failures with python support on sparc-solaris

There were two types of errors, mostly compiler warnings:

  1. _FILE_OFFSET_BITS being redefined in pyconfig.h;
     This is a problem we're familiar with, having seen similar
     issues on GNU/Linux systems. I used a similar solution.

  2. GCC 4.5 complains that calls to PyEval_InitThreads and
     PyEval_ReleaseLock have no effect.  This is because our Python
     is built without thread support, leading us to use the dummy
     #define in python-internal.h which just gets replaced by `0'.
     Since this function returns void (checked versions 2.4 and 2.7),
     I simply removed the 0.

gdb/ChangeLog:

        python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
        (PyEval_InitThreads): Remove duplicate. Define as nothing.
        (PyEval_ReleaseLock): Define as nothing.

14 years agoreplace strcmp by FILENAME_CMP for filename comparison
Joel Brobecker [Tue, 26 Oct 2010 17:59:50 +0000 (17:59 +0000)]
replace strcmp by FILENAME_CMP for filename comparison

gdb/ChangeLog:

        * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
        by call to FILENAME_CMP.

14 years ago * i386/relax-1.d: Generalize regexes a bit.
Dave Korn [Tue, 26 Oct 2010 17:36:05 +0000 (17:36 +0000)]
* i386/relax-1.d: Generalize regexes a bit.
* i386/relax-2.d: Likewise.

14 years agoavoid assignment inside if condition (dictionary.c)
Joel Brobecker [Tue, 26 Oct 2010 14:50:13 +0000 (14:50 +0000)]
avoid assignment inside if condition (dictionary.c)

This change gets rid of an ARI warning which was recently introduced
by one of our changes.

gdb/ChangeLog:

        * dictionary.c (dict_hash): Move assignment out of if condition.

14 years ago * po/ja.po: Updated Japanese transaltion.
Nick Clifton [Tue, 26 Oct 2010 10:56:54 +0000 (10:56 +0000)]
    * po/ja.po: Updated Japanese transaltion.

14 years ago * config/obj-coff.c (coff_format_ops): Fix typo.
Alan Modra [Tue, 26 Oct 2010 03:44:39 +0000 (03:44 +0000)]
* config/obj-coff.c (coff_format_ops): Fix typo.

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

14 years agodaily update
Alan Modra [Mon, 25 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agogas/
Richard Sandiford [Mon, 25 Oct 2010 21:15:14 +0000 (21:15 +0000)]
gas/
* config/tc-mips.c (macro2): Delete.

14 years ago2010-10-25 Chao-ying Fu <fu@mips.com>
Chao-ying Fu [Mon, 25 Oct 2010 18:11:42 +0000 (18:11 +0000)]
2010-10-25  Chao-ying Fu  <fu@mips.com>

* gas/mips/mips32-dsp.d, gas/mips/mips32-dsp.s: Add madd, maddu, msub,
msubu, mult, multu.

14 years ago2010-10-25 Chao-ying Fu <fu@mips.com>
Chao-ying Fu [Mon, 25 Oct 2010 18:09:10 +0000 (18:09 +0000)]
2010-10-25  Chao-ying Fu  <fu@mips.com>

* mips-opc.c (madd, maddu, msub, msubu, mult, multu): Change D33 to D32.

14 years ago bfd/
Daniel Jacobowitz [Mon, 25 Oct 2010 15:54:16 +0000 (15:54 +0000)]
bfd/
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Always call
_bfd_clear_contents.  Pass it the input section.
* libbfd-in.h (_bfd_clear_contents): Add input_section argument.
* libbfd.h: Regenerate.
* reloc.c (_bfd_clear_contents): Take input_section argument.
Use non-zero for .debug_ranges.
(bfd_generic_get_relocated_section_conten): Update _bfd_clear_contents
call.

* elf32-arm.c (elf32_arm_relocate_section): Use
RELOC_AGAINST_DISCARDED_SECTION.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mep.c (mep_elf_relocate_section): Likewise.
* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-mt.c (mt_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-rx.c (rx_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-spu.c (spu_elf_relocate_section): Likewise.
* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.

ld/testsuite/
* ld-discard/zero-range.d, ld-discard/zero-range.s: New files.

14 years ago bfd/
Nathan Sidwell [Mon, 25 Oct 2010 15:33:54 +0000 (15:33 +0000)]
bfd/
* elf32-tic6x.c: Add attribution.

gas/
* config/tc-tic6x.c: Add attribution.

opcodes/
* tic6x-dis.c: Add attribution.

14 years ago * obj.h (struct format_ops): Add adjust_symtab.
Alan Modra [Mon, 25 Oct 2010 12:38:42 +0000 (12:38 +0000)]
* obj.h (struct format_ops): Add adjust_symtab.
* config/obj-multi.h (obj_adjust_symtab): Define.
* config/obj-aout.c (aout_format_ops): Init new field.
* config/obj-coff.c (coff_format_ops): Likewise.
* config/obj-ecoff.c (ecoff_format_ops): Likewise.
* config/obj-elf.c (elf_format_ops): Likewise.

14 years agoAdd a new testcase for PR gas/12049.
H.J. Lu [Mon, 25 Oct 2010 09:17:12 +0000 (09:17 +0000)]
Add a new testcase for PR gas/12049.

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

PR gas/12049
* gas/i386/i386.exp: Run relax-1 and relax-2 for all 32bit
targets.  Run x86-64-relax-1.

* gas/i386/x86-64-relax-1.d: New.
* gas/i386/x86-64-relax-1.s: Likewise.

14 years ago * elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
Alan Modra [Mon, 25 Oct 2010 08:23:24 +0000 (08:23 +0000)]
* elf32-arm.c (find_stub_size_and_template): Avoid uninitialized
var warning at -O3.

14 years ago * opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
Alan Modra [Mon, 25 Oct 2010 07:02:19 +0000 (07:02 +0000)]
* opncls.c (bfd_alloc, bfd_zalloc): Don't mark internal.
* libbfd-in.h (bfd_alloc, bfd_zalloc): Don't declare here.
* libbfd.h: Regenerate
* bfd-in2.h: Regenerate.

14 years ago * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
Alan Modra [Mon, 25 Oct 2010 06:22:50 +0000 (06:22 +0000)]
* plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
Formatting.

14 years ago * opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
Alan Modra [Mon, 25 Oct 2010 06:14:30 +0000 (06:14 +0000)]
* opncls.c (_bfd_id_counter): Rename to bfd_id_counter.
(bfd_reserved_id_counter, bfd_use_reserved_id): New vars.
(_bfd_new_bfd): Use negative id when bfd_use_reserved_id.
(bfd_create): Doc fix.
* bfd-in2.h: Regenerate.

14 years ago PR gas/12049
Alan Modra [Mon, 25 Oct 2010 03:03:18 +0000 (03:03 +0000)]
PR gas/12049
* write.c (relax_frag): Don't allow forward branches to temporarily
becomde backward branches.

14 years ago*** empty log message ***
gdbadmin [Mon, 25 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 24 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago * gas/mips/mips.exp: Simplify enabling of MIPS16 testing.
Maciej W. Rozycki [Sun, 24 Oct 2010 10:54:31 +0000 (10:54 +0000)]
* gas/mips/mips.exp: Simplify enabling of MIPS16 testing.

14 years ago * gas/mips/at-1.d: Handle ECOFF relocations.
Maciej W. Rozycki [Sun, 24 Oct 2010 10:43:40 +0000 (10:43 +0000)]
* gas/mips/at-1.d: Handle ECOFF relocations.
* gas/mips/eret-1.d: Handle ECOFF.
* gas/mips/eret-2.d: Likewise.
* gas/mips/eret-3.d: Likewise.
* gas/mips/mips.exp: Only run "aent" for ELF.

14 years ago * gas/mips/ld.s: Adjust to let SD, L.D, S.D, LDC1 and SDC1
Maciej W. Rozycki [Sun, 24 Oct 2010 10:33:10 +0000 (10:33 +0000)]
* gas/mips/ld.s: Adjust to let SD, L.D, S.D, LDC1 and SDC1
macros to be tested, according to the "tsd", "tl_d", "ts_d",
"tldc1" and "tsdc1" symbols.
* gas/mips/sd.d: New test.
* gas/mips/ecoff@sd.d: Likewise, ECOFF version.
* gas/mips/mips1@ecoff@sd.d: Likewise, MIPS I/ECOFF version.
* gas/mips/r3000@ecoff@sd.d: Likewise, R3000/ECOFF version.
* gas/mips/r3900@ecoff@sd.d: Likewise, R3900/ECOFF version.
* gas/mips/mips2@ecoff@sd.d: Likewise, MIPS II/ECOFF version.
* gas/mips/mips32@ecoff@sd.d: Likewise, MIPS32/ECOFF version.
* gas/mips/mips32r2@ecoff@sd.d: Likewise, MIPS32r2/ECOFF
version.
* gas/mips/sd-forward.d: New test.
* gas/mips/ecoff@sd-forward.d: Likewise, ECOFF version.
* gas/mips/mips1@ecoff@sd-forward.d: Likewise, MIPS I/ECOFF
version.
* gas/mips/r3000@ecoff@sd-forward.d: Likewise, R3000/ECOFF
version.
* gas/mips/r3900@ecoff@sd-forward.d: Likewise, R3900/ECOFF
version.
* gas/mips/mips2@ecoff@sd-forward.d: Likewise, MIPS II/ECOFF
version.
* gas/mips/mips32@ecoff@sd-forward.d: Likewise, MIPS32/ECOFF
version.
* gas/mips/mips32r2@ecoff@sd-forward.d: Likewise, MIPS32r2/ECOFF
version.
* gas/mips/l_d.d: New test.
* gas/mips/mips1@l_d.d: Likewise, MIPS I version.
* gas/mips/r3000@l_d.d: Likewise, R3000 version.
* gas/mips/r3900@l_d.d: Likewise, R3900 version.
* gas/mips/l_d-forward.d: New test.
* gas/mips/mips1@l_d-forward.d: Likewise, MIPS I version.
* gas/mips/r3000@l_d-forward.d: Likewise, R3000 version.
* gas/mips/r3900@l_d-forward.d: Likewise, R3900 version.
* gas/mips/s_d.d: New test.
* gas/mips/mips1@s_d.d: Likewise, MIPS I version.
* gas/mips/r3000@s_d.d: Likewise, R3000 version.
* gas/mips/r3900@s_d.d: Likewise, R3900 version.
* gas/mips/s_d-forward.d: New test.
* gas/mips/mips1@s_d-forward.d: Likewise, MIPS I version.
* gas/mips/r3000@s_d-forward.d: Likewise, R3000 version.
* gas/mips/r3900@s_d-forward.d: Likewise, R3900 version.
* gas/mips/ldc1.d: New test.
* gas/mips/ldc1-forward.d: Likewise.
* gas/mips/sdc1.d: Likewise.
* gas/mips/sdc1-forward.d: Likewise.
* gas/mips/sd-n32.d: Likewise.
* gas/mips/sd-n64.d: Likewise.
* gas/mips/sd-f-n32.d: Likewise.
* gas/mips/sd-f-n64.d: Likewise.
* gas/mips/l_d-n32.d: Likewise.
* gas/mips/l_d-n64.d: Likewise.
* gas/mips/l_d-f-n32.d: Likewise.
* gas/mips/l_d-f-n64.d: Likewise.
* gas/mips/s_d-n32.d: Likewise.
* gas/mips/s_d-n64.d: Likewise.
* gas/mips/s_d-f-n32.d: Likewise.
* gas/mips/s_d-f-n64.d: Likewise.
* gas/mips/ldc1-n32.d: Likewise.
* gas/mips/ldc1-n64.d: Likewise.
* gas/mips/ldc1-f-n32.d: Likewise.
* gas/mips/ldc1-f-n64.d: Likewise.
* gas/mips/sdc1-n32.d: Likewise.
* gas/mips/sdc1-n64.d: Likewise.
* gas/mips/sdc1-f-n32.d: Likewise.
* gas/mips/sdc1-f-n64.d: Likewise.
* gas/mips/mips.exp: Run the new tests.

14 years ago * gas/mips/ld.s: Adjust to let data objects be only
Maciej W. Rozycki [Sun, 24 Oct 2010 10:19:02 +0000 (10:19 +0000)]
* gas/mips/ld.s: Adjust to let data objects be only
defined/declared (as appropriate) at the end of assembly, based
on the presence or not of the "forward" symbol.
* gas/mips/ld-forward.d: New test.
* gas/mips/mips1@ld-forward.d: Likewise. MIPS I version.
* gas/mips/r3000@ld-forward.d: Likewise, R3000 version.
* gas/mips/ecoff@ld-forward.d: Likewise, ECOFF version.
* gas/mips/r3900@ecoff@ld-forward.d: Likewise, R3900/ECOFF
version.
* gas/mips/mips2@ecoff@ld-forward.d: Likewise, MIPS II/ECOFF
version.
* gas/mips/mips32@ecoff@ld-forward.d: Likewise, MIPS32/ECOFF
version.
* gas/mips/mips32r2@ecoff@ld-forward.d: Likewise, MIPS32r2/ECOFF
version.
* gas/mips/ld-n32-forward.d: New test.
* gas/mips/ld-n64-forward.d: Likewise.
* gas/mips/mips.exp: Run the new tests.

14 years ago * gas/mips/ld-n32.d: New test.
Maciej W. Rozycki [Sun, 24 Oct 2010 10:08:56 +0000 (10:08 +0000)]
* gas/mips/ld-n32.d: New test.
* gas/mips/ld-n64.d: Likewise.
* gas/mips/mips.exp: Run the new tests.

14 years ago * gas/mips/ld.d: Rename to...
Maciej W. Rozycki [Sun, 24 Oct 2010 10:06:25 +0000 (10:06 +0000)]
* gas/mips/ld.d: Rename to...
* gas/mips/mips1@ld.d: ... this.
* gas/mips/ld-ilocks.d: Rename to...
* gas/mips/ld.d: ... this.
* gas/mips/r3000@ld.d: New test, R3000 version.
* gas/mips/ecoff@ld.d: Likewise, ECOFF version.
* gas/mips/r3900@ecoff@ld.d: Likewise, R3900/ECOFF version.
* gas/mips/mips2@ecoff@ld.d: Likewise, MIPS II/ECOFF version.
* gas/mips/mips32@ecoff@ld.d: Likewise, MIPS32/ECOFF version.
* gas/mips/mips32r2@ecoff@ld.d: Likewise, MIPS32r2/ECOFF version.
* gas/mips/mips.exp: Remove "ld-ilocks" and run "ld" over all
architectures matching "mips1".

14 years ago * gas/mips/mips.exp (run_dump_test_arch): Check for the presence
Maciej W. Rozycki [Sun, 24 Oct 2010 09:59:20 +0000 (09:59 +0000)]
* gas/mips/mips.exp (run_dump_test_arch): Check for the presence
of a file-format-specific test too.
(run_dump_test_arches): Pull elf, ecoff and aout variables for
use by the above.

14 years ago * gas/mips/ld.s: Remove "l.d", "s.d" and "sd" instructions.
Maciej W. Rozycki [Sun, 24 Oct 2010 07:34:10 +0000 (07:34 +0000)]
* gas/mips/ld.s: Remove "l.d", "s.d" and "sd" instructions.
* gas/mips/ld.d: Adjust accordingly.
* gas/mips/ld-ilocks.d: Likewise

14 years ago * gas/mips/ld.s: Remove ".set mips1".
Maciej W. Rozycki [Sun, 24 Oct 2010 07:31:40 +0000 (07:31 +0000)]
* gas/mips/ld.s: Remove ".set mips1".
* gas/mips/ld.d: Remove "-march=r4000" and "-mmips:4000" from
gas/objdump options.
* gas/mips/ld-ilocks.d: Add "-32" to gas options.
* gas/mips/mips.exp: Run the two cases with run_dump_test_arches.

14 years ago * gas/mips/ld.s: Remove MIPS III bits.
Maciej W. Rozycki [Sun, 24 Oct 2010 07:29:01 +0000 (07:29 +0000)]
* gas/mips/ld.s: Remove MIPS III bits.
* gas/mips/ld.d: Adjust accordingly.
* gas/mips/ld-ilocks.d: Likewise.
* gas/mips/ld-ilocks-addr32.d: Remove file.
* gas/mips/mips.exp: Adjust accordingly.

14 years ago * gas/mips/ld.d: Spell out reloc names.
Maciej W. Rozycki [Sun, 24 Oct 2010 07:22:22 +0000 (07:22 +0000)]
* gas/mips/ld.d: Spell out reloc names.
* gas/mips/ld-ilocks.d: Likewise.
* gas/mips/ld-ilocks-addr32.d: Likewise.

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

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

14 years ago2010-10-23 Mark Mitchell <mark@codesourcery.com>
Mark Mitchell [Sat, 23 Oct 2010 18:05:10 +0000 (18:05 +0000)]
2010-10-23  Mark Mitchell  <mark@codesourcery.com>

* config/obj-elf.c (elf_adjust_symtab): New.  Move group section
processing here from elf_frob_file.  Ensure that group signature
symbols have the name of the group.
(elf_frob_file): Move group section processing to
elf_adjust_symtab.
* config/obj-elf.h (elf_adjust_symtab): Declare.
(obj_adjust_symtab): Define.
* config/tc-arm.c (arm_adjust_symtab): Call elf_adjust_symtab.

2010-10-23  Mark Mitchell  <mark@codesourcery.com>

* gas/elf/elf.exp: Add group0c test.
* gas/elf/group0c.d: New.
* gas/elf/group0a.d: Expect ".group" for the name of group
sections.
* gas/elf/group0b.d: Likewise.
* gas/elf/group1a.d: Likewise.
* gas/elf/group1b.d: Likewise.
* gas/elf/groupautoa.d: Likewise.
* gas/elf/groupautob.d: Likewise.
* gas/elf/section4.d: Likewise.
* gas/ia64/group-1.d: Likewise.  Adjust hard-coded constants.

2010-10-22  Mark Mitchell  <mark@codesourcery.com>

* binutils-all/group-5.d: Expect ".group" for the name of group
sections.
* binutils-all/strip-2.d: Likewise.

2010-10-23  Mark Mitchell  <mark@codesourcery.com>

* ld-elf/group10.d: Expect ".group" for the name of group
sections.
* ld-elf/group2.d: Likewise.
* ld-elf/group7.d: Likewise.

14 years agomerge from gcc
DJ Delorie [Sat, 23 Oct 2010 04:01:25 +0000 (04:01 +0000)]
merge from gcc

14 years ago*** empty log message ***
gdbadmin [Sat, 23 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 22 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago ld:
Rainer Orth [Fri, 22 Oct 2010 12:08:32 +0000 (12:08 +0000)]
ld:
* emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
elf32-sparc-sol2.
* emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
elf64-sparc-sol2.

gas:
* config/tc-sparc.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define as
elf32-sparc-sol2.
(ELF64_TARGET_FORMAT): Define as elf64-sparc-sol2.

bfd:
* elfxx-sparc.c (tpoff): Define bed, static_tls_size.
Consider static_tls_alignment.

* elf32-sparc.c (TARGET_BIG_SYM): Redefine to
bfd_elf32_sparc_sol2_vec.
(TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
(elf32_bed): Redefine to elf32_sparc_sol2_bed.
(elf_backend_static_tls_alignment): Redefine to 8.
Include elf32-target.h.
(elf_backend_static_tls_alignment): Undef again for VxWorks.

* elf64-sparc.c (TARGET_BIG_SYM): Redefine to
bfd_elf64_sparc_sol2_vec.
(TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
(ELF_OSABI): Undef.
(elf64_bed): Redefine to elf64_sparc_sol2_bed.
(elf_backend_static_tls_alignment): Redefine to 16.
Include elf64-target.h.

* config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
Set targ_defvec to bfd_elf32_sparc_sol2_vec.
[BFD64] (sparc-*-solaris2*): Set targ_defvec to
bfd_elf32_sparc_sol2_vec.
Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
targ_selvecs.

* configure.in: Handle bfd_elf32_sparc_sol2_vec,
bfd_elf64_sparc_sol2_vec.
* configure: Regenerate.

* targets.c (bfd_elf32_sparc_sol2_vec): Declare.
(bfd_elf64_sparc_sol2_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
bfd_elf64_sparc_sol2_vec.

14 years ago * gas/all/fwdexp.d: Also look for f8ffffff.
Nick Clifton [Fri, 22 Oct 2010 08:13:59 +0000 (08:13 +0000)]
    * gas/all/fwdexp.d: Also look for f8ffffff.
        * gas/arm/msr-reg-thumb.d: Skip for non-ELF based targets.
        * gas/arm/vldr.d: Likewise.
        * gas/arm/thumb2_ldmstm.d: Allow for extra NOPs at the end of the disassembly.
        * gas/cfi/cfi.exp (cfi-arm-1): Only run for ELF based ARM targets.

14 years ago*** empty log message ***
gdbadmin [Fri, 22 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * Makefile.am (CLEANFILES): Add stamp-lm32. Sort.
Alan Modra [Thu, 21 Oct 2010 23:50:57 +0000 (23:50 +0000)]
* Makefile.am (CLEANFILES): Add stamp-lm32.  Sort.
* Makefile.in: Regenerate.

14 years ago * Makefile.in (install): Remove dependency of install-only and
Jie Zhang [Thu, 21 Oct 2010 23:50:46 +0000 (23:50 +0000)]
* Makefile.in (install): Remove dependency of install-only and
recursively invoke make for install-only.
* data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
(install): Pass FLAGS_TO_PASS when recursively make install-only.

gdbserver/
* Makefile.in: Add FLAGS_TO_PASS variable.
(install): Remove dependency of install-only and recursively
invoke make for install-only.

14 years ago * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
Alan Modra [Thu, 21 Oct 2010 23:28:06 +0000 (23:28 +0000)]
* ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
output when section has no contents.
(build_link_order <lang_reloc_statement_enum>): Likewise.

14 years agodaily update
Alan Modra [Thu, 21 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agobfd:
Joseph Myers [Thu, 21 Oct 2010 21:16:54 +0000 (21:16 +0000)]
bfd:
* elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
attribute renaming.
(elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".

binutils:
* readelf.c (display_tic6x_attribute): Update for attribute
renaming.

gas:
* config/tc-tic6x.c (tic6x_arch_attribute, tic6x_arches,
md_assemble, tic6x_set_attributes): Update for attribute renaming.
* doc/c-tic6x.texi: Update for attribute renaming.

gas/testsuite:
* gas/tic6x/attr-arch-directive-1.d,
gas/tic6x/attr-arch-directive-2.d,
gas/tic6x/attr-arch-directive-3.d,
gas/tic6x/attr-arch-directive-4.d,
gas/tic6x/attr-arch-directive-4.s,
gas/tic6x/attr-arch-directive-5.d,
gas/tic6x/attr-arch-directive-5.s,
gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d,
gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d,
gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d,
gas/tic6x/attr-arch-opts-none-1.d,
gas/tic6x/attr-arch-opts-none-2.d,
gas/tic6x/attr-arch-opts-override-1.d,
gas/tic6x/attr-arch-opts-override-2.d: Update for attribute
renaming and renumbering.

include/elf:
* tic6x-attrs.h (Tag_C6XABI_Tag_CPU_arch): Change to Tag_ISA,
value 4.
* tic6x.h (Values for Tag_C6XABI_Tag_CPU_arch): Rename for
attribute renaming.

ld:
* emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
.c6xabi.attributes, not __TI_build_attributes.

ld/testsuite:
* ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d,
ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d,
ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d,
ld-tic6x/attr-arch-c64x+-c62x.d, ld-tic6x/attr-arch-c64x+-c64x+.d,
ld-tic6x/attr-arch-c64x+-c64x.d, ld-tic6x/attr-arch-c64x+-c674x.d,
ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d,
ld-tic6x/attr-arch-c64x-c62x.d, ld-tic6x/attr-arch-c64x-c64x+.d,
ld-tic6x/attr-arch-c64x-c64x.d, ld-tic6x/attr-arch-c64x-c674x.d,
ld-tic6x/attr-arch-c64x-c67x+.d, ld-tic6x/attr-arch-c64x-c67x.d,
ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d,
ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d,
ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d,
ld-tic6x/attr-arch-c67x+-c62x.d, ld-tic6x/attr-arch-c67x+-c64x+.d,
ld-tic6x/attr-arch-c67x+-c64x.d, ld-tic6x/attr-arch-c67x+-c674x.d,
ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d,
ld-tic6x/attr-arch-c67x-c62x.d, ld-tic6x/attr-arch-c67x-c64x+.d,
ld-tic6x/attr-arch-c67x-c64x.d, ld-tic6x/attr-arch-c67x-c674x.d,
ld-tic6x/attr-arch-c67x-c67x+.d, ld-tic6x/attr-arch-c67x-c67x.d:
Update for attribute renaming.

14 years ago * elf-bfd.h (struct elf_backend_data): New member
Rainer Orth [Thu, 21 Oct 2010 12:29:02 +0000 (12:29 +0000)]
* elf-bfd.h (struct elf_backend_data): New member
static_tls_alignment.
* elfxx-target.h (elf_backend_static_tls_alignment): Provide
default.
(elfNN_bed): Initialize static_tls_alignment.
* elflink.c (bfd_elf_final_link): Don't round end of TLS section
if static TLS has special alignment requirements.
* elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
Consider static_tls_alignment.
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for VxWorks.
* elf64-x86-64.c (elf64_x86_64_tpoff):  Define bed,
static_tls_size.
Consider static_tls_alignment.
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for Intel L1OM.

14 years ago*** empty log message ***
gdbadmin [Thu, 21 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago2010-10-20 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Wed, 20 Oct 2010 23:58:07 +0000 (23:58 +0000)]
2010-10-20  Michael Snyder  <msnyder@vmware.com>

* gdb.threads/fork-child-threads.exp: Don't run on remote target.

14 years agodaily update
Alan Modra [Wed, 20 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago * gdbint.texinfo (Misc Guidelines): Renamed from Coding.
Doug Evans [Wed, 20 Oct 2010 22:53:36 +0000 (22:53 +0000)]
* gdbint.texinfo (Misc Guidelines): Renamed from Coding.
All references updated.  Correct sections marked as subsections.
(Coding Standards): New chapter.  Move the coding standard related
subsections here.  Add section on Python coding standards.

14 years agocvs add smartp.cc smartp.exp
Sami Wagiaalla [Wed, 20 Oct 2010 18:56:09 +0000 (18:56 +0000)]
cvs add smartp.cc smartp.exp

Original changelog:
Support overloading of 'operator->'.
[...]
2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/smartp.exp: New test.
* gdb.cp/smartp.cc : New test.

14 years ago * plugin.c (get_symbols): Check symbol type correctly.
Dave Korn [Wed, 20 Oct 2010 17:01:06 +0000 (17:01 +0000)]
* plugin.c (get_symbols): Check symbol type correctly.

14 years ago * Makefile.def (target_modules): Set lib_path to src/.libs for
Ian Lance Taylor [Wed, 20 Oct 2010 15:43:40 +0000 (15:43 +0000)]
* Makefile.def (target_modules): Set lib_path to src/.libs for
libstdc++-v3 module.
* Makefile.tpl: Fix typo in TARGET_LIB_PATH comment.
* Makefile.in: Rebuild.

14 years ago2010-10-20 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 20 Oct 2010 15:30:54 +0000 (15:30 +0000)]
2010-10-20  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::do_read_symbols): Warn about ARM EXIDX sections
without SHF_LINK_ORDER flags.
* layout.cc (Layout::choose_output_section): Do not filter
SHF_LINK_ORDER flag in a relocatable link.

14 years ago * ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if
Dave Korn [Wed, 20 Oct 2010 14:40:31 +0000 (14:40 +0000)]
* ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if
no suitable target compiler is available.