]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-i386.c
Add c-format tags to translatable strings with more than one argument-using formattin...
[thirdparty/binutils-gdb.git] / bfd / elf32-i386.c
index c6f2fd6096fa6bcd6aa6e841413767dd06d91aba..311ca37cdb493c3935f673c8ac92791360ae8cfe 100644 (file)
@@ -383,6 +383,7 @@ elf_i386_rtype_to_howto (bfd *abfd, unsigned r_type)
       && ((indx = r_type - R_386_vt_offset) - R_386_ext2
          >= R_386_vt - R_386_ext2))
     {
+      /* xgettext:c-format */
       _bfd_error_handler (_("%B: invalid relocation type %d"),
                          abfd, (int) r_type);
       indx = R_386_NONE;
@@ -1556,6 +1557,7 @@ elf_i386_tls_transition (struct bfd_link_info *info, bfd *abfd,
        }
 
       _bfd_error_handler
+       /* xgettext:c-format */
        (_("%B: TLS transition from %s to %s against `%s' at 0x%lx "
           "in section `%A' failed"),
         abfd, sec, from->name, to->name, name,
@@ -1643,6 +1645,7 @@ elf_i386_convert_load_reloc (bfd *abfd, Elf_Internal_Shdr *symtab_hdr,
        name = h->root.root.string;
 
       _bfd_error_handler
+       /* xgettext:c-format */
        (_("%B: direct GOT relocation R_386_GOT32X against `%s' without base register can not be used when making a shared object"),
         abfd, name);
       return FALSE;
@@ -1898,6 +1901,7 @@ elf_i386_check_relocs (bfd *abfd,
 
       if (r_symndx >= NUM_SHDR_ENTRIES (symtab_hdr))
        {
+         /* xgettext:c-format */
          _bfd_error_handler (_("%B: bad symbol index: %d"),
                              abfd, r_symndx);
          goto error_return;
@@ -2099,6 +2103,7 @@ elf_i386_check_relocs (bfd *abfd,
                      name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
                                             NULL);
                    _bfd_error_handler
+                     /* xgettext:c-format */
                      (_("%B: `%s' accessed both as normal and "
                         "thread local symbol"),
                       abfd, name);
@@ -2187,6 +2192,7 @@ do_relocation:
                      name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
                                               NULL);
                    _bfd_error_handler
+                     /* xgettext:c-format */
                      (_("%B: unsupported non-PIC call to IFUNC `%s'"),
                       abfd, name);
                      bfd_set_error (bfd_error_bad_value);
@@ -3061,6 +3067,7 @@ elf_i386_readonly_dynrelocs (struct elf_link_hash_entry *h, void *inf)
 
          if ((info->warn_shared_textrel && bfd_link_pic (info))
              || info->error_textrel)
+           /* xgettext:c-format */
            info->callbacks->einfo (_("%P: %B: warning: relocation against `%s' in readonly section `%A'\n"),
                                    p->sec->owner, h->root.root.string,
                                    p->sec);
@@ -3272,6 +3279,7 @@ elf_i386_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
                      info->flags |= DF_TEXTREL;
                      if ((info->warn_shared_textrel && bfd_link_pic (info))
                          || info->error_textrel)
+                       /* xgettext:c-format */
                        info->callbacks->einfo (_("%P: %B: warning: relocation in readonly section `%A'\n"),
                                                p->sec->owner, p->sec);
                    }
@@ -3768,6 +3776,7 @@ elf_i386_relocate_section (bfd *output_bfd,
              >= R_386_ext2 - R_386_ext))
        {
          _bfd_error_handler
+           /* xgettext:c-format */
            (_("%B: unrecognized relocation (0x%x) in section `%A'"),
             input_bfd, input_section, r_type);
          bfd_set_error (bfd_error_bad_value);
@@ -4047,6 +4056,7 @@ bad_ifunc_reloc:
                name = bfd_elf_sym_name (input_bfd, symtab_hdr, sym,
                                         NULL);
              _bfd_error_handler
+               /* xgettext:c-format */
                (_("%B: relocation %s against STT_GNU_IFUNC "
                   "symbol `%s' isn't supported"), input_bfd,
                 howto->name, name);
@@ -4294,6 +4304,7 @@ disallow_got32:
                    name = h->root.root.string;
 
                  _bfd_error_handler
+                   /* xgettext:c-format */
                    (_("%B: direct GOT relocation %s against `%s' without base register can not be used when making a shared object"),
                     input_bfd, howto->name, name);
                  bfd_set_error (bfd_error_bad_value);
@@ -4341,6 +4352,7 @@ disallow_got32:
                    }
 
                  _bfd_error_handler
+                   /* xgettext:c-format */
                    (_("%B: relocation R_386_GOTOFF against undefined %s `%s' can not be used when making a shared object"),
                     input_bfd, v, h->root.root.string);
                  bfd_set_error (bfd_error_bad_value);
@@ -4352,6 +4364,7 @@ disallow_got32:
                       && ELF_ST_VISIBILITY (h->other) == STV_PROTECTED)
                {
                  _bfd_error_handler
+                   /* xgettext:c-format */
                    (_("%B: relocation R_386_GOTOFF against protected %s `%s' can not be used when making a shared object"),
                     input_bfd,
                     h->type == STT_FUNC ? "function" : "data",
@@ -5143,6 +5156,7 @@ disallow_got32:
                                      rel->r_offset) != (bfd_vma) -1)
        {
          _bfd_error_handler
+           /* xgettext:c-format */
            (_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
             input_bfd,
             input_section,
@@ -5182,6 +5196,7 @@ check_relocation_error:
          else
            {
              _bfd_error_handler
+               /* xgettext:c-format */
                (_("%B(%A+0x%lx): reloc against `%s': error %d"),
                 input_bfd, input_section,
                 (long) rel->r_offset, name, (int) r);