[binutils-gdb] ld: drop bogus %F format modifiers

Jan Beulich jbeulich@sourceware.org
Fri Aug 29 10:13:33 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=deefd61637c6b99fc9f0fb40fce0f6eb4bb10414

commit deefd61637c6b99fc9f0fb40fce0f6eb4bb10414
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Aug 29 12:12:24 2025 +0200

    ld: drop bogus %F format modifiers
    
    Support for %F was dropped in 6d74c1f313df ("PR 32603 followup, remove
    %F from einfo").

Diff:
---
 bfd/elfxx-riscv.c | 4 ++--
 ld/ldlang.c       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index 35675735dca..9163712967d 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -3437,8 +3437,8 @@ _bfd_riscv_elf_link_setup_gnu_properties (struct bfd_link_info *info,
 					    | SEC_READONLY | SEC_HAS_CONTENTS
 					    | SEC_DATA));
 	  if (sec == NULL)
-	    info->callbacks->einfo (
-	      _ ("%F%P: failed to create GNU property section\n"));
+	    info->callbacks->fatal (
+	      _("%P: failed to create GNU property section\n"));
 
 	  elf_section_type (sec) = SHT_NOTE;
 	}
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 54292a8dfe1..3c57bf7541c 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -10849,7 +10849,7 @@ cmdline_add_object_only_section (bfd_byte *contents, size_t size)
   /* ibfd needs to be closed *after* obfd, otherwise ld may crash with a
      segmentation fault.  */
   if (!bfd_close (ibfd))
-    einfo (_("%P%F: failed to close input\n"));
+    fatal (_("%P: failed to close input\n"));
 
   /* Must be freed after bfd_close ().  */
   free (isympp);
@@ -10857,7 +10857,7 @@ cmdline_add_object_only_section (bfd_byte *contents, size_t size)
 
   /* Must unlink to ensure rename works on Windows.  */
   if (unlink (output_filename) && errno != ENOENT)
-    einfo (_("%P%F: failed to unlink %s\n"), output_filename);
+    fatal (_("%P: failed to unlink %s\n"), output_filename);
 
   if (rename (ofilename, output_filename))
     {


More information about the Binutils-cvs mailing list