]> Pileus Git - ~andy/linux/commit
parisc: fix personality on 32bit kernel
authorHelge Deller <deller@gmx.de>
Sat, 9 Feb 2013 23:11:46 +0000 (23:11 +0000)
committerHelge Deller <deller@gmx.de>
Wed, 20 Feb 2013 21:55:26 +0000 (22:55 +0100)
commit330cb32520239a6ce81010df24c1e2d4ba67e7b5
treef2be3e5db5c23423bcdb5f99809b376c7eb4abbb
parent24084747df3474bbdeb0880d26afe82c42161a6b
parisc: fix personality on 32bit kernel

Process personality is stored together with other flags like UNAME26 in
an integer variable.  Overwriting this value with PER_LINUX drops all
other existing flags and as such broke tools like the uname26 tool.

Actually this was only broken on 32bit kernels, since for 32bit-ELF
binaries on 64-bit kernels the SET_PERSONALITY macro from
arch/parisc/kernel/binfmt_elf32.c is used which does not modifies the
personality value at all (which is wrong as long as we don't run HPUX
binaries or similiar).

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/elf.h