* Re: personality(0) in sysdeps/unix/sysv/linux/init-first.c
[not found] <20000302182748.A1537@jurassic.park.msu.ru>
@ 2000-03-02 8:09 ` H . J . Lu
[not found] ` <u8aekhpd6s.fsf@gromit.rhein-neckar.de>
1 sibling, 0 replies; 2+ messages in thread
From: H . J . Lu @ 2000-03-02 8:09 UTC (permalink / raw)
To: Ivan Kokshaysky; +Cc: GNU C Library, Brad Lucier
On Thu, Mar 02, 2000 at 06:27:48PM +0300, Ivan Kokshaysky wrote:
> 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 is removed from glibc 2.2. For some reason, it is still in 2.1.3.
I will consider it a bug.
H.J.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: personality(0) in sysdeps/unix/sysv/linux/init-first.c
[not found] ` <u8aekhpd6s.fsf@gromit.rhein-neckar.de>
@ 2000-03-02 8:12 ` H . J . Lu
0 siblings, 0 replies; 2+ messages in thread
From: H . J . Lu @ 2000-03-02 8:12 UTC (permalink / raw)
To: Andreas Jaeger; +Cc: Ivan Kokshaysky, bug-glibc, Brad Lucier, GNU C Library
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-03-02 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20000302182748.A1537@jurassic.park.msu.ru>
2000-03-02 8:09 ` personality(0) in sysdeps/unix/sysv/linux/init-first.c H . J . Lu
[not found] ` <u8aekhpd6s.fsf@gromit.rhein-neckar.de>
2000-03-02 8:12 ` H . J . Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).