[PATCH] Fix sparc build

Jakub Jelinek jakub@redhat.com
Thu Oct 14 10:14:00 GMT 2004


On Thu, Oct 14, 2004 at 03:03:06AM -0700, Roland McGrath wrote:
> > 3) on SPARC, the sequence to set up load address of rtld_errno is IMHO too
> >    long to be included in INLINE_SYSCALL, so this patch makes
> >    __errno_location () hidden within ld.so if RTLD_PRIVATE_ERRNO and
> >    return &rtld_errno.
> 
> If you're going to have a call, why not just have it be
> 
> 	call cerror
> 	mov %o7,%g1
> 
> or suchlike, and have sysdep.S define one spot that does it all?

Ok, sure, will work on it.  Still, making __errno_location available IMHO
doesn't hurt (and is not linked in on arches that don't needed it).

	Jakub



More information about the Libc-hacker mailing list