This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] PPC64 enable with-tls
- From: Roland McGrath <roland at redhat dot com>
- To: sjmunroe at vnet dot ibm dot com
- Cc: libc-alpha at sources dot redhat dot com, bergner at vnet dot ibm dot com
- Date: Mon, 24 Feb 2003 12:32:00 -0800
- Subject: Re: [PATCH] PPC64 enable with-tls
> Then I can safely add TLS_DTV_OFFSET to the __tls_get_addr return
> statement.
>
> - return (char *) p + GET_ADDR_OFFSET;
> + return (char *) p + GET_ADDR_OFFSET + TLS_DTV_OFFSET;
>
> I also have to fix up the address for _dl_tls_symaddr:
>
> - return __TLS_GET_ADDR (&tmp);
> + return __TLS_GET_ADDR (&tmp) - TLS_DTV_OFFSET;
> # else
> - return __TLS_GET_ADDR (map->l_tls_modid, ref->st_value);
> + return __TLS_GET_ADDR (map->l_tls_modid, ref->st_value)
> + - TLS_DTV_OFFSET;
Can't you simply change the GET_ADDR_OFFSET and __TLS_GET_ADDR macros for
powerpc64 to do the bias?