summaryrefslogtreecommitdiff
path: root/ld/ldelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldelf.c')
-rw-r--r--ld/ldelf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ld/ldelf.c b/ld/ldelf.c
index 6fa09cfe6f1..e97207175e4 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;