personality(0) in sysdeps/unix/sysv/linux/init-first.c
H . J . Lu
hjl@lucon.org
Thu Mar 2 08:12:00 GMT 2000
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.
More information about the Libc-hacker
mailing list