diff mbox

[2/4] powerpc: Set eflags correctly for ELF ABIv2 core dumps.

Message ID 1383787012-16455-2-git-send-email-rusty@au1.ibm.com (mailing list archive)
State Superseded
Headers show

Commit Message

Rusty Russell Nov. 7, 2013, 1:16 a.m. UTC
We leave it at zero (though it could be 1) for old tasks.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/powerpc/include/asm/elf.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/arch/powerpc/include/asm/elf.h b/arch/powerpc/include/asm/elf.h
index 54c7445..8b89268 100644
--- a/arch/powerpc/include/asm/elf.h
+++ b/arch/powerpc/include/asm/elf.h
@@ -106,6 +106,8 @@  do {								\
 } while (0)
 # endif /* COMPAT */
 
+#define ELF_CORE_EFLAGS (is_elf2_task() ? 2 : 0)
+
 /*
  * An executable for which elf_read_implies_exec() returns TRUE will
  * have the READ_IMPLIES_EXEC personality flag set automatically. This