From: Jan Beulich Date: Fri, 29 Aug 2025 10:12:24 +0000 (+0200) Subject: ld: drop bogus %F format modifiers X-Git-Tag: gdb-17-branchpoint~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=deefd61637c6b99fc9f0fb40fce0f6eb4bb10414;p=thirdparty%2Fbinutils-gdb.git ld: drop bogus %F format modifiers Support for %F was dropped in 6d74c1f313df ("PR 32603 followup, remove %F from einfo"). --- 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)) {