]> git.karo-electronics.de Git - linux-beck.git/commitdiff
default SET_PERSONALITY() in linux/elf.h
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 17 Feb 2013 22:47:04 +0000 (17:47 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Feb 2013 07:46:08 +0000 (02:46 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
17 files changed:
arch/avr32/include/asm/elf.h
arch/blackfin/include/asm/elf.h
arch/c6x/include/asm/elf.h
arch/cris/include/asm/elf.h
arch/frv/include/asm/elf.h
arch/h8300/include/asm/elf.h
arch/hexagon/include/asm/elf.h
arch/ia64/include/asm/elf.h
arch/m32r/include/asm/elf.h
arch/m68k/include/asm/elf.h
arch/mn10300/include/asm/elf.h
arch/openrisc/include/asm/elf.h
arch/powerpc/include/asm/elf.h
arch/s390/include/asm/elf.h
arch/score/include/asm/elf.h
arch/sparc/include/asm/elf_32.h
include/linux/elf.h

index e2c328739808f6d47651e09c226c6a709e929d96..d232888b99d5b1e210a70627413244d1e78b8ac7 100644 (file)
@@ -102,7 +102,4 @@ typedef struct user_fpu_struct elf_fpregset_t;
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
-
 #endif /* __ASM_AVR32_ELF_H */
index 14bc98ff668fb37b48b6ef80855f5a6f057e35f7..d15cb9b5d52cd8d604ac248680467eb176a45eb9 100644 (file)
@@ -132,7 +132,4 @@ do {                                                                                        \
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif
index 32b997126adf76f00d5ab0fe9e08106d0856e6be..9a4dfc5eb24932b9e665cd593f159174b187b2ca 100644 (file)
@@ -77,9 +77,6 @@ do {                                                          \
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 /* C6X specific section types */
 #define SHT_C6000_UNWIND       0x70000001
 #define SHT_C6000_PREEMPTMAP   0x70000002
index 8182f2dc89d04077c4a05fd302cf7fe46bf80996..30ded8fbf59297bd84294211cd5e9fa0087e959c 100644 (file)
@@ -86,7 +86,4 @@ typedef unsigned long elf_fpregset_t;
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif
index 9ccbc80f0b11fbcefcc0f2cdbfeb61eb88fbe81f..2bac6446db41b57fa221dc720b7bba96a040bdf2 100644 (file)
@@ -137,7 +137,4 @@ do {                                                                                        \
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif
index 41193c396bffecd20b353ff558e40f4e9dff03ac..6db71248a82fec4dfbf744c6946f214e3e872ad1 100644 (file)
@@ -54,9 +54,6 @@ typedef unsigned long elf_fpregset_t;
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #define R_H8_NONE       0
 #define R_H8_DIR32      1
 #define R_H8_DIR32_28   2
index 1ba4b3bff5edee550741adfb7762e6eb7f34bae2..1f14e082588edc3cc0c5fb8804c72eff604318f1 100644 (file)
@@ -216,11 +216,6 @@ do {                                       \
  */
 #define ELF_PLATFORM  (NULL)
 
-#ifdef __KERNEL__
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-#endif
-
 #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
 struct linux_binprm;
 extern int arch_setup_additional_pages(struct linux_binprm *bprm,
index b5298eb09adb20b17a4cad2ea144d28d407d2812..5a83c5cc3dc8779e8411238eb651bbc62764b055 100644 (file)
@@ -201,9 +201,6 @@ extern void ia64_elf_core_copy_regs (struct pt_regs *src, elf_gregset_t dst);
    relevant until we have real hardware to play with... */
 #define ELF_PLATFORM   NULL
 
-#define SET_PERSONALITY(ex)    \
-       set_personality((current->personality & ~PER_MASK) | PER_LINUX)
-
 #define elf_read_implies_exec(ex, executable_stack)                                    \
        ((executable_stack!=EXSTACK_DISABLE_X) && ((ex).e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) != 0)
 
index 70896161c636e50fbe299504f9a41be3fc8ae47d..8acc9da9a15e23c78f62d0d8d6c5b29626b7dc63 100644 (file)
@@ -128,7 +128,4 @@ typedef elf_fpreg_t elf_fpregset_t;
    intent than poking at uname or /proc/cpuinfo.  */
 #define ELF_PLATFORM   (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif  /* _ASM_M32R__ELF_H */
index f83c1d0a87cf046c42e546bdc86827f8747d421e..b1c26de438be21c7b22f8a2de1247f35fa7c8cd9 100644 (file)
@@ -113,7 +113,4 @@ typedef struct user_m68kfp_struct elf_fpregset_t;
 
 #define ELF_PLATFORM  (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif
index 4ebd6b3a0a1ebf7bd5aebdd8dc42dac5460fc64a..f592d7a9f0321b64f317e9f71f0343a04f193dd6 100644 (file)
@@ -150,9 +150,4 @@ do {                                                \
  */
 #define ELF_PLATFORM  (NULL)
 
-#ifdef __KERNEL__
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-#endif
-
 #endif /* _ASM_ELF_H */
index f4aa8a542a22ef70ac93fa6e50b48a78f7910e11..d334e204bbdd01d307a2a5165d5ed116a4527980 100644 (file)
@@ -62,7 +62,4 @@ extern void dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt);
 
 #define ELF_PLATFORM   (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif
index 6abf0a163233af0c1ff0837b70e2f964b8f4b0ad..ac9790fc383697185545626ed981495186d7a47b 100644 (file)
@@ -103,8 +103,6 @@ do {                                                                \
 # define elf_read_implies_exec(ex, exec_stk) (is_32bit_task() ? \
                (exec_stk == EXSTACK_DEFAULT) : 0)
 #else 
-# define SET_PERSONALITY(ex) \
-  set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
 # define elf_read_implies_exec(ex, exec_stk) (exec_stk == EXSTACK_DEFAULT)
 #endif /* __powerpc64__ */
 
index 178ff966a8bab5cf8a72d3258e2f44d287261846..1bfdf24b85a20bfdab742d9d0c2f04cfb03d9adb 100644 (file)
@@ -180,10 +180,7 @@ extern unsigned long elf_hwcap;
 extern char elf_platform[];
 #define ELF_PLATFORM (elf_platform)
 
-#ifndef CONFIG_64BIT
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-#else /* CONFIG_64BIT */
+#ifdef CONFIG_64BIT
 #define SET_PERSONALITY(ex)                                    \
 do {                                                           \
        if (personality(current->personality) != PER_LINUX32)   \
index 5d566c7a0af26c5cf65f7b5d37fc57c0f6f93e8a..6a9421c693ca82c476616c7b8e8c9c71198f2263 100644 (file)
@@ -52,11 +52,6 @@ typedef elf_fpreg_t  elf_fpregset_t;
 #define ELF_DATA       ELFDATA2LSB
 #define ELF_ARCH       EM_SCORE7
 
-#define SET_PERSONALITY(ex)                                    \
-do {                                                           \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
-} while (0)
-
 struct task_struct;
 struct pt_regs;
 
index ac74a2c98e6dde55417db847f9f103b2e8771457..a24e41fcdde160b594a10243e014d02b3c1cab91 100644 (file)
@@ -128,7 +128,4 @@ typedef struct {
 
 #define ELF_PLATFORM   (NULL)
 
-#define SET_PERSONALITY(ex) \
-       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
-
 #endif /* !(__ASMSPARC_ELF_H) */
index 8c9048e3346357528f998eb39776073dda682b1b..40a3c0e01b2be880a428d9662ee490d9a070e277 100644 (file)
      Override in asm/elf.h as needed.  */
 # define elf_read_implies_exec(ex, have_pt_gnu_stack)  0
 #endif
+#ifndef SET_PERSONALITY
+#define SET_PERSONALITY(ex) \
+       set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
+#endif
 
 #if ELF_CLASS == ELFCLASS32