[PATCH] IA-64 TLS fixes
Thu Jan 16 09:12:00 GMT 2003
On Wed, Jan 15, 2003 at 05:17:10PM -0800, Richard Henderson wrote:
> On Thu, Jan 16, 2003 at 01:41:06AM +0100, Jakub Jelinek wrote:
> > (allocate_dynrel_entries): Only need .rela.got entry for
> > dtpmod against global symbol.
> Hmm? So how does the shared library know what it's module number is?
That's handled in elfNN_ia64_size_dynamic_sections:
+ if (info->shared && ia64_info->self_dtpmod_offset != (bfd_vma) -1)
+ ia64_info->rel_got_sec->_raw_size += sizeof (ElfNN_External_Rela);
allocate_dynrel_entries would allocate one .rela.got slot for every
local symbol which has dtpmod reloc against it, while the code I added
shares all these in the whole binary/library, since the module id is
the same. For binaries, we don't even need dynamic relocations,
the .got slot will contain 1.
More information about the Binutils