]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: drop bogus %F format modifiers
authorJan Beulich <jbeulich@suse.com>
Fri, 29 Aug 2025 10:12:24 +0000 (12:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 Aug 2025 10:12:24 +0000 (12:12 +0200)
Support for %F was dropped in 6d74c1f313df ("PR 32603 followup, remove
%F from einfo").

bfd/elfxx-riscv.c
ld/ldlang.c

index 35675735dcaa213b6304466924e9de63bc368117..9163712967db6f6f1497e8d24daee9a703dfa254 100644 (file)
@@ -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;
        }
index 54292a8dfe17ea4e0013c4642ca25dc84d4db60d..3c57bf7541cfaacff7eeec6d1ea6f6b0cd2280f4 100644 (file)
@@ -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))
     {