summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/elf.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-10-08 21:43:22 +0200
committerArnd Bergmann <arnd@arndb.de>2011-10-08 21:43:22 +0200
commit32d80f97fe4a86b7e9de5d13030432de115119b1 (patch)
tree54b95741024e8926348fa15d43579d49f4743553 /arch/s390/include/asm/elf.h
parent3a3ad60176fafb027bf2e4fe4793eab99ced5708 (diff)
parent100aafc992039794d0facb0e7bbd02f8a11fd1d6 (diff)
Merge branch 'imx/fixes' into next/fixes
Diffstat (limited to 'arch/s390/include/asm/elf.h')
-rw-r--r--arch/s390/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h
index 64b61bf72e93..547f1a6a35d4 100644
--- a/arch/s390/include/asm/elf.h
+++ b/arch/s390/include/asm/elf.h
@@ -188,7 +188,8 @@ extern char elf_platform[];
#define SET_PERSONALITY(ex) \
do { \
if (personality(current->personality) != PER_LINUX32) \
- set_personality(PER_LINUX); \
+ set_personality(PER_LINUX | \
+ (current->personality & ~PER_MASK)); \
if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
set_thread_flag(TIF_31BIT); \
else \