This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] mips: Print extra elf header flags.


Andreas Schwab wrote:
> Carlos O'Donell <carlos@codesourcery.com> writes:
> 
> > You avoided the question. Is it a bad thing to mark all strings with
> > _()? Personally I would rather have all strings marked for translation.
> 
> It does not make any sense to mark a string for translation when it must
> not be translated.

Does the appended patch look ok to you?


Thiemo


2007-02-19  Thiemo Seufer  <ths@mips.com>

	* elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
	translation marker from untranslatable strings.


Index: elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.194
diff -u -p -r1.194 elfxx-mips.c
--- elfxx-mips.c	16 Feb 2007 17:48:12 -0000	1.194
+++ elfxx-mips.c	19 Feb 2007 11:40:01 -0000
@@ -11192,51 +11192,51 @@ _bfd_mips_elf_print_private_bfd_data (bf
     fprintf (file, _(" [no abi set]"));
 
   if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_1)
-    fprintf (file, _(" [mips1]"));
+    fprintf (file, " [mips1]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_2)
-    fprintf (file, _(" [mips2]"));
+    fprintf (file, " [mips2]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_3)
-    fprintf (file, _(" [mips3]"));
+    fprintf (file, " [mips3]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_4)
-    fprintf (file, _(" [mips4]"));
+    fprintf (file, " [mips4]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_5)
-    fprintf (file, _(" [mips5]"));
+    fprintf (file, " [mips5]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_32)
-    fprintf (file, _(" [mips32]"));
+    fprintf (file, " [mips32]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_64)
-    fprintf (file, _(" [mips64]"));
+    fprintf (file, " [mips64]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_32R2)
-    fprintf (file, _(" [mips32r2]"));
+    fprintf (file, " [mips32r2]");
   else if ((elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_64R2)
-    fprintf (file, _(" [mips64r2]"));
+    fprintf (file, " [mips64r2]");
   else
     fprintf (file, _(" [unknown ISA]"));
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH_ASE_MDMX)
-    fprintf (file, _(" [mdmx]"));
+    fprintf (file, " [mdmx]");
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH_ASE_M16)
-    fprintf (file, _(" [mips16]"));
+    fprintf (file, " [mips16]");
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_32BITMODE)
-    fprintf (file, _(" [32bitmode]"));
+    fprintf (file, " [32bitmode]");
   else
     fprintf (file, _(" [not 32bitmode]"));
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_NOREORDER)
-    fprintf (file, _(" [noreorder]"));
+    fprintf (file, " [noreorder]");
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_PIC)
-    fprintf (file, _(" [PIC]"));
+    fprintf (file, " [PIC]");
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_CPIC)
-    fprintf (file, _(" [CPIC]"));
+    fprintf (file, " [CPIC]");
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_XGOT)
-    fprintf (file, _(" [XGOT]"));
+    fprintf (file, " [XGOT]");
 
   if (elf_elfheader (abfd)->e_flags & EF_MIPS_UCODE)
-    fprintf (file, _(" [UCODE]"));
+    fprintf (file, " [UCODE]");
 
   fputc ('\n', file);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]