public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  master: Merge remote branch 'gdb/master'
Date: Sat, 15 Jan 2011 11:35:00 -0000	[thread overview]
Message-ID: <20110115113512.1502.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  dc2d67fd3e4bc8d43ece6e1e1d99094bfa380b7a (commit)
       via  e09e73569d08e1331fe321d1e718981422dba1d0 (commit)
       via  3203bab0c398e48e49ba8769e32d631668df0876 (commit)
       via  995cd3a81fae4c618e014cd3d2d160cce8789d64 (commit)
       via  4269a038b0a3f9986ba0ea9e264d1e3414be3de6 (commit)
       via  ef5da9c976a31b13935fc4e68b557e836bb9051c (commit)
       via  a3786c88ba877b599b557aedc98a4e69b4a7986f (commit)
       via  a1a6376c78ed5738c041dac4060103db68479004 (commit)
       via  654348f5c99e8119e538c96fd974dfab2eaf4e8a (commit)
       via  b439e77336d08eb7a64a7c760d9775770b3d4d9a (commit)
       via  2c7df889b82de365727725ce224323c1627fc4d0 (commit)
       via  b81a31ca876f98fe3df6cca179cd1b80f56dd634 (commit)
       via  4e0d07bbdcbb3ea9765e1d044aa32526b5bddf66 (commit)
       via  92f94c62fe0788276b24d4bd2245fdd67158626e (commit)
       via  26d2277068ada3d73735650612ca7582dff749ce (commit)
      from  c382ea4cb3cd4f4adb6c38ae8fc91f2cc7b57998 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit dc2d67fd3e4bc8d43ece6e1e1d99094bfa380b7a
Merge: c382ea4 e09e735
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Jan 15 12:35:03 2011 +0100

    Merge remote branch 'gdb/master'

commit e09e73569d08e1331fe321d1e718981422dba1d0
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Sat Jan 15 00:00:03 2011 +0000

    *** empty log message ***

commit 3203bab0c398e48e49ba8769e32d631668df0876
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Jan 14 23:00:09 2011 +0000

    daily update

