summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/elf_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/elf_32.h')
-rw-r--r--arch/sparc/include/asm/elf_32.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/elf_32.h b/arch/sparc/include/asm/elf_32.h
index 2d4d755cba9e..ac74a2c98e6d 100644
--- a/arch/sparc/include/asm/elf_32.h
+++ b/arch/sparc/include/asm/elf_32.h
@@ -128,6 +128,7 @@ typedef struct {
#define ELF_PLATFORM (NULL)
-#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
+#define SET_PERSONALITY(ex) \
+ set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
#endif /* !(__ASMSPARC_ELF_H) */