summaryrefslogtreecommitdiffstats
path: root/arch/frv/include/asm/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/frv/include/asm/elf.h')
-rw-r--r--arch/frv/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/frv/include/asm/elf.h b/arch/frv/include/asm/elf.h
index c3819804a74..9ccbc80f0b1 100644
--- a/arch/frv/include/asm/elf.h
+++ b/arch/frv/include/asm/elf.h
@@ -137,6 +137,7 @@ do { \
#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