summaryrefslogtreecommitdiff
path: root/bfd/elfcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfcore.h')
-rw-r--r--bfd/elfcore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfcore.h b/bfd/elfcore.h
index 9c51422624..f9d578860e 100644
--- a/bfd/elfcore.h
+++ b/bfd/elfcore.h
@@ -159,6 +159,8 @@ elf_core_file_p (bfd *abfd)
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
continue;
back = xvec_get_elf_backend_data (*target_ptr);
+ if (back->s->arch_size != ARCH_SIZE)
+ continue;
if (back->elf_machine_code == i_ehdrp->e_machine
|| (back->elf_machine_alt1 != 0
&& i_ehdrp->e_machine == back->elf_machine_alt1)