This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: personality(0) in sysdeps/unix/sysv/linux/init-first.c


On Thu, Mar 02, 2000 at 05:08:27PM +0100, Andreas Jaeger wrote:
> >>>>> Ivan Kokshaysky writes:
> 
>  > Since "-taso" linker option (31-bit addressing) for alpha went into
>  > linux-binutils, people start to complain that it doesn't work - they get
>  > segfaults because pointers to malloc'ed memory aren't fitting in the
>  > 32-bit int. The reason is personality(0) call in init_first.c resetting
>  > 31-bit mode.
> 
>  > Actually, this call was removed in glibc CVS 6 months ago, but still
>  > present in releases/snapshots...
> It was removed for glibc 2.2 - but not for glibc 2.1.  They're
> separate branches.
> 
> Ulrich, this is the ChangeLog entry - do you want to add it to glibc
> 2.1?
> 
> 1999-08-20  Ulrich Drepper  <drepper@cygnus.com>
> 
>         * sysdeps/unix/sysv/linux/init-first.c (init): Remove personality
>         call.  It should not be necessary andis harmful for Alpha.

While we are on it, shouldn't we remove all traces of personality?
There are

#include <linux/personality.h>
extern int __personality (int);
/* We must not call `personality' twice.  */



H.J.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]