(assign_file_positions_except_relocs): Likewise.
unsigned int last_type;
Elf_Internal_Ehdr *i_ehdrp;
- BFD_ASSERT ((abfd->flags & EXEC_P) != 0);
+ BFD_ASSERT ((abfd->flags & (EXEC_P | DYNAMIC)) != 0);
BFD_ASSERT (phdr_size / sizeof (Elf_Internal_Phdr)
<= sizeof phdrs / sizeof (phdrs[0]));
/* Start after the ELF header. */
off = i_ehdrp->e_ehsize;
- if ((abfd->flags & EXEC_P) == 0)
+ if ((abfd->flags & (EXEC_P | DYNAMIC)) == 0)
{
Elf_Internal_Shdr **hdrpp;
unsigned int i;