This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Fix TLS IE model in IA-64 shared libs
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com, Ulrich Drepper <drepper at redhat dot com>, Roland McGrath <roland at redhat dot com>
- Date: Fri, 17 Jan 2003 11:06:06 -0800
- Subject: Re: [PATCH] Fix TLS IE model in IA-64 shared libs
- References: <20030117172859.Q6196@sunsite.ms.mff.cuni.cz>
On Fri, Jan 17, 2003 at 05:28:59PM +0100, Jakub Jelinek wrote:
> + if (!dynamic_symbol_p)
> + {
> + if (!info->shared)
> + value -= elfNN_ia64_tprel_base (info);
> + else
> + {
> + r_addend += value - elfNN_ia64_dtprel_base (info);
> + dynindx = 0;
I understand that you need to convert this away from a TPREL
relocation vs a local symbol, but I don't understand how this
(a TPREL relocation vs UNDEF with a funny addend) is supposed
to work. Does UNDEF get treated as the base of the TLS segment
for this DSO?
If so, the patch is ok, but could use more comments.
I need to make similar changes to Alpha's linker...
r~