return FALSE;
}
+ track_dependency_files (name);
+
/* Linker needs to decompress sections. */
abfd->flags |= BFD_DECOMPRESS;
/* Do not allow executable files to be used as inputs to the link. */
for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
{
- if (elf_tdata (abfd) != NULL
+ if (!bfd_input_just_syms (abfd)
+ && elf_tdata (abfd) != NULL
&& 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)
}
return;
}
-
+
if (!link_info.traditional_format)
{
bfd *elfbfd = NULL;
{
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;
if (discarded_section (linked_to_sec))
{
isec->output_section = bfd_abs_section_ptr;
+ isec->flags |= SEC_EXCLUDE;
break;
}
}