summaryrefslogtreecommitdiff
path: root/arch/c6x/include/asm/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/c6x/include/asm/elf.h')
-rw-r--r--arch/c6x/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/c6x/include/asm/elf.h b/arch/c6x/include/asm/elf.h
index f4552db20b4a..32b997126adf 100644
--- a/arch/c6x/include/asm/elf.h
+++ b/arch/c6x/include/asm/elf.h
@@ -77,7 +77,8 @@ 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)))
/* C6X specific section types */
#define SHT_C6000_UNWIND 0x70000001