Commit 918d0355 authored by Rusty Russell's avatar Rusty Russell Committed by Benjamin Herrenschmidt

powerpc: Set eflags correctly for ELF ABIv2 core dumps.

We leave it at zero (though it could be 1) for old tasks.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 373c76d6
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
extern unsigned long randomize_et_dyn(unsigned long base); extern unsigned long randomize_et_dyn(unsigned long base);
#define ELF_ET_DYN_BASE (randomize_et_dyn(0x20000000)) #define ELF_ET_DYN_BASE (randomize_et_dyn(0x20000000))
#define ELF_CORE_EFLAGS (is_elf2_task() ? 2 : 0)
/* /*
* Our registers are always unsigned longs, whether we're a 32 bit * Our registers are always unsigned longs, whether we're a 32 bit
* process or 64 bit, on either a 64 bit or 32 bit kernel. * process or 64 bit, on either a 64 bit or 32 bit kernel.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment