From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randolph Chung Subject: [parisc-linux] Re: Q: TLS local dynamic case and zero initialized ti_offset? Date: Mon, 10 Apr 2006 07:40:49 +0800 Message-ID: <44399B81.6070207@tausq.org> References: <119aab440604081516v7613ab2and79c35d084e83cba@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: parisc-linux To: Carlos O'Donell Return-Path: In-Reply-To: <119aab440604081516v7613ab2and79c35d084e83cba@mail.gmail.com> List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: parisc-linux-bounces@lists.parisc-linux.org > In the local dynamic case we emit one reloc R_PARISC_TLS_DTPMOD32. > This means that at runtime there is a GOT entry with an absoluate > address which points to a tls_index structure, which has it's > ti_module filled by the dynamic loader (after processing the DTPMOD32 > reloc). The question I have is, does this tls_index appear in bss? Is > the offset ti_offset initialized to zero? The zero offset is required > since we want __tls_get_addr to return the start of the modules block, > so we can subsequently offset into that block without calling > __tls_get_addr again. In the LD case, the tls_index structure is inside the GOT. The GOT is zeroed by ld when it is created. randolph _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux