kvxelf.em: translate error messages

Alan Modra amodra@gmail.com
Tue Apr 29 23:58:24 GMT 2025


gettext calls were missing.  Fix that, and change a couple of einfo
calls to fatal.

diff --git a/ld/emultempl/kvxelf.em b/ld/emultempl/kvxelf.em
index 186f1483037..c9a83f7ec4d 100644
--- a/ld/emultempl/kvxelf.em
+++ b/ld/emultempl/kvxelf.em
@@ -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"));
 }
 
 

-- 
Alan Modra


More information about the Binutils mailing list