This is the mail archive of the libc-alpha@sources.redhat.com 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] 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?


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