This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] Fix TLS IE model in IA-64 shared libs


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~


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