]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Clear ELF personality flag if ELFv2 is not requested.
authorJeff Bailey <jeffbailey@google.com>
Sat, 17 May 2014 15:05:43 +0000 (15:05 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 May 2014 00:55:59 +0000 (10:55 +1000)
commit7742f57538d5bc2b8ef30d80f9f817f4c559f478
treee78613e17ae0124b6ac3f1289b4190f882ab4d9e
parenta399441d09f7c930b839c5156e17e374a08046cf
powerpc: Clear ELF personality flag if ELFv2 is not requested.

powerpc: Clear ELF personality flag if ELFv2 is not requested.

The POWER kernel uses a personality flag to determine whether it should
be setting up function descriptors or not (per the updated ABI).  This
flag wasn't being cleared on a new process but instead was being
inherited.  The visible effect was that an ELFv2 binary could not execve
to an ELFv1 binary.

Signed-off-by: Jeff Bailey <jeffbailey@google.com>
 arch/powerpc/include/asm/elf.h | 2 ++
 1 file changed, 2 insertions(+)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/elf.h