Browse Source

2011-10-13 Nick Clifton <nickc@redhat.com>

Fixes to aid translation:
	* addr2line.c (translate_address): Add comments describing context
	of a couple of printf statements.
	* ar.c (write_archive): Allow translation of error message.
	* bucomm.c (endian_string): Allow translation of strings.
	(display_target_list): Allow translation.
	* coffdump.c (dump_coff_type): Allow translation of output.
	(dump_coff_where): Likewise.
	(dump_coff_symbol): Likewise.
	(dump_coff_scope): Likewise.
	(dump_coff_sfile): Likewise.
	(dump_coff_section): Likewise.
	(coff_dump): Likewise.
	* dlltool (def_version): Allow translation of output.
	(run): Likewise.
	* dllwrap.c (run): Allow translation of output.
	* dwarf.c (print_dwarf_vma): Allow translation of output.
	(process_extended_line_op): Remove spurious translation.
	Add translation for strings that can be translated.
	(decode_location_exression): Allow translation of output.
	(read_and_display_attr_value): Allow translation of output.
	* readelf.c (slurp_rela_relocs): Add translation for error
	messages when failing to get data.
	(slurp_rel_relocs): Likewise.
	(get_32bit_elf_symbols): Likewise.
	(get_64bit_elf_symbols): Likewise.
	(dump_ia64_vms_dynamic_relocs): Replace abbreviation with full
	word.
	(process_relocs): Remove spurious translation.
	(decode_tic6x_unwind_bytecode): Likewise.
	(process_version_section): Improve error messages.
	(process_mips_specific): Likewise.
	(print_gnu_note): Remove spurious translation.
	(print_stapsdt_note): Likewise.
	(get_ia64_vms_note_type): Likewise.
	* sysdump.c (getCHARS): Allow translation.
	(fillup): Allow translation of output.
	(getone): Likewise.
	(must): Likewise.
	(derived_type): Likewise.
	* doc/binutils.doc (addr2line): Extend description of command line
	options.
	* po/binutils.pot: Regenerate.
gdb_7_4-branch
Nick Clifton 15 years ago
parent
commit
9cf03b7e41
  1. 46
      binutils/ChangeLog
  2. 14
      binutils/addr2line.c
  3. 2
      binutils/ar.c
  4. 8
      binutils/bucomm.c
  5. 61
      binutils/coffdump.c
  6. 6
      binutils/dlltool.c
  7. 6
      binutils/dllwrap.c
  8. 26
      binutils/doc/binutils.texi
  9. 40
      binutils/dwarf.c
  10. 2478
      binutils/po/binutils.pot
  11. 69
      binutils/readelf.c
  12. 18
      binutils/sysdump.c

46
binutils/ChangeLog

@ -1,3 +1,49 @@
2011-10-13 Nick Clifton <nickc@redhat.com>
Fixes to aid translation:
* addr2line.c (translate_address): Add comments describing context
of a couple of printf statements.
* ar.c (write_archive): Allow translation of error message.
* bucomm.c (endian_string): Allow translation of strings.
(display_target_list): Allow translation.
* coffdump.c (dump_coff_type): Allow translation of output.
(dump_coff_where): Likewise.
(dump_coff_symbol): Likewise.
(dump_coff_scope): Likewise.
(dump_coff_sfile): Likewise.
(dump_coff_section): Likewise.
(coff_dump): Likewise.
* dlltool (def_version): Allow translation of output.
(run): Likewise.
* dllwrap.c (run): Allow translation of output.
* dwarf.c (print_dwarf_vma): Allow translation of output.
(process_extended_line_op): Remove spurious translation.
Add translation for strings that can be translated.
(decode_location_exression): Allow translation of output.
(read_and_display_attr_value): Allow translation of output.
* readelf.c (slurp_rela_relocs): Add translation for error
messages when failing to get data.
(slurp_rel_relocs): Likewise.
(get_32bit_elf_symbols): Likewise.
(get_64bit_elf_symbols): Likewise.
(dump_ia64_vms_dynamic_relocs): Replace abbreviation with full
word.
(process_relocs): Remove spurious translation.
(decode_tic6x_unwind_bytecode): Likewise.
(process_version_section): Improve error messages.
(process_mips_specific): Likewise.
(print_gnu_note): Remove spurious translation.
(print_stapsdt_note): Likewise.
(get_ia64_vms_note_type): Likewise.
* sysdump.c (getCHARS): Allow translation.
(fillup): Allow translation of output.
(getone): Likewise.
(must): Likewise.
(derived_type): Likewise.
* doc/binutils.doc (addr2line): Extend description of command line
options.
* po/binutils.pot: Regenerate.
2011-10-13 Nick Clifton <nickc@redhat.com> 2011-10-13 Nick Clifton <nickc@redhat.com>
PR binutils/13219 PR binutils/13219

14
binutils/addr2line.c

@ -268,6 +268,11 @@ translate_addresses (bfd *abfd, asection *section)
printf ("%s", name); printf ("%s", name);
if (pretty_print) if (pretty_print)
/* Note for translators: This printf is used to join the
function name just printed above to the line number/
file name pair that is about to be printed below. Eg:
foo at 123:bar.c */
printf (_(" at ")); printf (_(" at "));
else else
printf ("\n"); printf ("\n");
@ -289,10 +294,17 @@ translate_addresses (bfd *abfd, asection *section)
if (!unwind_inlines) if (!unwind_inlines)
found = FALSE; found = FALSE;
else else
found = bfd_find_inliner_info (abfd, &filename, &functionname, &line); found = bfd_find_inliner_info (abfd, &filename, &functionname,
&line);
if (! found) if (! found)
break; break;
if (pretty_print) if (pretty_print)
/* Note for translators: This printf is used to join the
line number/file name pair that has just been printed with
the line number/file name pair that is going to be printed
by the next iteration of the while loop. Eg:
123:bar.c (inlined by) 456:main.c */
printf (_(" (inlined by) ")); printf (_(" (inlined by) "));
} }
} }

