powerpc: Add TIF_ELF2ABI flag.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Nov 2013 11:15:00 +0000 (22:15 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Nov 2013 22:19:17 +0000 (09:19 +1100)
commit373c76d62240cd3c1a3af42440b0a73cb7296bda
tree2d42b5eb695ef1b2ead78147af26a72e6af9e5c2
parente844b1eeae42dc93bf13e67812a95ee7b58be8c7
powerpc: Add TIF_ELF2ABI flag.

Little endian ppc64 is getting an exciting new ABI.  This is reflected
by the bottom two bits of e_flags in the ELF header:

0 == legacy binaries (v1 ABI)
1 == binaries using the old ABI (compiled with a new toolchain)
2 == binaries using the new ABI.

We store this in a thread flag, because we need to set it in core
dumps and for signal delivery.  Our chief concern is that it doesn't
use function descriptors.

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>
arch/powerpc/include/asm/elf.h
arch/powerpc/include/asm/thread_info.h