Fix errno on Alpha

Richard Henderson rth@twiddle.net
Mon Jan 13 04:56:00 GMT 2003


On Wed, Jan 08, 2003 at 10:30:12AM -0500, Daniel Jacobowitz wrote:
> Right now, Alpha uses a !samegp optimized branch to call
> __errno_location.  This tells the linker that we always want the copy
> of __errno_location in this shared object; so syscalls never find the
> copy in libpthread.so, and set the main thread's errno instead of the
> current thread's errno.  Easily fixed, like so; please apply.

Really?  Grr.  This is a linker bug.  We should have gotten
a link error for BRSGP on an symbol that can be overridden.

Thanks.


r~



More information about the Libc-alpha mailing list