2
binutils/ar.c

@ -1031,7 +1031,7 @@ write_archive (bfd *iarch)
new_name = make_tempname (old_name); new_name = make_tempname (old_name);
if (new_name == NULL) if (new_name == NULL)
bfd_fatal ("could not create temporary file whilst writing archive"); bfd_fatal (_("could not create temporary file whilst writing archive"));
output_filename = new_name; output_filename = new_name;

8
binutils/bucomm.c

@ -225,9 +225,9 @@ endian_string (enum bfd_endian endian)
{ {
switch (endian) switch (endian)
{ {
case BFD_ENDIAN_BIG: return "big endian"; case BFD_ENDIAN_BIG: return _("big endian");
case BFD_ENDIAN_LITTLE: return "little endian"; case BFD_ENDIAN_LITTLE: return _("little endian");
default: return "endianness unknown"; default: return _("endianness unknown");
} }
} }
@ -248,7 +248,7 @@ display_target_list (void)
bfd *abfd = bfd_openw (dummy_name, p->name); bfd *abfd = bfd_openw (dummy_name, p->name);
int a; int a;
printf ("%s\n (header %s, data %s)\n", p->name, printf (_("%s\n (header %s, data %s)\n"), p->name,
endian_string (p->header_byteorder), endian_string (p->header_byteorder),
endian_string (p->byteorder)); endian_string (p->byteorder));

61
binutils/coffdump.c

