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

login
register
mail settings
Submitter Rusty Russell
Date Nov. 7, 2013, 1:16 a.m.
Message ID <1383787012-16455-2-git-send-email-rusty@au1.ibm.com>
Download mbox | patch
Permalink /patch/289085/
State Superseded
Headers show

Comments

Rusty Russell - Nov. 7, 2013, 1:16 a.m.
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(+)

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