Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Randolph Chung <randolph@tausq.org>
To: Carlos O'Donell <carlos@systemhalted.org>
Cc: parisc-linux <parisc-linux@lists.parisc-linux.org>
Subject: [parisc-linux] Re: Q: TLS local dynamic case and zero initialized ti_offset?
Date: Mon, 10 Apr 2006 07:40:49 +0800	[thread overview]
Message-ID: <44399B81.6070207@tausq.org> (raw)
In-Reply-To: <119aab440604081516v7613ab2and79c35d084e83cba@mail.gmail.com>

> 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

      reply	other threads:[~2006-04-09 23:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-08 22:16 [parisc-linux] Q: TLS local dynamic case and zero initialized ti_offset? Carlos O'Donell
2006-04-09 23:40 ` Randolph Chung [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44399B81.6070207@tausq.org \
    --to=randolph@tausq.org \
    --cc=carlos@systemhalted.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox