diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index 7605c5e9589f4cc9d08c4aca7ccebd3f707fb710..03ec167798022ffa08865662c2e0b69297f56c54 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -125,6 +125,8 @@ static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t*
 #ifdef ELF_CORE_COPY_TASK_REGS
 	
 	return ELF_CORE_COPY_TASK_REGS(t, elfregs);
+#else
+	elf_core_copy_regs(elfregs, task_pt_regs(t));
 #endif
 	return 0;
 }