diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index e25e9ba..e369e20 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1736,7 +1736,8 @@ elf_arc_check_relocs (bfd * abfd, non-readonly sections. */ if (bfd_link_dll (info) && !bfd_link_pie (info) && (sec->flags & SEC_ALLOC) != 0 - && (sec->flags & SEC_READONLY) != 0) + && (sec->flags & SEC_READONLY) == 0 + && (sec->flags & SEC_CODE) != 0) { const char *name; if (h) -- 1.9.1