commit 995cd3a81fae4c618e014cd3d2d160cce8789d64
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Jan 14 22:48:10 2011 +0000

    Handle R_X86_64_32 like R_X86_64_64 for ILP32.
    
    bfd/
    
    2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
    	(elf_x86_64_link_hash_table_create): Set pointer_r_type.
    	(elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
    	for ILP32.  Remove ABI_64_P PIC check for R_X86_64_8,
    	R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
    	(elf_x86_64_relocate_section):  Handle R_X86_64_32 like R_X86_64_64
    	for ILP32.
    
    ld/testsuite/
    
    2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
    
    	* ld-x86-64/ilp32-5.d: New.
    	* ld-x86-64/ilp32-5.s: Likewise.
    
    	* ld-x86-64/x86-64.exp: Run ilp32-5.

commit 4269a038b0a3f9986ba0ea9e264d1e3414be3de6
Author: qiyao <qiyao>
Date:   Fri Jan 14 20:37:10 2011 +0000

    2011-01-14  Yao Qi  <yao@codesourcery.com>
    
    	* arm-tdep.c (arm_register_reggroup_p): FPS register is in
    	save_reggroup, restore_reggroup and all_reggroup.

commit ef5da9c976a31b13935fc4e68b557e836bb9051c
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Fri Jan 14 19:33:37 2011 +0000

    new testcase printing wchar_t characters and strings
    
    gdb/testsuite/ChangeLog:
    
            * gdb.base/wchar.c, gdb.base/wchar.exp: New testcases.

commit a3786c88ba877b599b557aedc98a4e69b4a7986f
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Fri Jan 14 19:33:19 2011 +0000

    new testcase for Ada Wide Wide Characters and Strings
    
    gdb/testsuite/ChangeLog:
    
            * gdb.ada/widewide: New testcase.

commit a1a6376c78ed5738c041dac4060103db68479004
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Fri Jan 14 19:32:56 2011 +0000

    Fix printing of Wide_Character & Wide_Wide_Character entities.
    
    Wide_Characters and Wide_Wide_Characters are incorrectly printed.
    Consider for instance:
    
        Medium : Wide_Character := Wide_Character'Val(16#dead#);
    
    Trying to print the value of this variable yields:
    
        (gdb) p medium
        $1 = 57005 '["ad"]'
    
    The integer value is correct (57005 = 0xdead), but the character
    representation is not, it should be:
    
        $1 = 57005 '["dead"]'
    
    Same for Wide_Wide_Characters.
    
    There were two issues:
       (a) The first issue was in ada-valprint, where we were assuming
           that character types were 1 byte long;
       (b) The second problem was in c-valprint, where we were down-casting
           the integer value of the character to type `unsigned char',
           causing use to lose all but the lowest byte.
    
    gdb/ChangeLog:
    
            * ada-valprint. (ada_printchar): Use the correct type length
            in call to ada_emit_char.
            * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.

commit 654348f5c99e8119e538c96fd974dfab2eaf4e8a
Author: Pierre Muller <muller@ics.u-strasbg.fr>
Date:   Fri Jan 14 18:39:31 2011 +0000

    	* solib-som.h (hpux_major_release): Declare variable here.
    	* solib-som.c:  Remove <sys/utsname.h> header.
    	(DEFAULT_HPUX_MAJOR_RELEASE): New macro.
    	(hpux_major_release): Make global, change default value to
    	DEFAULT_HPUX_MAJOR_RELEASE.
    	(get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
    	* hppa-hpux-nat.c: Add <sys/utsname.h> include.
    	Add "solib-som.h" header.
    	(set_hpux_major_release): New function.
    	(_initialize_hppa_hpux_nat): Call set_hpux_major_release.

commit b439e77336d08eb7a64a7c760d9775770b3d4d9a
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Fri Jan 14 18:16:34 2011 +0000

    gdb: extend Linux osabi match
    
    The current osabi default matching misses all *-uclinux tuples.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

commit 2c7df889b82de365727725ce224323c1627fc4d0
Author: Joel Brobecker <brobecker@gnat.com>
Date:   Fri Jan 14 13:53:01 2011 +0000

    fix ARI warnings introduced by ia64-hpux patches
    
    gdb/ChangeLog:
    
            * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
            new-line at end of warning message.
            (ia64_hpux_store_register): Remove trailing new-line at end of
            error message.
            * ia64-hpux-tdep.c: Rephrase comment.
            * solib-ia64-hpux.c (struct dld_info): Change type of field
            dld_flags from "long long" to ULONGEST.

commit b81a31ca876f98fe3df6cca179cd1b80f56dd634
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Jan 14 13:47:14 2011 +0000

    	* target.h (deprecated_child_ops): Delete declaration.
    	* target.c (deprecated_child_ops): Delete definition.

commit 4e0d07bbdcbb3ea9765e1d044aa32526b5bddf66
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Jan 14 13:43:16 2011 +0000

    	gdb/
    	* Makefile.in (hpux-thread.o): Delete rule.
    	* configure.ac: Don't check for HPUX DCE threads support.
    	* configure, config.in: Regenerate.
    	* hppa-hpux-nat.c (child_suppress_run): Delete.
    	(hppa_hpux_child_can_run): Delete.
    	(_initialize_hppa_hpux_nat): Don't override to_can_run.
    	* hpux-thread.c: Delete.

commit 92f94c62fe0788276b24d4bd2245fdd67158626e
Author: Pedro Alves <pedro@codesourcery.com>
Date:   Fri Jan 14 13:38:21 2011 +0000

    	* Makefile.in (hpux-thread.o): Delete rule.
    	* configure.ac: Don't check for HPUX DCE threads support.
    	* configure, config.in: Regenerate.
    	* hppa-hpux-nat.c (child_suppress_run): Delete.
    	(hppa_hpux_child_can_run): Delete.
    	(_initialize_hppa_hpux_nat): Don't override to_can_run.
    	* hpux-thread.c: Delete.

commit 26d2277068ada3d73735650612ca7582dff749ce
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Fri Jan 14 12:35:55 2011 +0000

    	* bfd.c (bfd_perror): Flush stdout before and stderr after printing
    	error.
    	(_bfd_default_error_handler): Likewise.
    	* elf.c (print_segment_map): Likewise.
    	* libbfd.c (warn_deprecated): Likewise.
    	* som.c (som_sizeof_headers): No need to do so here.
    	* coff-i860.c: Replace use of printf for error messages with
    	_bfd_error_handler.
    	* coff-ppc.c: Likewise.
    	* coff-sh.c: Likewise.
    	* elf32-bfin.c: Likewise.
    	* elf32-dlx.c: Likewise.
    	* elf32-mep.c: Likewise.
    	* elf32-v850.c: Likewise.
    	* mach-o.c: Likewise.
    	* pef.c: Likewise.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                   |   29 ++
 bfd/bfd.c                                       |    5 +-
 bfd/coff-i860.c                                 |    4 +-
 bfd/coff-ppc.c                                  |   16 +-
 bfd/coff-sh.c                                   |    5 +-
 bfd/elf.c                                       |    4 +-
 bfd/elf32-bfin.c                                |    9 +-
 bfd/elf32-dlx.c                                 |   12 +-
 bfd/elf32-mep.c                                 |    9 +-
 bfd/elf32-v850.c                                |    4 +-
 bfd/elf64-x86-64.c                              |   20 +-
 bfd/libbfd.c                                    |    4 +-
 bfd/mach-o.c                                    |   55 +--
 bfd/pef.c                                       |    8 +-
 bfd/som.c                                       |    3 +-
 bfd/version.h                                   |    2 +-
 gdb/ChangeLog                                   |   53 ++
 gdb/Makefile.in                                 |    5 -
 gdb/ada-valprint.c                              |    2 +-
 gdb/arm-tdep.c                                  |    9 +-
 gdb/c-valprint.c                                |    6 +-
 gdb/config.in                                   |    3 -
 gdb/configure                                   |   21 -
 gdb/configure.ac                                |   16 -
 gdb/configure.tgt                               |    3 +-
 gdb/hppa-hpux-nat.c                             |   28 +-
 gdb/hpux-thread.c                               |  574 -----------------------
 gdb/ia64-hpux-nat.c                             |    4 +-
 gdb/ia64-hpux-tdep.c                            |   10 +-
 gdb/solib-ia64-hpux.c                           |    4 +-
 gdb/solib-som.c                                 |   28 +-
 gdb/solib-som.h                                 |    2 +
 gdb/target.c                                    |    6 -
 gdb/target.h                                    |    2 -
 gdb/testsuite/ChangeLog                         |    8 +
 gdb/testsuite/gdb.ada/widewide.exp              |   47 ++
 gdb/testsuite/gdb.ada/widewide/foo.adb          |   27 +
 gdb/testsuite/gdb.ada/widewide/pck.adb          |   23 +
 gdb/testsuite/gdb.ada/widewide/pck.ads          |   22 +
 gdb/{solib-som.h => testsuite/gdb.base/wchar.c} |   42 +-
 gdb/testsuite/gdb.base/wchar.exp                |   38 ++
 gdb/version.in                                  |    2 +-
 42 files changed, 412 insertions(+), 762 deletions(-)
 delete mode 100644 gdb/hpux-thread.c
 create mode 100644 gdb/testsuite/gdb.ada/widewide.exp
 create mode 100644 gdb/testsuite/gdb.ada/widewide/foo.adb
 create mode 100644 gdb/testsuite/gdb.ada/widewide/pck.adb
 create mode 100644 gdb/testsuite/gdb.ada/widewide/pck.ads
 copy gdb/{solib-som.h => testsuite/gdb.base/wchar.c} (56%)
 create mode 100644 gdb/testsuite/gdb.base/wchar.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 326b326..37c49a3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,32 @@
+2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
+	(elf_x86_64_link_hash_table_create): Set pointer_r_type.
+	(elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
+	for ILP32.  Remove ABI_64_P PIC check for R_X86_64_8,
+	R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
+	(elf_x86_64_relocate_section):  Handle R_X86_64_32 like R_X86_64_64
+	for ILP32.
+
+2011-01-14  Alan Modra  <amodra@gmail.com>
+
+	* bfd.c (bfd_perror): Flush stdout before and stderr after printing
+	error.
+	(_bfd_default_error_handler): Likewise.
+	* elf.c (print_segment_map): Likewise.
+	* libbfd.c (warn_deprecated): Likewise.
+	* som.c (som_sizeof_headers): No need to do so here.
+	* coff-i860.c: Replace use of printf for error messages with
+	_bfd_error_handler.
+	* coff-ppc.c: Likewise.
+	* coff-sh.c: Likewise.
+	* elf32-bfin.c: Likewise.
+	* elf32-dlx.c: Likewise.
+	* elf32-mep.c: Likewise.
+	* elf32-v850.c: Likewise.
+	* mach-o.c: Likewise.
+	* pef.c: Likewise.
+
 2011-01-13  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
diff --git a/bfd/bfd.c b/bfd/bfd.c
index a9ce7cc..77582ec 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1,6 +1,6 @@
 /* Generic BFD library interface and support routines.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
    Written by Cygnus Support.
 
@@ -523,10 +523,12 @@ DESCRIPTION
 void
 bfd_perror (const char *message)
 {
+  fflush (stdout);
   if (message == NULL || *message == '\0')
     fprintf (stderr, "%s\n", bfd_errmsg (bfd_get_error ()));
   else
     fprintf (stderr, "%s: %s\n", message, bfd_errmsg (bfd_get_error ()));
+  fflush (stderr);
 }
 
 /*
@@ -723,6 +725,7 @@ _bfd_default_error_handler (const char *fmt, ...)
   va_end (ap);
 
   putc ('\n', stderr);
+  fflush (stderr);
 }
 
 /* This is a function pointer to the routine which should handle BFD
diff --git a/bfd/coff-i860.c b/bfd/coff-i860.c
index b7ada16..d50b070 100644
--- a/bfd/coff-i860.c
+++ b/bfd/coff-i860.c
@@ -1,6 +1,6 @@
 /* BFD back-end for Intel i860 COFF files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2007, 2008, 2010  Free Software Foundation, Inc.
+   2003, 2004, 2005, 2007, 2008, 2010, 2011  Free Software Foundation, Inc.
    Created mostly by substituting "860" for "386" in coff-i386.c
    Harry Dolan <dolan@ssd.intel.com>, October 1995
 
@@ -144,7 +144,7 @@ coff_i860_reloc_nyi (bfd *abfd ATTRIBUTE_UNUSED,
 		     char **error_message ATTRIBUTE_UNUSED)
 {
   reloc_howto_type *howto = reloc_entry->howto;
-  fprintf (stderr, _("Relocation `%s' not yet implemented\n"), howto->name);
+  (*_bfd_error_handler) (_("relocation `%s' not yet implemented"), howto->name);
   return bfd_reloc_notsupported;
 }
 
diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c
index 06eed24..69e10d8 100644
--- a/bfd/coff-ppc.c
+++ b/bfd/coff-ppc.c
@@ -1,6 +1,6 @@
 /* BFD back-end for PowerPC Microsoft Portable Executable files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
 
    Original version pieced together by Kim Knuttila (krk@cygnus.com)
@@ -1843,10 +1843,9 @@ ppc_coff_rtype2howto (relent, internal)
 	howto = ppc_coff_howto_table + IMAGE_REL_PPC_TOCREL16;
       break;
     default:
-      fprintf (stderr,
-	      _("Warning: Unsupported reloc %s [%d] used -- it may not work.\n"),
-	      ppc_coff_howto_table[r_type].name,
-	      r_type);
+      (*_bfd_error_handler) (_("warning: unsupported reloc %s [%d] used -- it may not work"),
+			     ppc_coff_howto_table[r_type].name,
+			     r_type);
       howto = ppc_coff_howto_table + r_type;
       break;
     }
@@ -1916,10 +1915,9 @@ coff_ppc_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
       howto = ppc_coff_howto_table + r_type;
       break;
     default:
-      fprintf (stderr,
-	      _("Warning: Unsupported reloc %s [%d] used -- it may not work.\n"),
-	      ppc_coff_howto_table[r_type].name,
-	      r_type);
+      (*_bfd_error_handler) (_("warning: unsupported reloc %s [%d] used -- it may not work"),
+			     ppc_coff_howto_table[r_type].name,
+			     r_type);
       howto = ppc_coff_howto_table + r_type;
       break;
     }
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 28ac0ab..b77af7c 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -1,6 +1,7 @@
 /* BFD back-end for Renesas Super-H COFF binaries.
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
+   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011
+   Free Software Foundation, Inc.
    Contributed by Cygnus Support.
    Written by Steve Chamberlain, <sac@cygnus.com>.
    Relaxing code written by Ian Lance Taylor, <ian@cygnus.com>.
@@ -517,7 +518,7 @@ sh_coff_reloc_type_lookup (abfd, code)
     if (sh_reloc_map[i].bfd_reloc_val == code)
       return &sh_coff_howtos[(int) sh_reloc_map[i].shcoff_reloc_val];
 
-  fprintf (stderr, "SH Error: unknown reloc type %d\n", code);
+  (*_bfd_error_handler) (_("SH Error: unknown reloc type %d"), code);
   return NULL;
 }
 
diff --git a/bfd/elf.c b/bfd/elf.c
index de0ab61..257cc8c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1,7 +1,7 @@
 /* ELF executable support for BFD.
 
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-   2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+   2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -4280,10 +4280,12 @@ print_segment_map (const struct elf_segment_map *m)
 		  (unsigned int) m->p_type);
       pt = buf;
     }
+  fflush (stdout);
   fprintf (stderr, "%s:", pt);
   for (j = 0; j < m->count; j++)
     fprintf (stderr, " %s", m->sections [j]->name);
   putc ('\n',stderr);
+  fflush (stderr);
 }
 
 static bfd_boolean
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 56af244..8aba7ed 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -1,5 +1,5 @@
 /* ADI Blackfin BFD support for 32-bit ELF.
-   Copyright 2005, 2006, 2007, 2008, 2009, 2010
+   Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -104,7 +104,7 @@ bfin_pcrel24_reloc (bfd *abfd,
   /* if rightshift is 1 and the number odd, return error.  */
   if (howto->rightshift && (relocation & 0x01))
     {
-      fprintf(stderr, "relocation should be even number\n");
+      (*_bfd_error_handler) (_("relocation should be even number"));
       return bfd_reloc_overflow;
     }
 
