]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-xtensa.c
ELF: Don't check relocations in non-loaded, non-alloced sections
[thirdparty/binutils-gdb.git] / bfd / elf32-xtensa.c
index 05c4f8430a2046a9c48546c815f0eb2ebdb2f728..9dc815edbb33eebb252b6f95a829b8929a13427f 100644 (file)
@@ -1039,7 +1039,7 @@ elf_xtensa_check_relocs (bfd *abfd,
   const Elf_Internal_Rela *rel;
   const Elf_Internal_Rela *rel_end;
 
-  if (bfd_link_relocatable (info) || (sec->flags & SEC_ALLOC) == 0)
+  if (bfd_link_relocatable (info))
     return TRUE;
 
   BFD_ASSERT (is_xtensa_elf (abfd));