@ -127,56 +127,56 @@ static void
dump_coff_type (struct coff_type *p) dump_coff_type (struct coff_type *p)
{ {
tab (1); tab (1);
printf ("size %d ", p->size); printf (_("size %d "), p->size);
switch (p->type) switch (p->type)
{ {
case coff_secdef_type: case coff_secdef_type:
printf ("section definition at %x size %x\n", printf (_("section definition at %x size %x\n"),
p->u.asecdef.address, p->u.asecdef.address,
p->u.asecdef.size); p->u.asecdef.size);
nl (); nl ();
break; break;
case coff_pointer_type: case coff_pointer_type:
printf ("pointer to"); printf (_("pointer to"));
nl (); nl ();
dump_coff_type (p->u.pointer.points_to); dump_coff_type (p->u.pointer.points_to);
break; break;
case coff_array_type: case coff_array_type:
printf ("array [%d] of", p->u.array.dim); printf (_("array [%d] of"), p->u.array.dim);
nl (); nl ();
dump_coff_type (p->u.array.array_of); dump_coff_type (p->u.array.array_of);
break; break;
case coff_function_type: case coff_function_type:
printf ("function returning"); printf (_("function returning"));
nl (); nl ();
dump_coff_type (p->u.function.function_returns); dump_coff_type (p->u.function.function_returns);
dump_coff_lines (p->u.function.lines); dump_coff_lines (p->u.function.lines);
printf ("arguments"); printf (_("arguments"));
nl (); nl ();
dump_coff_scope (p->u.function.parameters); dump_coff_scope (p->u.function.parameters);
tab (0); tab (0);
printf ("code"); printf (_("code"));
nl (); nl ();
dump_coff_scope (p->u.function.code); dump_coff_scope (p->u.function.code);
tab(0); tab(0);
break; break;
case coff_structdef_type: case coff_structdef_type:
printf ("structure definition"); printf (_("structure definition"));
nl (); nl ();
dump_coff_scope (p->u.astructdef.elements); dump_coff_scope (p->u.astructdef.elements);
break; break;
case coff_structref_type: case coff_structref_type:
if (!p->u.aenumref.ref) if (!p->u.aenumref.ref)
printf ("structure ref to UNKNOWN struct"); printf (_("structure ref to UNKNOWN struct"));
else else
printf ("structure ref to %s", p->u.aenumref.ref->name); printf (_("structure ref to %s"), p->u.aenumref.ref->name);
break; break;
case coff_enumref_type: case coff_enumref_type:
printf ("enum ref to %s", p->u.astructref.ref->name); printf (_("enum ref to %s"), p->u.astructref.ref->name);
break; break;
case coff_enumdef_type: case coff_enumdef_type:
printf ("enum definition"); printf (_("enum definition"));
nl (); nl ();
dump_coff_scope (p->u.aenumdef.elements); dump_coff_scope (p->u.aenumdef.elements);
break; break;
@ -249,22 +249,22 @@ dump_coff_where (struct coff_where *p)
switch (p->where) switch (p->where)
{ {
case coff_where_stack: case coff_where_stack:
printf ("Stack offset %x", p->offset); printf (_("Stack offset %x"), p->offset);
break; break;
case coff_where_memory: case coff_where_memory:
printf ("Memory section %s+%x", p->section->name, p->offset); printf (_("Memory section %s+%x"), p->section->name, p->offset);
break; break;
case coff_where_register: case coff_where_register:
printf ("Register %d", p->offset); printf (_("Register %d"), p->offset);
break; break;
case coff_where_member_of_struct: case coff_where_member_of_struct:
printf ("Struct Member offset %x", p->offset); printf (_("Struct Member offset %x"), p->offset);
break; break;
case coff_where_member_of_enum: case coff_where_member_of_enum:
printf ("Enum Member offset %x", p->offset); printf (_("Enum Member offset %x"), p->offset);
break; break;
case coff_where_unknown: case coff_where_unknown:
printf ("Undefined symbol"); printf (_("Undefined symbol"));
break; break;
case coff_where_strtag: case coff_where_strtag:
printf ("STRTAG"); printf ("STRTAG");
@ -331,27 +331,27 @@ static void
dump_coff_symbol (struct coff_symbol *p) dump_coff_symbol (struct coff_symbol *p)
{ {
tab (1); tab (1);
printf ("List of symbols"); printf (_("List of symbols"));
nl (); nl ();
while (p) while (p)
{ {
tab (1); tab (1);
tab (1); tab (1);
printf ("Symbol %s, tag %d, number %d", p->name, p->tag, p->number); printf (_("Symbol %s, tag %d, number %d"), p->name, p->tag, p->number);
nl (); nl ();
tab (-1); tab (-1);
tab (1); tab (1);
printf ("Type"); printf (_("Type"));
nl (); nl ();
dump_coff_type (p->type); dump_coff_type (p->type);
tab (-1); tab (-1);
tab (1); tab (1);
printf ("Where"); printf (_("Where"));
dump_coff_where (p->where); dump_coff_where (p->where);
tab (-1); tab (-1);
tab (1); tab (1);
printf ("Visible"); printf (_("Visible"));
dump_coff_visible (p->visible); dump_coff_visible (p->visible);
tab (-1); tab (-1);
p = p->next; p = p->next;
@ -366,7 +366,8 @@ dump_coff_scope (struct coff_scope *p)
if (p) if (p)
{ {
tab (1); tab (1);
printf ("List of blocks %" BFD_VMA_FMT "x ",(bfd_vma) (uintptr_t) p); printf ("%s %" BFD_VMA_FMT "x ",
_("List of blocks "), (bfd_vma) (uintptr_t) p);
if (p->sec) if (p->sec)
printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1); printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1);
@ -379,10 +380,10 @@ dump_coff_scope (struct coff_scope *p)
while (p) while (p)
{ {
tab (0); tab (0);
printf ("vars %d", p->nvars); printf (_("vars %d"), p->nvars);
nl (); nl ();
dump_coff_symbol (p->vars_head); dump_coff_symbol (p->vars_head);
printf ("blocks"); printf (_("blocks"));
nl (); nl ();
dump_coff_scope (p->list_head); dump_coff_scope (p->list_head);
nl (); nl ();
@ -400,13 +401,13 @@ static void
dump_coff_sfile (struct coff_sfile *p) dump_coff_sfile (struct coff_sfile *p)
{ {
tab (1); tab (1);
printf ("List of source files"); printf (_("List of source files"));
nl (); nl ();
while (p) while (p)
{ {
tab (0); tab (0);
printf ("Source file %s", p->name); printf (_("Source file %s"), p->name);
nl (); nl ();
dump_coff_scope (p->scope); dump_coff_scope (p->scope);
p = p->next; p = p->next;
@ -420,7 +421,7 @@ dump_coff_section (struct coff_section *ptr)
int i; int i;
tab (1); tab (1);
printf ("section %s %d %d address %x size %x number %d nrelocs %d", printf (_("section %s %d %d address %x size %x number %d nrelocs %d"),
ptr->name, ptr->code, ptr->data, ptr->address,ptr->size, ptr->name, ptr->code, ptr->data, ptr->address,ptr->size,
ptr->number, ptr->nrelocs); ptr->number, ptr->nrelocs);
nl (); nl ();
@ -445,7 +446,7 @@ coff_dump (struct coff_ofile *ptr)
printf ("Coff dump"); printf ("Coff dump");
nl (); nl ();
printf ("#sources %d", ptr->nsources); printf (_("#sources %d"), ptr->nsources);
nl (); nl ();
dump_coff_sfile (ptr->source_head); dump_coff_sfile (ptr->source_head);

6
binutils/dlltool.c

@ -1,6 +1,6 @@
/* dlltool.c -- tool to generate stuff for PE style DLLs /* dlltool.c -- tool to generate stuff for PE style DLLs
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 2005, 2006, 2007, 2008, 2009, 2011 Free Software Foundation, Inc.
This file is part of GNU Binutils. This file is part of GNU Binutils.
@ -1263,7 +1263,7 @@ def_import (const char *app_name, const char *module, const char *dllext,
void void
def_version (int major, int minor) def_version (int major, int minor)
{ {
printf ("VERSION %d.%d\n", major, minor); printf (_("VERSION %d.%d\n"), major, minor);
} }
void void
@ -1311,7 +1311,7 @@ run (const char *what, char *args)
char *errmsg_fmt, *errmsg_arg; char *errmsg_fmt, *errmsg_arg;
char *temp_base = choose_temp_base (); char *temp_base = choose_temp_base ();
inform ("run: %s %s", what, args); inform (_("run: %s %s"), what, args);
/* Count the args */ /* Count the args */
i = 0; i = 0;

6
binutils/dllwrap.c

@ -1,6 +1,6 @@
/* dllwrap.c -- wrapper for DLLTOOL and GCC to generate PE style DLLs /* dllwrap.c -- wrapper for DLLTOOL and GCC to generate PE style DLLs
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009 Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009,
Free Software Foundation, Inc. 2011 Free Software Foundation, Inc.
Contributed by Mumit Khan (khan@xraylith.wisc.edu). Contributed by Mumit Khan (khan@xraylith.wisc.edu).
This file is part of GNU Binutils. This file is part of GNU Binutils.
@ -414,7 +414,7 @@ run (const char *what, char *args)
pid = pwait (pid, &wait_status, 0); pid = pwait (pid, &wait_status, 0);
if (pid == -1) if (pid == -1)
{ {
warn ("wait: %s", strerror (errno)); warn (_("pwait returns: %s"), strerror (errno));
retcode = 1; retcode = 1;
} }
else if (WIFSIGNALED (wait_status)) else if (WIFSIGNALED (wait_status))

26
binutils/doc/binutils.texi

@ -3040,11 +3040,25 @@ address on standard output. In this mode, @command{addr2line} may be used
in a pipe to convert dynamically chosen addresses. in a pipe to convert dynamically chosen addresses.
The format of the output is @samp{FILENAME:LINENO}. The file name and The format of the output is @samp{FILENAME:LINENO}. The file name and
line number for each address is printed on a separate line. If the line number for each input address is printed on separate lines.
@command{-f} option is used, then each @samp{FILENAME:LINENO} line is
preceded by a @samp{FUNCTIONNAME} line which is the name of the function If the @option{-f} option is used, then each @samp{FILENAME:LINENO}
containing the address. If the @command{-a} option is used, then the line is preceded by @samp{FUNCTIONNAME} which is the name of the
address read is first printed. function containing the address.
If the @option{-i} option is used and the code at the given address is
present there because of inlining by the compiler then the
@samp{@{FUNCTIONNAME@} FILENAME:LINENO} information for the inlining
function will be displayed afterwards. This continues recursively
until there is no more inlining to report.
If the @option{-a} option is used then the output is prefixed by the
input address.
If the @option{-p} option is used then the output for each input
address is displayed on one, possibly quite long, line. If
@option{-p} is not used then the output is broken up into multiple
lines, based on the paragraphs above.
If the file name or function name can not be determined, If the file name or function name can not be determined,
@command{addr2line} will print two question marks in their place. If the @command{addr2line} will print two question marks in their place. If the
@ -3060,7 +3074,7 @@ equivalent.
@table @env @table @env
@item -a @item -a
@itemx --addresses @itemx --addresses
Display address before function names or file and line number Display the address before the function name, file and line number
information. The address is printed with a @samp{0x} prefix to easily information. The address is printed with a @samp{0x} prefix to easily
identify it. identify it.

40
binutils/dwarf.c

@ -129,7 +129,7 @@ print_dwarf_vma (dwarf_vma val, unsigned byte_size)
if (byte_size > 0 && byte_size <= 8) if (byte_size > 0 && byte_size <= 8)
offset = 16 - 2 * byte_size; offset = 16 - 2 * byte_size;
else else
error ("Wrong size in print_dwarf_vma"); error (_("Wrong size in print_dwarf_vma"));
} }
fputs (buff + offset, stdout); fputs (buff + offset, stdout);
@ -353,21 +353,21 @@ process_extended_line_op (unsigned char *data, int is_stmt)
break; break;
case DW_LNE_HP_SFC_associate: case DW_LNE_HP_SFC_associate:
printf (" DW_LNE_HP_SFC_associate "); printf (" DW_LNE_HP_SFC_associate ");
printf (_("(%s"), printf ("(%s",
dwarf_vmatoa ("u", dwarf_vmatoa ("u",
read_leb128 (data, & bytes_read, 0))); read_leb128 (data, & bytes_read, 0)));
data += bytes_read; data += bytes_read;
printf (_(",%s"), printf (",%s",
dwarf_vmatoa ("u", dwarf_vmatoa ("u",
read_leb128 (data, & bytes_read, 0))); read_leb128 (data, & bytes_read, 0)));
data += bytes_read; data += bytes_read;
printf (_(",%s)\n"), printf (",%s)\n",
dwarf_vmatoa ("u", dwarf_vmatoa ("u",
read_leb128 (data, & bytes_read, 0))); read_leb128 (data, & bytes_read, 0)));
data += bytes_read; data += bytes_read;
break; break;
default: default:
printf (" UNKNOW DW_LNE_HP_SFC opcode (%u)\n", opc); printf (_(" UNKNOWN DW_LNE_HP_SFC opcode (%u)\n"), opc);
data = edata; data = edata;
break; break;
} }
@ -1072,10 +1072,10 @@ decode_location_expression (unsigned char * data,
break; break;
case DW_OP_bit_piece: case DW_OP_bit_piece:
printf ("DW_OP_bit_piece: "); printf ("DW_OP_bit_piece: ");
printf ("size: %s ", printf (_("size: %s "),
dwarf_vmatoa ("u", read_leb128 (data, &bytes_read, 0))); dwarf_vmatoa ("u", read_leb128 (data, &bytes_read, 0)));
data += bytes_read; data += bytes_read;
printf ("offset: %s ", printf (_("offset: %s "),
dwarf_vmatoa ("u", read_leb128 (data, &bytes_read, 0))); dwarf_vmatoa ("u", read_leb128 (data, &bytes_read, 0)));
data += bytes_read; data += bytes_read;
break; break;
@ -1095,7 +1095,7 @@ decode_location_expression (unsigned char * data,
/* GNU extensions. */ /* GNU extensions. */
case DW_OP_GNU_push_tls_address: case DW_OP_GNU_push_tls_address:
printf ("DW_OP_GNU_push_tls_address or DW_OP_HP_unknown"); printf (_("DW_OP_GNU_push_tls_address or DW_OP_HP_unknown"));
break; break;
case DW_OP_GNU_uninit: case DW_OP_GNU_uninit:
printf ("DW_OP_GNU_uninit"); printf ("DW_OP_GNU_uninit");
@ -1605,10 +1605,10 @@ read_and_display_attr_value (unsigned long attribute,
case DW_LANG_Upc: printf ("(Unified Parallel C)"); break; case DW_LANG_Upc: printf ("(Unified Parallel C)"); break;
default: default:
if (uvalue >= DW_LANG_lo_user && uvalue <= DW_LANG_hi_user) if (uvalue >= DW_LANG_lo_user && uvalue <= DW_LANG_hi_user)
printf ("(implementation defined: %s)", printf (_("(implementation defined: %s)"),
dwarf_vmatoa ("x", uvalue)); dwarf_vmatoa ("x", uvalue));
else else
printf ("(Unknown: %s)", dwarf_vmatoa ("x", uvalue)); printf (_("(Unknown: %s)"), dwarf_vmatoa ("x", uvalue));
break; break;
} }
break; break;
@ -1646,9 +1646,9 @@ read_and_display_attr_value (unsigned long attribute,
default: default:
if (uvalue >= DW_ATE_lo_user if (uvalue >= DW_ATE_lo_user
&& uvalue <= DW_ATE_hi_user) && uvalue <= DW_ATE_hi_user)
printf ("(user defined type)"); printf (_("(user defined type)"));
else else
printf ("(unknown type)"); printf (_("(unknown type)"));
break; break;
} }
break; break;
@ -1660,7 +1660,7 @@ read_and_display_attr_value (unsigned long attribute,
case DW_ACCESS_protected: printf ("(protected)"); break; case DW_ACCESS_protected: printf ("(protected)"); break;
case DW_ACCESS_private: printf ("(private)"); break; case DW_ACCESS_private: printf ("(private)"); break;
default: default:
printf ("(unknown accessibility)"); printf (_("(unknown accessibility)"));
break; break;
} }
break; break;
@ -1671,7 +1671,7 @@ read_and_display_attr_value (unsigned long attribute,
case DW_VIS_local: printf ("(local)"); break; case DW_VIS_local: printf ("(local)"); break;
case DW_VIS_exported: printf ("(exported)"); break; case DW_VIS_exported: printf ("(exported)"); break;
case DW_VIS_qualified: printf ("(qualified)"); break; case DW_VIS_qualified: printf ("(qualified)"); break;
default: printf ("(unknown visibility)"); break; default: printf (_("(unknown visibility)")); break;
} }
break; break;
@ -1681,7 +1681,7 @@ read_and_display_attr_value (unsigned long attribute,
case DW_VIRTUALITY_none: printf ("(none)"); break; case DW_VIRTUALITY_none: printf ("(none)"); break;
case DW_VIRTUALITY_virtual: printf ("(virtual)"); break; case DW_VIRTUALITY_virtual: printf ("(virtual)"); break;
case DW_VIRTUALITY_pure_virtual:printf ("(pure_virtual)"); break; case DW_VIRTUALITY_pure_virtual:printf ("(pure_virtual)"); break;
default: printf ("(unknown virtuality)"); break; default: printf (_("(unknown virtuality)")); break;
} }
break; break;
@ -1692,7 +1692,7 @@ read_and_display_attr_value (unsigned long attribute,
case DW_ID_up_case: printf ("(up_case)"); break; case DW_ID_up_case: printf ("(up_case)"); break;
case DW_ID_down_case: printf ("(down_case)"); break; case DW_ID_down_case: printf ("(down_case)"); break;
case DW_ID_case_insensitive: printf ("(case_insensitive)"); break; case DW_ID_case_insensitive: printf ("(case_insensitive)"); break;
default: printf ("(unknown case)"); break; default: printf (_("(unknown case)")); break;
} }
break; break;
@ -1705,16 +1705,16 @@ read_and_display_attr_value (unsigned long attribute,
default: default:
if (uvalue >= DW_CC_lo_user if (uvalue >= DW_CC_lo_user
&& uvalue <= DW_CC_hi_user) && uvalue <= DW_CC_hi_user)
printf ("(user defined)"); printf (_("(user defined)"));
else else
printf ("(unknown convention)"); printf (_("(unknown convention)"));
} }
break; break;
case DW_AT_ordering: case DW_AT_ordering:
switch (uvalue) switch (uvalue)
{ {
case -1: printf ("(undefined)"); break; case -1: printf (_("(undefined)")); break;
case 0: printf ("(row major)"); break; case 0: printf ("(row major)"); break;
case 1: printf ("(column major)"); break; case 1: printf ("(column major)"); break;
} }
@ -1783,7 +1783,7 @@ read_and_display_attr_value (unsigned long attribute,
abbrev_number = read_leb128 (section->start + uvalue, NULL, 0); abbrev_number = read_leb128 (section->start + uvalue, NULL, 0);
printf ("[Abbrev Number: %ld", abbrev_number); printf (_("[Abbrev Number: %ld"), abbrev_number);
for (entry = first_abbrev; entry != NULL; entry = entry->next) for (entry = first_abbrev; entry != NULL; entry = entry->next)
if (entry->entry == abbrev_number) if (entry->entry == abbrev_number)
break; break;

2478
binutils/po/binutils.pot

File diff suppressed because it is too large

69
binutils/readelf.c

@ -654,7 +654,7 @@ slurp_rela_relocs (FILE * file,
Elf32_External_Rela * erelas; Elf32_External_Rela * erelas;
erelas = (Elf32_External_Rela *) get_data (NULL, file, rel_offset, 1, erelas = (Elf32_External_Rela *) get_data (NULL, file, rel_offset, 1,
rel_size, _("relocs")); rel_size, _("32-bit relocation data"));
if (!erelas) if (!erelas)
return 0; return 0;
@ -684,7 +684,7 @@ slurp_rela_relocs (FILE * file,
Elf64_External_Rela * erelas; Elf64_External_Rela * erelas;
erelas = (Elf64_External_Rela *) get_data (NULL, file, rel_offset, 1, erelas = (Elf64_External_Rela *) get_data (NULL, file, rel_offset, 1,
rel_size, _("relocs")); rel_size, _("64-bit relocation data"));
if (!erelas) if (!erelas)
return 0; return 0;
@ -752,7 +752,7 @@ slurp_rel_relocs (FILE * file,
Elf32_External_Rel * erels; Elf32_External_Rel * erels;
erels = (Elf32_External_Rel *) get_data (NULL, file, rel_offset, 1, erels = (Elf32_External_Rel *) get_data (NULL, file, rel_offset, 1,
rel_size, _("relocs")); rel_size, _("32-bit relocation data"));
if (!erels) if (!erels)
return 0; return 0;
@ -781,7 +781,7 @@ slurp_rel_relocs (FILE * file,
Elf64_External_Rel * erels; Elf64_External_Rel * erels;
erels = (Elf64_External_Rel *) get_data (NULL, file, rel_offset, 1, erels = (Elf64_External_Rel *) get_data (NULL, file, rel_offset, 1,
rel_size, _("relocs")); rel_size, _("64-bit relocation data"));
if (!erels) if (!erels)
return 0; return 0;
@ -4089,7 +4089,7 @@ get_32bit_elf_symbols (FILE * file,
shndx = (Elf_External_Sym_Shndx *) get_data (NULL, file, shndx = (Elf_External_Sym_Shndx *) get_data (NULL, file,
symtab_shndx_hdr->sh_offset, symtab_shndx_hdr->sh_offset,
1, symtab_shndx_hdr->sh_size, 1, symtab_shndx_hdr->sh_size,
_("symtab shndx")); _("symbol table section indicies"));
if (shndx == NULL) if (shndx == NULL)
goto exit_point; goto exit_point;
} }
@ -4168,7 +4168,7 @@ get_64bit_elf_symbols (FILE * file,
shndx = (Elf_External_Sym_Shndx *) get_data (NULL, file, shndx = (Elf_External_Sym_Shndx *) get_data (NULL, file,
symtab_shndx_hdr->sh_offset, symtab_shndx_hdr->sh_offset,
1, symtab_shndx_hdr->sh_size, 1, symtab_shndx_hdr->sh_size,
_("symtab shndx")); _("symbol table section indicies"));
if (shndx == NULL) if (shndx == NULL)
goto exit_point; goto exit_point;
} }
@ -5242,7 +5242,7 @@ dump_ia64_vms_dynamic_relocs (FILE *file, struct ia64_vms_dynimgrela *imgrela)
imrs = get_data (NULL, file, dynamic_addr + imgrela->img_rela_off, imrs = get_data (NULL, file, dynamic_addr + imgrela->img_rela_off,
1, imgrela->img_rela_cnt * sizeof (*imrs), 1, imgrela->img_rela_cnt * sizeof (*imrs),
_("dynamic section image relas")); _("dynamic section image relocations"));
if (!imrs) if (!imrs)
return; return;
@ -5448,7 +5448,7 @@ process_relocs (FILE * file)
if (string_table == NULL) if (string_table == NULL)
printf ("%d", section->sh_name); printf ("%d", section->sh_name);
else else
printf (_("'%s'"), SECTION_NAME (section)); printf ("'%s'", SECTION_NAME (section));
printf (_(" at offset 0x%lx contains %lu entries:\n"), printf (_(" at offset 0x%lx contains %lu entries:\n"),
rel_offset, (unsigned long) (rel_size / section->sh_entsize)); rel_offset, (unsigned long) (rel_size / section->sh_entsize));
@ -6713,12 +6713,12 @@ decode_tic6x_unwind_bytecode (struct arm_unw_aux_info *aux,
op = word >> 24; op = word >> 24;
word <<= 8; word <<= 8;
printf (_(" 0x%02x "), op); printf (" 0x%02x ", op);
if ((op & 0xc0) == 0x00) if ((op & 0xc0) == 0x00)
{ {
int offset = ((op & 0x3f) << 3) + 8; int offset = ((op & 0x3f) << 3) + 8;
printf (_(" sp = sp + %d"), offset); printf (" sp = sp + %d", offset);
} }
else if ((op & 0xc0) == 0x80) else if ((op & 0xc0) == 0x80)
{ {
@ -8245,7 +8245,7 @@ process_version_sections (FILE * file)
eneed = (Elf_External_Verneed *) get_data (NULL, file, eneed = (Elf_External_Verneed *) get_data (NULL, file,
section->sh_offset, 1, section->sh_offset, 1,
section->sh_size, section->sh_size,
_("version need section")); _("Version Needs section"));
if (!eneed) if (!eneed)
break; break;
endbuf = (char *) eneed + section->sh_size; endbuf = (char *) eneed + section->sh_size;
@ -8322,13 +8322,15 @@ process_version_sections (FILE * file)
isum += aux.vna_next; isum += aux.vna_next;
vstart += aux.vna_next; vstart += aux.vna_next;
} }
if (j < ent.vn_cnt) if (j < ent.vn_cnt)
printf (_(" Version need aux past end of section\n")); warn (_("Missing Version Needs auxillary information\n"));
idx += ent.vn_next; idx += ent.vn_next;
} }
if (cnt < section->sh_info) if (cnt < section->sh_info)
printf (_(" Version need past end of section\n")); warn (_("Missing Version Needs information\n"));
free (eneed); free (eneed);
} }
@ -11791,7 +11793,7 @@ process_mips_specific (FILE * file)
elib = (Elf32_External_Lib *) get_data (NULL, file, liblist_offset, elib = (Elf32_External_Lib *) get_data (NULL, file, liblist_offset,
liblistno, liblistno,
sizeof (Elf32_External_Lib), sizeof (Elf32_External_Lib),
_("liblist")); _("liblist section data"));
if (elib) if (elib)
{ {
printf (_("\nSection '.liblist' contains %lu entries:\n"), printf (_("\nSection '.liblist' contains %lu entries:\n"),
@ -12147,7 +12149,8 @@ process_mips_specific (FILE * file)
offset = offset_from_vma (file, pltgot, global_end - pltgot); offset = offset_from_vma (file, pltgot, global_end - pltgot);
data = (unsigned char *) get_data (NULL, file, offset, data = (unsigned char *) get_data (NULL, file, offset,
global_end - pltgot, 1, _("GOT")); global_end - pltgot, 1,
_("Global Offset Table data"));
if (data == NULL) if (data == NULL)
return 0; return 0;
@ -12191,9 +12194,14 @@ process_mips_specific (FILE * file)
printf (_(" Global entries:\n")); printf (_(" Global entries:\n"));
printf (" %*s %10s %*s %*s %-7s %3s %s\n", printf (" %*s %10s %*s %*s %-7s %3s %s\n",
addr_size * 2, _("Address"), _("Access"), addr_size * 2, _("Address"),
_("Access"),
addr_size * 2, _("Initial"), addr_size * 2, _("Initial"),
addr_size * 2, _("Sym.Val."), _("Type"), _("Ndx"), _("Name")); addr_size * 2, _("Sym.Val."),
_("Type"),
/* Note for translators: "Ndx" = abbreviated form of "Index". */
_("Ndx"), _("Name"));
sym_width = (is_32bit_elf ? 80 : 160) - 28 - addr_size * 6 - 1; sym_width = (is_32bit_elf ? 80 : 160) - 28 - addr_size * 6 - 1;
for (i = gotsym; i < symtabno; i++) for (i = gotsym; i < symtabno; i++)
{ {
@ -12246,11 +12254,11 @@ process_mips_specific (FILE * file)
offset = offset_from_vma (file, mips_pltgot, end - mips_pltgot); offset = offset_from_vma (file, mips_pltgot, end - mips_pltgot);
data = (unsigned char *) get_data (NULL, file, offset, end - mips_pltgot, data = (unsigned char *) get_data (NULL, file, offset, end - mips_pltgot,
1, _("PLT GOT")); 1, _("Procedure Linkage Table data"));
if (data == NULL) if (data == NULL)
return 0; return 0;
printf (_("\nPLT GOT:\n\n")); printf ("\nPLT GOT:\n\n");
printf (_(" Reserved entries:\n")); printf (_(" Reserved entries:\n"));
printf (_(" %*s %*s Purpose\n"), printf (_(" %*s %*s Purpose\n"),
addr_size * 2, _("Address"), addr_size * 2, _("Initial")); addr_size * 2, _("Address"), addr_size * 2, _("Initial"));
@ -12319,7 +12327,7 @@ process_gnu_liblist (FILE * file)
elib = (Elf32_External_Lib *) elib = (Elf32_External_Lib *)
get_data (NULL, file, section->sh_offset, 1, section->sh_size, get_data (NULL, file, section->sh_offset, 1, section->sh_size,
_("liblist")); _("liblist section data"));
if (elib == NULL) if (elib == NULL)
break; break;
@ -12487,7 +12495,7 @@ print_gnu_note (Elf_Internal_Note *pnote)
printf (_(" Build ID: ")); printf (_(" Build ID: "));
for (i = 0; i < pnote->descsz; ++i) for (i = 0; i < pnote->descsz; ++i)
printf ("%02x", pnote->descdata[i] & 0xff); printf ("%02x", pnote->descdata[i] & 0xff);
printf (_("\n")); printf ("\n");
} }
break; break;
@ -12589,7 +12597,7 @@ get_netbsd_elfcore_note_type (unsigned e_type)
} }
} }
snprintf (buff, sizeof (buff), _("PT_FIRSTMACH+%d"), snprintf (buff, sizeof (buff), "PT_FIRSTMACH+%d",
e_type - NT_NETBSDCORE_FIRSTMACH); e_type - NT_NETBSDCORE_FIRSTMACH);
return buff; return buff;
} }
@ -12643,7 +12651,7 @@ print_stapsdt_note (Elf_Internal_Note *pnote)
print_vma (base_addr, FULL_HEX); print_vma (base_addr, FULL_HEX);
printf (_(", Semaphore: ")); printf (_(", Semaphore: "));
print_vma (semaphore, FULL_HEX); print_vma (semaphore, FULL_HEX);
printf (_("\n")); printf ("\n");
printf (_(" Arguments: %s\n"), arg_fmt); printf (_(" Arguments: %s\n"), arg_fmt);
return data == data_end; return data == data_end;
@ -12663,13 +12671,13 @@ get_ia64_vms_note_type (unsigned e_type)
case NT_VMS_SRC: case NT_VMS_SRC:
return _("NT_VMS_SRC (source files)"); return _("NT_VMS_SRC (source files)");
case NT_VMS_TITLE: case NT_VMS_TITLE:
return _("NT_VMS_TITLE"); return "NT_VMS_TITLE";
case NT_VMS_EIDC: case NT_VMS_EIDC:
return _("NT_VMS_EIDC (consistency check)"); return _("NT_VMS_EIDC (consistency check)");
case NT_VMS_FPMODE: case NT_VMS_FPMODE:
return _("NT_VMS_FPMODE (FP mode)"); return _("NT_VMS_FPMODE (FP mode)");
case NT_VMS_LINKTIME: case NT_VMS_LINKTIME:
return _("NT_VMS_LINKTIME"); return "NT_VMS_LINKTIME";
case NT_VMS_IMGNAM: case NT_VMS_IMGNAM:
return _("NT_VMS_IMGNAM (image name)"); return _("NT_VMS_IMGNAM (image name)");
case NT_VMS_IMGID: case NT_VMS_IMGID:
@ -12681,9 +12689,9 @@ get_ia64_vms_note_type (unsigned e_type)
case NT_VMS_GSTNAM: case NT_VMS_GSTNAM:
return _("NT_VMS_GSTNAM (sym table name)"); return _("NT_VMS_GSTNAM (sym table name)");
case NT_VMS_ORIG_DYN: case NT_VMS_ORIG_DYN:
return _("NT_VMS_ORIG_DYN"); return "NT_VMS_ORIG_DYN";
case NT_VMS_PATCHTIME: case NT_VMS_PATCHTIME:
return _("NT_VMS_PATCHTIME"); return "NT_VMS_PATCHTIME";
default: default:
snprintf (buff, sizeof (buff), _("Unknown note type: (0x%08x)"), e_type); snprintf (buff, sizeof (buff), _("Unknown note type: (0x%08x)"), e_type);
return buff; return buff;
@ -12712,7 +12720,7 @@ print_ia64_vms_note (Elf_Internal_Note * pnote)
break; break;
#ifdef BFD64 #ifdef BFD64
case NT_VMS_FPMODE: case NT_VMS_FPMODE:
printf (_(" FP mode: ")); printf (_(" Floating Point mode: "));
printf ("0x%016" BFD_VMA_FMT "x\n", printf ("0x%016" BFD_VMA_FMT "x\n",
(bfd_vma)byte_get ((unsigned char *)pnote->descdata, 8)); (bfd_vma)byte_get ((unsigned char *)pnote->descdata, 8));
break; break;
@ -12732,11 +12740,10 @@ print_ia64_vms_note (Elf_Internal_Note * pnote)
printf (_(" Major id: %u, minor id: %u\n"), printf (_(" Major id: %u, minor id: %u\n"),
(unsigned) byte_get ((unsigned char *)pnote->descdata, 4), (unsigned) byte_get ((unsigned char *)pnote->descdata, 4),
(unsigned) byte_get ((unsigned char *)pnote->descdata + 4, 4)); (unsigned) byte_get ((unsigned char *)pnote->descdata + 4, 4));
printf (_(" Manip date : ")); printf (_(" Last modified : "));
print_vms_time print_vms_time
((bfd_int64_t) byte_get ((unsigned char *)pnote->descdata + 8, 8)); ((bfd_int64_t) byte_get ((unsigned char *)pnote->descdata + 8, 8));
printf (_("\n" printf (_("\n Link flags : "));
" Link flags : "));
printf ("0x%016" BFD_VMA_FMT "x\n", printf ("0x%016" BFD_VMA_FMT "x\n",
(bfd_vma)byte_get ((unsigned char *)pnote->descdata + 16, 8)); (bfd_vma)byte_get ((unsigned char *)pnote->descdata + 16, 8));
printf (_(" Header flags: 0x%08x\n"), printf (_(" Header flags: 0x%08x\n"),

18
binutils/sysdump.c

@ -1,6 +1,6 @@
/* Sysroff object format dumper. /* Sysroff object format dumper.
Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2009 Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007,
Free Software Foundation, Inc. 2009, 2011 Free Software Foundation, Inc.
This file is part of GNU Binutils. This file is part of GNU Binutils.
@ -63,7 +63,7 @@ getCHARS (unsigned char *ptr, int *idx, int size, int max)
int b = size; int b = size;
if (b >= max) if (b >= max)
return "*undefined*"; return _("*undefined*");
if (b == 0) if (b == 0)
{ {
@ -134,7 +134,7 @@ fillup (unsigned char *ptr)
sum += ptr[i]; sum += ptr[i];
if ((sum & 0xff) != 0xff) if ((sum & 0xff) != 0xff)
printf ("SUM IS %x\n", sum); printf (_("SUM IS %x\n"), sum);
if (dump) if (dump)
dh (ptr, size); dh (ptr, size);
@ -500,7 +500,7 @@ getone (int type)
break; break;
default: default:
printf ("GOT A %x\n", c); printf (_("GOT A %x\n"), c);
return 0; return 0;
break; break;
} }
@ -518,7 +518,7 @@ static void
must (int x) must (int x)
{ {
if (!getone (x)) if (!getone (x))
printf ("WANTED %x!!\n", x); printf (_("WANTED %x!!\n"), x);
} }
static void static void
@ -536,7 +536,7 @@ tab (int i, char *s)
static void static void
dump_symbol_info (void) dump_symbol_info (void)
{ {
tab (1, "SYMBOL INFO"); tab (1, _("SYMBOL INFO"));
while (opt (IT_dsy_CODE)) while (opt (IT_dsy_CODE))
{ {
@ -554,7 +554,7 @@ dump_symbol_info (void)
static void static void
derived_type (void) derived_type (void)
{ {
tab (1, "DERIVED TYPE"); tab (1, _("DERIVED TYPE"));
while (1) while (1)
{ {
@ -611,7 +611,7 @@ module (void)
int c = 0; int c = 0;
int l = 0; int l = 0;
tab (1, "MODULE***\n"); tab (1, _("MODULE***\n"));
do do
{ {

Loading…
Cancel
Save