diff options
author | Nick Clifton <nickc@redhat.com> | 2016-10-19 14:04:34 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-10-19 14:37:21 +0100 |
commit | 695344c018c8e462280c47a644df02ea472b0a4e (patch) | |
tree | 12cafcf8f151dd4189951e49b20fb6ff99233c30 /bfd/elflink.c | |
parent | 15f205b11547e7ec0ce42a9b49e78229a2d569e1 (diff) | |
download | gdb-695344c018c8e462280c47a644df02ea472b0a4e.zip gdb-695344c018c8e462280c47a644df02ea472b0a4e.tar.gz gdb-695344c018c8e462280c47a644df02ea472b0a4e.tar.bz2 |
Add c-format tags to translatable strings with more than one argument-using formatting token.
* aout-adobe.c: Add missing c-format tags for translatable strings.
* aout-cris.c: Likewise.
* aoutx.h: Likewise.
* bfd.c: Likewise.
* binary.c: Likewise.
* cache.c: Likewise.
* coff-alpha.c: Likewise.
* coff-arm.c: Likewise.
* coff-i860.c: Likewise.
* coff-mcore.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-tic4x.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coffswap.h: Likewise.
* cpu-arm.c: Likewise.
* dwarf2.c: Likewise.
* ecoff.c: Likewise.
* elf-attrs.c: Likewise.
* elf-eh-frame.c: Likewise.
* elf-ifunc.c: Likewise.
* elf-m10300.c: Likewise.
* elf-s390-common.c: Likewise.
* elf.c: Likewise.
* elf32-arc.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-avr.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-cr16.c: Likewise.
* elf32-cr16c.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-crx.c: Likewise.
* elf32-d10v.c: Likewise.
* elf32-d30v.c: Likewise.
* elf32-epiphany.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-gen.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i960.c: Likewise.
* elf32-ip2k.c: Likewise.
* elf32-iq2000.c: Likewise.
* elf32-lm32.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-mep.c: Likewise.
* elf32-metag.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-moxie.c: Likewise.
* elf32-msp430.c: Likewise.
* elf32-mt.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-nios2.c: Likewise.
* elf32-or1k.c: Likewise.
* elf32-pj.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf32-sh-symbian.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-spu.c: Likewise.
* elf32-tic6x.c: Likewise.
* elf32-tilepro.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-visium.c: Likewise.
* elf32-xgate.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-gen.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* elfxx-tilegx.c: Likewise.
* ieee.c: Likewise.
* ihex.c: Likewise.
* libbfd.c: Likewise.
* linker.c: Likewise.
* m68klinux.c: Likewise.
* mach-o.c: Likewise.
* merge.c: Likewise.
* mmo.c: Likewise.
* oasys.c: Likewise.
* pdp11.c: Likewise.
* pe-mips.c: Likewise.
* peXXigen.c: Likewise.
* pei-x86_64.c: Likewise.
* peicode.h: Likewise.
* ppcboot.c: Likewise.
* reloc.c: Likewise.
* sparclinux.c: Likewise.
* srec.c: Likewise.
* stabs.c: Likewise.
* vms-alpha.c: Likewise.
* vms-lib.c: Likewise.
* xcofflink.c: Likewise.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 2f40eb0..76f91e9 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -1260,21 +1260,25 @@ _bfd_elf_merge_symbol (bfd *abfd, if (tdef && ntdef) _bfd_error_handler + /* xgettext:c-format */ (_("%s: TLS definition in %B section %A " "mismatches non-TLS definition in %B section %A"), tbfd, tsec, ntbfd, ntsec, h->root.root.string); else if (!tdef && !ntdef) _bfd_error_handler + /* xgettext:c-format */ (_("%s: TLS reference in %B " "mismatches non-TLS reference in %B"), tbfd, ntbfd, h->root.root.string); else if (tdef) _bfd_error_handler + /* xgettext:c-format */ (_("%s: TLS definition in %B section %A " "mismatches non-TLS reference in %B"), tbfd, tsec, ntbfd, h->root.root.string); else _bfd_error_handler + /* xgettext:c-format */ (_("%s: TLS reference in %B " "mismatches non-TLS definition in %B section %A"), tbfd, ntbfd, ntsec, h->root.root.string); @@ -1938,6 +1942,7 @@ nondefault: if (hi->root.type != bfd_link_hash_defined && hi->root.type != bfd_link_hash_defweak) _bfd_error_handler + /* xgettext:c-format */ (_("%B: unexpected redefinition of indirect versioned symbol `%s'"), abfd, shortname); } @@ -2230,6 +2235,7 @@ _bfd_elf_link_assign_sym_version (struct elf_link_hash_entry *h, void *data) /* We could not find the version for a symbol when generating a shared archive. Return an error. */ _bfd_error_handler + /* xgettext:c-format */ (_("%B: version node not found for symbol %s"), info->output_bfd, h->root.root.string); bfd_set_error (bfd_error_bad_value); @@ -2318,6 +2324,7 @@ elf_link_read_relocs_from_section (bfd *abfd, if ((size_t) r_symndx >= nsyms) { _bfd_error_handler + /* xgettext:c-format */ (_("%B: bad reloc symbol index (0x%lx >= 0x%lx)" " for offset 0x%lx in section `%A'"), abfd, sec, @@ -2329,6 +2336,7 @@ elf_link_read_relocs_from_section (bfd *abfd, else if (r_symndx != STN_UNDEF) { _bfd_error_handler + /* xgettext:c-format */ (_("%B: non-zero symbol index (0x%lx) for offset 0x%lx in section `%A'" " when the object file has no symbol table"), abfd, sec, @@ -2519,6 +2527,7 @@ _bfd_elf_link_output_relocs (bfd *output_bfd, else { _bfd_error_handler + /* xgettext:c-format */ (_("%B: relocation size mismatch in %B section %A"), output_bfd, input_section->owner, input_section); bfd_set_error (bfd_error_wrong_format); @@ -3666,6 +3675,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) || (bed->elf_machine_alt2 != 0 && ehdr->e_machine == bed->elf_machine_alt2))) info->callbacks->einfo + /* xgettext:c-format */ (_("%P: alternate ELF machine code found (%d) in %B, expecting %d\n"), ehdr->e_machine, abfd, bed->elf_machine_code); @@ -4309,6 +4319,7 @@ error_free_dyn: if (verstr == NULL) { _bfd_error_handler + /* xgettext:c-format */ (_("%B: %s: invalid version %u (max %d)"), abfd, name, vernum, elf_tdata (abfd)->cverdefs); @@ -4345,6 +4356,7 @@ error_free_dyn: if (verstr == NULL) { _bfd_error_handler + /* xgettext:c-format */ (_("%B: %s: invalid needed version %d"), abfd, name, vernum); bfd_set_error (bfd_error_bad_value); @@ -4599,12 +4611,14 @@ error_free_dyn: /* PR binutils/2735 */ if (normal_bfd == NULL) _bfd_error_handler + /* xgettext:c-format */ (_("Warning: alignment %u of common symbol `%s' in %B is" " greater than the alignment (%u) of its section %A"), common_bfd, h->root.u.def.section, 1 << common_align, name, 1 << normal_align); else _bfd_error_handler + /* xgettext:c-format */ (_("Warning: alignment %u of symbol `%s' in %B" " is smaller than %u in %B"), normal_bfd, common_bfd, @@ -4621,6 +4635,7 @@ error_free_dyn: && h->size != isym->st_size && ! size_change_ok) _bfd_error_handler + /* xgettext:c-format */ (_("Warning: size of symbol `%s' changed" " from %lu in %B to %lu in %B"), old_bfd, abfd, @@ -4655,6 +4670,7 @@ error_free_dyn: if (h->type != type) { if (h->type != STT_NOTYPE && ! type_change_ok) + /* xgettext:c-format */ _bfd_error_handler (_("Warning: type of symbol `%s' changed" " from %d to %d in %B"), @@ -4757,6 +4773,7 @@ error_free_dyn: && (elf_dyn_lib_class (abfd) & DYN_NO_NEEDED) != 0) { _bfd_error_handler + /* xgettext:c-format */ (_("%B: undefined reference to symbol '%s'"), old_bfd, name); bfd_set_error (bfd_error_missing_dso); @@ -5760,9 +5777,11 @@ bfd_elf_stack_segment_size (bfd *output_bfd, /* The symbol has no type if specified on the command line. */ h->type = STT_OBJECT; if (info->stacksize) + /* xgettext:c-format */ _bfd_error_handler (_("%B: stack size specified and %s set"), output_bfd, legacy_symbol); else if (h->root.u.def.section != bfd_abs_section_ptr) + /* xgettext:c-format */ _bfd_error_handler (_("%B: %s not absolute"), output_bfd, legacy_symbol); else @@ -7894,6 +7913,7 @@ resolve_section (const char *name, static void undefined_reference (const char *reftype, const char *name) { + /* xgettext:c-format */ _bfd_error_handler (_("undefined %s reference in complex symbol: %s"), reftype, name); } @@ -9022,6 +9042,7 @@ check_dynsym (bfd *abfd, Elf_Internal_Sym *sym) /* The gABI doesn't support dynamic symbols in output sections beyond 64k. */ _bfd_error_handler + /* xgettext:c-format */ (_("%B: Too many sections: %d (>= %d)"), abfd, bfd_count_sections (abfd), SHN_LORESERVE & 0xffff); bfd_set_error (bfd_error_nonrepresentable_section); @@ -9311,10 +9332,13 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data) hi = (struct elf_link_hash_entry *) hi->root.u.i.link; if (ELF_ST_VISIBILITY (h->other) == STV_INTERNAL) + /* xgettext:c-format */ msg = _("%B: internal symbol `%s' in %B is referenced by DSO"); else if (ELF_ST_VISIBILITY (h->other) == STV_HIDDEN) + /* xgettext:c-format */ msg = _("%B: hidden symbol `%s' in %B is referenced by DSO"); else + /* xgettext:c-format */ msg = _("%B: local symbol `%s' in %B is referenced by DSO"); def_bfd = flinfo->output_bfd; if (hi->root.u.def.section != bfd_abs_section_ptr) @@ -9400,6 +9424,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data) if (sym.st_shndx == SHN_BAD) { _bfd_error_handler + /* xgettext:c-format */ (_("%B: could not find output section %A for input section %A"), flinfo->output_bfd, input_sec->output_section, input_sec); bfd_set_error (bfd_error_nonrepresentable_section); @@ -9553,10 +9578,13 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data) const char *msg; if (ELF_ST_VISIBILITY (sym.st_other) == STV_PROTECTED) + /* xgettext:c-format */ msg = _("%B: protected symbol `%s' isn't defined"); else if (ELF_ST_VISIBILITY (sym.st_other) == STV_INTERNAL) + /* xgettext:c-format */ msg = _("%B: internal symbol `%s' isn't defined"); else + /* xgettext:c-format */ msg = _("%B: hidden symbol `%s' isn't defined"); _bfd_error_handler (msg, flinfo->output_bfd, h->root.root.string); bfd_set_error (bfd_error_bad_value); @@ -9589,6 +9617,7 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data) if (p && p [1] != '\0') { _bfd_error_handler + /* xgettext:c-format */ (_("%B: No symbol version section for versioned symbol `%s'"), flinfo->output_bfd, h->root.root.string); eoinfo->failed = TRUE; @@ -10193,6 +10222,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd) if (o->size != o->reloc_count * address_size) { _bfd_error_handler + /* xgettext:c-format */ (_("error: %B: size of section %A is not " "multiple of address size"), input_bfd, o); @@ -10240,6 +10270,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd) sprintf_vma (buffer, rel->r_info); _bfd_error_handler + /* xgettext:c-format */ (_("error: %B contains a reloc (0x%s) for section %A " "that references a non-existent global symbol"), input_bfd, o, buffer); @@ -10324,6 +10355,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd) BFD_ASSERT (r_symndx != STN_UNDEF); if (action_discarded & COMPLAIN) (*flinfo->info->callbacks->einfo) + /* xgettext:c-format */ (_("%X`%s' referenced in section `%A' of %B: " "defined in discarded section `%A' of %B\n"), sym_name, o, input_bfd, sec, sec->owner); @@ -10912,6 +10944,7 @@ elf_get_linked_section_vma (struct bfd_link_order *p) = get_elf_backend_data (s->owner); if (bed->link_order_error_handler) bed->link_order_error_handler + /* xgettext:c-format */ (_("%B: warning: sh_link not set for section `%A'"), s->owner, s); return 0; } @@ -10992,6 +11025,7 @@ elf_fixup_link_order (bfd *abfd, asection *o) { if (other_sec && linkorder_sec) _bfd_error_handler + /* xgettext:c-format */ (_("%A has both ordered [`%A' in %B] " "and unordered [`%A' in %B] sections"), o, linkorder_sec, @@ -11723,6 +11757,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) bfd_set_error (bfd_error_wrong_format); _bfd_error_handler + /* xgettext:c-format */ (_("%B: file class %s incompatible with %s"), sub, iclass, oclass); } @@ -12842,6 +12877,7 @@ elf_gc_sweep (bfd *abfd, struct bfd_link_info *info) o->flags |= SEC_EXCLUDE; if (info->print_gc_sections && o->size != 0) + /* xgettext:c-format */ _bfd_error_handler (_("Removing unused section '%s' in file '%B'"), sub, o->name); /* But we also have to update some of the relocation @@ -13196,7 +13232,8 @@ bfd_elf_gc_record_vtinherit (bfd *abfd, goto win; } - _bfd_error_handler ("%B: %A+%lu: No symbol found for INHERIT", + /* xgettext:c-format */ + _bfd_error_handler (_("%B: %A+%lu: No symbol found for INHERIT"), abfd, sec, (unsigned long) offset); bfd_set_error (bfd_error_invalid_operation); return FALSE; |