@@ -360,7 +360,7 @@ bfin_bfd_reloc (bfd *abfd,
   /* If rightshift is 1 and the number odd, return error.  */
   if (howto->rightshift && (relocation & 0x01))
     {
-      fprintf(stderr, "relocation should be even number\n");
+      (*_bfd_error_handler) (_("relocation should be even number"));
       return bfd_reloc_overflow;
     }
 
@@ -5276,7 +5276,8 @@ bfin_finish_dynamic_symbol (bfd * output_bfd,
 	  && (info->symbolic
 	      || h->dynindx == -1 || h->forced_local) && h->def_regular)
 	{
-	  fprintf(stderr, "*** check this relocation %s\n", __FUNCTION__);
+	  (*_bfd_error_handler) (_("*** check this relocation %s"),
+				 __FUNCTION__);
 	  rela.r_info = ELF32_R_INFO (0, R_BFIN_PCREL24);
 	  rela.r_addend = bfd_get_signed_32 (output_bfd,
 					     (sgot->contents
diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c
index 6b96ac9..29b8910 100644
--- a/bfd/elf32-dlx.c
+++ b/bfd/elf32-dlx.c
@@ -1,5 +1,5 @@
 /* DLX specific support for 32-bit ELF
-   Copyright 2002, 2003, 2004, 2005, 2006, 2007
+   Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2011
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -139,9 +139,8 @@ elf32_dlx_relocate16 (bfd *abfd,
   /* Can not support a long jump to sections other then .text.  */
   if (strcmp (input_section->name, symbol->section->output_section->name) != 0)
     {
-      fprintf (stderr,
-	       "BFD Link Error: branch (PC rel16) to section (%s) not supported\n",
-	       symbol->section->output_section->name);
+      (*_bfd_error_handler) (_("BFD Link Error: branch (PC rel16) to section (%s) not supported"),
+			     symbol->section->output_section->name);
       return bfd_reloc_undefined;
     }
 
@@ -202,9 +201,8 @@ elf32_dlx_relocate26 (bfd *abfd,
   /* Can not support a long jump to sections other then .text   */
   if (strcmp (input_section->name, symbol->section->output_section->name) != 0)
     {
-      fprintf (stderr,
-	       "BFD Link Error: jump (PC rel26) to section (%s) not supported\n",
-	       symbol->section->output_section->name);
+      (*_bfd_error_handler) (_("BFD Link Error: jump (PC rel26) to section (%s) not supported"),
+			     symbol->section->output_section->name);
       return bfd_reloc_undefined;
     }
 
diff --git a/bfd/elf32-mep.c b/bfd/elf32-mep.c
index a6afcb5..b688d67 100644
--- a/bfd/elf32-mep.c
+++ b/bfd/elf32-mep.c
@@ -1,6 +1,6 @@
 /* MeP-specific support for 32-bit ELF.
-   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
-   Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+   2010, 2011  Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -154,13 +154,14 @@ mep_reloc_type_lookup
 
     default:
       /* Pacify gcc -Wall.  */
-      fprintf (stderr, "mep: no reloc for code %d\n", code);
+      (*_bfd_error_handler) (_("mep: no reloc for code %d"), code);
       return NULL;
     }
 
   if (mep_elf_howto_table[type].type != type)
     {
-      fprintf (stderr, "MeP: howto %d has type %d\n", type, mep_elf_howto_table[type].type);
+      (*_bfd_error_handler) (_("MeP: howto %d has type %d"),
+			     type, mep_elf_howto_table[type].type);
       abort ();
     }
 
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 29b2311..9e6f77d 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -1,6 +1,6 @@
 /* V850-specific support for 32-bit ELF
    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+   2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -480,7 +480,7 @@ v850_elf_perform_lo16_relocation (bfd *abfd, unsigned long *insn,
 	}
       else
 	{
-	  fprintf (stderr, _("FAILED to find previous HI16 reloc\n"));
+	  (*_bfd_error_handler) (_("FAILED to find previous HI16 reloc"));
 	  return FALSE;
 	}
     }
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 6066330..579f59c 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -495,6 +495,7 @@ struct elf_x86_64_link_hash_table
 
   bfd_vma (*r_info) (bfd_vma, bfd_vma);
   bfd_vma (*r_sym) (bfd_vma);
+  unsigned int pointer_r_type;
   const char *dynamic_interpreter;
   int dynamic_interpreter_size;
 
@@ -658,6 +659,7 @@ elf_x86_64_link_hash_table_create (bfd *abfd)
     {
       ret->r_info = elf64_r_info;
       ret->r_sym = elf64_r_sym;
+      ret->pointer_r_type = R_X86_64_64;
       ret->dynamic_interpreter = ELF64_DYNAMIC_INTERPRETER;
       ret->dynamic_interpreter_size = sizeof ELF64_DYNAMIC_INTERPRETER;
     }
@@ -665,6 +667,7 @@ elf_x86_64_link_hash_table_create (bfd *abfd)
     {
       ret->r_info = elf32_r_info;
       ret->r_sym = elf32_r_sym;
+      ret->pointer_r_type = R_X86_64_32;
       ret->dynamic_interpreter = ELF32_DYNAMIC_INTERPRETER;
       ret->dynamic_interpreter_size = sizeof ELF32_DYNAMIC_INTERPRETER;
     }
@@ -1232,6 +1235,9 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
 		  bfd_set_error (bfd_error_bad_value);
 		  return FALSE;
 
+		case R_X86_64_32:
+		  if (ABI_64_P (abfd))
+		    goto not_pointer;
 		case R_X86_64_64:
 		  h->non_got_ref = 1;
 		  h->pointer_equality_needed = 1;
@@ -1249,9 +1255,9 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
 		  break;
 
 		case R_X86_64_32S:
-		case R_X86_64_32:
 		case R_X86_64_PC32:
 		case R_X86_64_PC64:
+not_pointer:
 		  h->non_got_ref = 1;
 		  if (r_type != R_X86_64_PC32
 		      && r_type != R_X86_64_PC64)
@@ -1448,16 +1454,17 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
 	    }
 	  goto create_got;
 
+	case R_X86_64_32:
+	  if (!ABI_64_P (abfd))
+	    goto pointer;
 	case R_X86_64_8:
 	case R_X86_64_16:
-	case R_X86_64_32:
 	case R_X86_64_32S:
 	  /* Let's help debug shared library creation.  These relocs
 	     cannot be used in shared libs.  Don't error out for
 	     sections we don't care about, such as debug sections or
 	     non-constant sections.  */
 	  if (info->shared
-	      && ABI_64_P (abfd)
 	      && (sec->flags & SEC_ALLOC) != 0
 	      && (sec->flags & SEC_READONLY) != 0)
 	    {
@@ -1478,6 +1485,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
 	case R_X86_64_PC32:
 	case R_X86_64_PC64:
 	case R_X86_64_64:
+pointer:
 	  if (h != NULL && info->executable)
 	    {
 	      /* If this reloc is in a read-only section, we might
@@ -2830,6 +2838,9 @@ elf_x86_64_relocate_section (bfd *output_bfd,
 		abort ();
 	      goto do_relocation;
 
+	    case R_X86_64_32:
+	      if (ABI_64_P (output_bfd))
+		goto do_relocation;
 	    case R_X86_64_64: 
 	      if (rel->r_addend != 0)
 		{
@@ -2894,7 +2905,6 @@ elf_x86_64_relocate_section (bfd *output_bfd,
 		  continue;
 		}
 
-	    case R_X86_64_32:
 	    case R_X86_64_PC32:
 	    case R_X86_64_PC64:
 	    case R_X86_64_PLT32:
@@ -3307,7 +3317,7 @@ elf_x86_64_relocate_section (bfd *output_bfd,
 	      else
 		{
 		  /* This symbol is local, or marked to become local.  */
-		  if (r_type == R_X86_64_64)
+		  if (r_type == htab->pointer_r_type)
 		    {
 		      relocate = TRUE;
 		      outrel.r_info = htab->r_info (0, R_X86_64_RELATIVE);
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index a66d9c6..8b24378 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -1,6 +1,6 @@
 /* Assorted BFD support routines, only used internally.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
+   2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
    Free Software Foundation, Inc.
    Written by Cygnus Support.
 
@@ -1021,6 +1021,7 @@ warn_deprecated (const char *what,
 
   if (~(size_t) func & ~mask)
     {
+      fflush (stdout);
       /* Note: separate sentences in order to allow
 	 for translation into other languages.  */
       if (func)
@@ -1028,6 +1029,7 @@ warn_deprecated (const char *what,
 		 what, file, line, func);
       else
 	fprintf (stderr, _("Deprecated %s called\n"), what);
+      fflush (stderr);
       mask |= ~(size_t) func;
     }
 }
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index a02030e..0c0d1ac 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -1,6 +1,6 @@
 /* Mach-O support for BFD.
    Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
-   2009, 2010
+   2009, 2010, 2011
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -378,8 +378,7 @@ bfd_mach_o_canonicalize_symtab (bfd *abfd, asymbol **alocation)
 
   if (bfd_mach_o_read_symtab_symbols (abfd) != 0)
     {
-      fprintf (stderr,
-               "bfd_mach_o_canonicalize_symtab: unable to load symbols\n");
+      (*_bfd_error_handler) (_("bfd_mach_o_canonicalize_symtab: unable to load symbols"));
       return 0;
     }
 
@@ -1251,9 +1250,8 @@ bfd_mach_o_write_contents (bfd *abfd)
 	case BFD_MACH_O_LC_SUB_FRAMEWORK:
 	  break;
 	default:
-	  fprintf (stderr,
-		   "unable to write unknown load command 0x%lx\n",
-		   (unsigned long) cur->type);
+	  (*_bfd_error_handler) (_("unable to write unknown load command 0x%lx"),
+				 (unsigned long) cur->type);
 	  return FALSE;
 	}
     }
@@ -1653,8 +1651,8 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
   if (bfd_seek (abfd, symoff, SEEK_SET) != 0
       || bfd_bread ((void *) buf, symwidth, abfd) != symwidth)
     {
-      fprintf (stderr, "bfd_mach_o_read_symtab_symbol: unable to read %d bytes at %lu\n",
-	       symwidth, (unsigned long) symoff);
+      (*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: unable to read %d bytes at %lu"),
+			     symwidth, (unsigned long) symoff);
       return -1;
     }
 
@@ -1670,8 +1668,9 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
 
   if (stroff >= sym->strsize)
     {
-      fprintf (stderr, "bfd_mach_o_read_symtab_symbol: symbol name out of range (%lu >= %lu)\n",
-	       (unsigned long) stroff, (unsigned long) sym->strsize);
+      (*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: symbol name out of range (%lu >= %lu)"),
+			     (unsigned long) stroff,
+			     (unsigned long) sym->strsize);
       return -1;
     }
 
@@ -1754,23 +1753,23 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
 	      /* Mach-O uses 0 to mean "no section"; not an error.  */
 	      if (section != 0)
 		{
-		  fprintf (stderr, "bfd_mach_o_read_symtab_symbol: "
-			   "symbol \"%s\" specified invalid section %d (max %lu): setting to undefined\n",
-			   s->symbol.name, section, mdata->nsects);


hooks/post-receive
--
Repository for Project Archer.


             reply	other threads:[~2011-01-15 11:35 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-15 11:35 jkratoch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-02-01 19:25 jkratoch
2011-01-29 16:44 jkratoch
2011-01-25 12:53 pmuldoon
2011-01-25  9:10 jkratoch
2011-01-17 13:31 pmuldoon
2011-01-14  8:04 jkratoch
2011-01-10 12:00 pmuldoon
2011-01-10  9:10 jkratoch
2011-01-07  5:57 jkratoch
2011-01-06 12:22 pmuldoon
2011-01-04  4:59 jkratoch
2010-12-31 22:30 jkratoch
2010-12-30  7:22 jkratoch
2010-12-22 20:11 swagiaal
2010-12-14 17:13 jkratoch
2010-12-14  8:27 pmuldoon
2010-12-10 17:16 jkratoch
2010-12-08 15:55 pmuldoon
2010-12-06  6:40 jkratoch
2010-12-04  1:03 jkratoch
2010-12-02 15:47 pmuldoon
2010-11-30  0:15 jkratoch
2010-11-28 18:02 jkratoch
2010-11-28  5:41 jkratoch
2010-11-16  5:04 jkratoch
2010-11-12 11:47 pmuldoon
2010-11-11 11:39 pmuldoon
2010-11-10  9:09 pmuldoon
2010-11-08  9:34 pmuldoon
2010-11-07 18:15 jkratoch
2010-10-22 14:28 pmuldoon
2010-10-20 12:48 pmuldoon
2010-10-19 16:01 pmuldoon
2010-10-17 20:27 jkratoch
2010-10-15 17:07 jkratoch
2010-10-14 20:55 jkratoch
2010-10-13 15:06 jkratoch
2010-10-12 16:45 jkratoch
2010-10-11  9:21 jkratoch
2010-10-11  8:47 pmuldoon
2010-10-06  9:00 pmuldoon
2010-09-30  8:56 pmuldoon
2010-09-27  9:48 jkratoch
2010-09-20 12:34 pmuldoon
2010-09-16 20:49 ratmice
2010-09-04 19:59 jkratoch
2010-09-03  7:26 jkratoch
2010-09-02 15:04 jkratoch
2010-09-01 15:29 swagiaal
2010-08-23 13:54 jkratoch
2010-08-20 17:49 jkratoch
2010-08-12 15:19 swagiaal
2010-08-06 15:32 jkratoch
2010-07-29 19:17 swagiaal
2010-07-22 16:57 jkratoch
2010-07-22 16:26 jkratoch
2010-07-20 18:51 jkratoch
2010-07-09  8:09 jkratoch
2010-06-24  8:55 jkratoch
2010-06-23 20:56 jkratoch
2010-06-17 12:53 jkratoch
2010-06-07  8:14 jkratoch
2010-06-02 19:03 jkratoch
2010-05-28 21:27 jkratoch
2010-05-26 18:36 swagiaal
2010-05-17 18:02 jkratoch
2010-05-17  1:04 jkratoch
2010-05-10 19:30 swagiaal
2010-05-05 14:24 swagiaal
2010-05-03 13:49 jkratoch
2010-05-03  8:48 jkratoch
2010-05-02 23:10 jkratoch
2010-05-02 15:54 jkratoch
2010-04-30  7:11 jkratoch
2010-04-28 11:44 jkratoch
2010-04-25 20:22 jkratoch
2010-04-09 20:37 jkratoch
2010-04-07  1:41 jkratoch
2010-04-05 10:11 jkratoch
2010-04-04 11:58 jkratoch
2010-03-22 23:58 jkratoch
2010-03-20 17:23 jkratoch
2010-03-18 10:01 jkratoch
2010-03-17 18:04 jkratoch
2010-03-12 18:35 jkratoch
2010-03-04 22:28 jkratoch
2010-03-01 22:16 jkratoch
2010-02-26 22:16 jkratoch
2010-02-26 17:50 jkratoch
2010-02-17 16:01 swagiaal
2010-02-13 22:51 jkratoch
2010-02-11 12:51 jkratoch
2010-02-09 19:01 jkratoch
2010-02-08 21:46 jkratoch
2010-02-03  4:38 jkratoch
2010-01-31 17:25 jkratoch
2010-01-28 19:17 swagiaal
2010-01-28 10:56 jkratoch
2010-01-27 19:21 swagiaal
2010-01-27  8:08 jkratoch
2010-01-26 18:58 swagiaal
2010-01-20 21:48 jkratoch
2010-01-15  2:09 jkratoch
2010-01-15  0:52 jkratoch
2010-01-14 22:23 jkratoch
2010-01-13 20:53 jkratoch
2010-01-10 20:47 jkratoch
2010-01-09 10:03 jkratoch
2010-01-09  8:41 jkratoch
2010-01-08 19:16 jkratoch
2009-12-06 17:43 jkratoch
2009-12-03 16:32 jkratoch
2009-11-30 13:59 jkratoch
2009-11-24 21:21 jkratoch
2009-11-21  9:24 jkratoch
2009-11-20 21:06 jkratoch
2009-11-20 15:57 jkratoch
2009-11-17 19:59 jkratoch
2009-11-16  2:22 jkratoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110115113512.1502.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).