cross-arch: don't corrupt personality flags upon exec()
[linux-3.10.git] / arch / blackfin / include / asm / elf.h
index e6c6812..14bc98f 100644 (file)
@@ -132,6 +132,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