From: Nick Clifton Date: Mon, 13 Jul 2020 13:36:50 +0000 (+0100) Subject: Change fatal errors about linking in executable files to simple warnings. X-Git-Tag: binutils-2_35~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baebeaa3b7cd2152bb64dbbb48a843ddb6aefe78;p=thirdparty%2Fbinutils-gdb.git Change fatal errors about linking in executable files to simple warnings. * ldelf.c (ldelf_after_open): Change fatal errors about linking in executable files to simple warnings. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index fd9e97de78a..b75bb32c165 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-07-13 Nick Clifton + + * ldelf.c (ldelf_after_open): Change fatal errors about linking in + executable files to simple warnings. + 2020-07-10 Alan Modra * ld.texi (PowerPC64 ELF64): Document --no-inline-optimize, diff --git a/ld/ldelf.c b/ld/ldelf.c index 6fa09cfe6f1..0df3914258f 100644 --- a/ld/ldelf.c +++ b/ld/ldelf.c @@ -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); }