diff --git a/ld/ChangeLog b/ld/ChangeLog index cb49784ea9..3bf9e619ee 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2020-07-23 Maciej W. Rozycki + + PR ld/26288 + + Revert: + PR 26047 + * ldelf.c (ldelf_after_open): Fail if attempting to link one + executable into another. + 2020-07-22 Nick Alcock * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now. diff --git a/ld/ldelf.c b/ld/ldelf.c index 6fa09cfe6f..e97207175e 100644 --- a/ld/ldelf.c +++ b/ld/ldelf.c @@ -1078,13 +1078,6 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd, { int type = 0; - 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"), - abfd); - } - if (bfd_input_just_syms (abfd)) continue;