mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Nicholas Wilson <nicholas.wilson@realvnc.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: Re: TLS storage offsets for TLS_ABOVE_TP
Date: Fri, 9 Feb 2018 20:39:51 +0000	[thread overview]
Message-ID: <DB6PR0502MB3016EC1C3FE6A4161564E7EAE7F20@DB6PR0502MB3016.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <20180209200322.GJ1627@brightrain.aerifal.cx>

Hi Rich,

Thanks as ever for your helpful response.

It sounds like these things need to written up somewhere; if there isn't a document maybe some code comments would help in the future, if someone else is confused (or trying like me to port to a new arch).

So on a new arch, we can be free to put the TP wherever we want with respect to the TLS block, as long as the linker and Musl agree on the distance between them. I'll pick 2*sizeof(void*) for Wasm to match Arm/AArch64 (I prefer "variant 1" to "variant 2" given the generated code sequence is simpler for the local exec model that Wasm will use).

It's a shame that the glibc spec is so out of date, perhaps a Musl wiki page would be helpful as a reference too?

All the best,
Nick

      reply	other threads:[~2018-02-09 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 18:07 Nicholas Wilson
2018-02-09 20:03 ` Rich Felker
2018-02-09 20:39   ` Nicholas Wilson [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=DB6PR0502MB3016EC1C3FE6A4161564E7EAE7F20@DB6PR0502MB3016.eurprd05.prod.outlook.com \
    --to=nicholas.wilson@realvnc.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).