This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH-v2] powerpc: Provide __tls_get_addr () in static libc.


Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> writes:

> Since '--no-tls-optimize' is available for Power in ld, we need to provide
> __tls_get_addr () in static libc in order to avoid undefined references to this
> symbol when that flag is used.
>
> 2015-10-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
>
> 	* sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
> 	static libc.
> ...
> +void *
> +__tls_get_addr (tls_index *ti)
> +{
> +  dtv_t *dtv = THREAD_DTV ();
> +  return (char *) dtv[1].pointer.val + ti->ti_offset + TLS_DTV_OFFSET;
> +}
> +

Just a minor glitch: your editor added an extra blank line at EOF.
I removed it and will push this patch.

Thanks!

-- 
Tulio Magno


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]