]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Change fatal errors about linking in executable files to simple warnings.
authorNick Clifton <nickc@redhat.com>
Mon, 13 Jul 2020 13:36:50 +0000 (14:36 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Jul 2020 13:36:50 +0000 (14:36 +0100)
* ldelf.c (ldelf_after_open): Change fatal errors about linking in
executable files to simple warnings.

ld/ChangeLog
ld/ldelf.c

index fd9e97de78aabd7e2002bd901ff53dbdb5738e2a..b75bb32c16597e4581a07d96211a742d27448728 100644 (file)
@@ -1,3 +1,8 @@
+2020-07-13  Nick Clifton  <nickc@redhat.com>
+
+       * ldelf.c (ldelf_after_open): Change fatal errors about linking in
+       executable files to simple warnings.
+
 2020-07-10  Alan Modra  <amodra@gmail.com>
 
        * ld.texi (PowerPC64 ELF64): Document --no-inline-optimize,
index 6fa09cfe6f15f82d0f6c08d5197e213d69d0acca..0df3914258ff6a09754c89f23b3fdf380403a11c 100644 (file)
@@ -1047,7 +1047,7 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
          && elf_tdata (abfd)->elf_header != NULL
          /* FIXME: Maybe check for other non-supportable types as well ?  */
          && elf_tdata (abfd)->elf_header->e_type == ET_EXEC)
-       einfo (_("%F%P: cannot use executable file '%pB' as input to a link\n"),
+       einfo (_("%P: Using an executable file (%pB) as input to a link is deprecated - support is likely to be removed in the future\n"),
               abfd);
     }
 
@@ -1081,7 +1081,7 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
          if (bfd_link_executable (& link_info)
              && elf_tdata (abfd)->elf_header->e_type == ET_EXEC)
            {
-             einfo (_("%F%P: cannot use executable file '%pB' as input to a link\n"),
+             einfo (_("%P: Using an executable file (%pB) as input to a link is deprecated - support is likely to be removed in the future\n"),
                     abfd);
            }