[PATCH] Fix TLS IE model in IA-64 shared libs

Richard Henderson rth@redhat.com
Fri Jan 17 19:06:00 GMT 2003


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~



More information about the Binutils mailing list