From 217031ad1b35702b98f0c99774f8f37820a95bdc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 3 Mar 2000 20:12:42 +0000 Subject: [PATCH] Remove personality call. --- sysdeps/unix/sysv/linux/init-first.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sysdeps/unix/sysv/linux/init-first.c b/sysdeps/unix/sysv/linux/init-first.c index 01395baf754..dd1118950a2 100644 --- a/sysdeps/unix/sysv/linux/init-first.c +++ b/sysdeps/unix/sysv/linux/init-first.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include @@ -50,19 +49,11 @@ char **__libc_argv; static void init (int argc, char **argv, char **envp) { - extern int __personality (int); extern void __getopt_clean_environment (char **); - /* We must not call `personality' twice. */ + /* Make sure we don't initialize twice. */ if (!__libc_multiple_libcs) { - /* The `personality' system call takes one argument that chooses - the "personality", i.e. the set of system calls and such. We - must make this call first thing to disable emulation of some - other system that might have been enabled by default based on - the executable format. */ - __personality (PER_LINUX); - /* Set the FPU control word to the proper default value if the kernel would use a different value. (In a static program we don't have this information.) */ -- 2.47.2