]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
kvxelf.em: translate error messages
authorAlan Modra <amodra@gmail.com>
Thu, 24 Apr 2025 01:33:39 +0000 (11:03 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 29 Apr 2025 23:27:28 +0000 (08:57 +0930)
gettext calls were missing.  Fix that, and change a couple of einfo
calls to fatal.

ld/emultempl/kvxelf.em

index 186f14830374b99824711ed6f7126a6f8b85b47f..c9a83f7ec4d6aafd3b6c78355fb9eb13732551f7 100644 (file)
@@ -173,7 +173,7 @@ elf${ELFSIZE}_kvx_add_stub_section (const char *stub_sec_name,
     return stub_sec;
 
  err_ret:
-  einfo ("%X%P: can not make stub section: %E\n");
+  einfo (_("%X%P: can not make stub section: %E\n"));
   return NULL;
 }
 
@@ -216,7 +216,7 @@ gld${EMULATION_NAME}_after_allocation (void)
   ret = bfd_elf_discard_info (link_info.output_bfd, & link_info);
   if (ret < 0)
     {
-      einfo ("%X%P: .eh_frame/.stab edit: %E\n");
+      einfo (_("%X%P: .eh_frame/.stab edit: %E\n"));
       return;
     }
   else if (ret > 0)
@@ -232,7 +232,7 @@ gld${EMULATION_NAME}_after_allocation (void)
        {
          if (ret < 0)
            {
-             einfo ("%X%P: could not compute sections lists for stub generation: %E\n");
+             einfo (_("%X%P: could not compute sections lists for stub generation: %E\n"));
              return;
            }
 
@@ -246,7 +246,7 @@ gld${EMULATION_NAME}_after_allocation (void)
                                          & elf${ELFSIZE}_kvx_add_stub_section,
                                          & gldkvx_layout_sections_again))
            {
-             einfo ("%X%P: cannot size stub section: %E\n");
+             einfo (_("%X%P: cannot size stub section: %E\n"));
              return;
            }
        }
@@ -266,7 +266,7 @@ gld${EMULATION_NAME}_finish (void)
          && stub_file->the_bfd->sections != NULL)
        {
          if (! elf${ELFSIZE}_kvx_build_stubs (& link_info))
-           einfo ("%X%P: can not build stubs: %E\n");
+           einfo (_("%X%P: can not build stubs: %E\n"));
        }
     }
 
@@ -291,7 +291,7 @@ kvx_elf_create_output_section_statements (void)
                              bfd_get_arch (link_info.output_bfd),
                              bfd_get_mach (link_info.output_bfd)))
     {
-      einfo ("%X%P: can not create BFD %E\n");
+      fatal (_("%P: can not create BFD %E\n"));
       return;
     }
 
@@ -299,7 +299,7 @@ kvx_elf_create_output_section_statements (void)
   ldlang_add_file (stub_file);
 
   if (!kvx_elf${ELFSIZE}_init_stub_bfd (&link_info, stub_file->the_bfd))
-    einfo ("%P: can not init BFD: %E\n");
+    fatal (_("%P: can not init BFD: %E\n"));
 }