This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PPC sysdep additions & problem
- To: <libc-alpha at sources dot redhat dot com>
- Subject: Re: PPC sysdep additions & problem
- From: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Date: Fri, 6 Apr 2001 14:22:27 +0200
- Cc: <linuxppc-dev at lists dot linuxppc dot org>, Dan Malek <dan at mvista dot com>,<cort at fsmlabs dot com>, <paulus at samba dot org>
- References: <20010406101714.12391@mailhost.mipsys.com>
>
>Note that so far, I had some problems loading binaries if I add
>3 entries to the aux table from the kernel with numbers 1000,1001,1002.
>I'm not sure what would have caused binaries not to load properly
>(apparently, their command line gets screwed, I'm not too sure yet).
>The glibc code that fills the "seen" mask definitely couldn't set
>bits for those entries, but this shouldn't have caused any problem.
Correcting myself, the behaviour of 1<<X with X>31 beeing undefined, the
compiler was free to do a modulo, and so caused some real "seen" bits to
be garbled.
So I would suggest modifying slightly glibc to not mask bits above 31,
thus allowing platform-specific high-value tags to be passed there in
the future.
In the meantime, I still need a <31 number allocated for those cache
line sizes ;)
Ben.