Skip to content

Commit

Permalink
powerpc: Set eflags correctly for ELF ABIv2 core dumps.
Browse files Browse the repository at this point in the history
We leave it at zero (though it could be 1) for old tasks.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
rustyrussell authored and ozbenh committed Nov 20, 2013
1 parent 373c76d commit 918d035
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
extern unsigned long randomize_et_dyn(unsigned long base);
#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
* process or 64 bit, on either a 64 bit or 32 bit kernel.
Expand Down

0 comments on commit 918d035

Please sign in to comment.