mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: dynamic linker command line invocation
Date: Thu, 14 Jan 2016 17:30:55 -0500	[thread overview]
Message-ID: <20160114223055.GV238@brightrain.aerifal.cx> (raw)
In-Reply-To: <20160112162402.GJ2016@debian>

On Tue, Jan 12, 2016 at 05:24:02PM +0100, Markus Wichmann wrote:
> On Mon, Jan 11, 2016 at 12:03:37PM -0500, N Jain wrote:
> > Hi Marcus,
> > 
> > Thanks. I am able to get this part working.
> > I am facing one more issue during dynamic linking and need some help to
> > understand how to resolve it.
> > 
> > In below code part of __dls3 function I found that TPIDRURO register is
> > being used to read the threadId.
> > I would like to understand how kernel should set this value ?
> > 
> 
> It shouldn't. musl calls __set_thread_area() (in __init_tp()), and that
> has to set this register.

Yes. The syscall made by __set_thread_area (it's an ARM-private
syscall on ARM, for no good reason, rather than actually being
SYS_set_thread_area) is supposed to set TPIDRURO for the calling
thread to the address provided by the caller.

Rich


      reply	other threads:[~2016-01-14 22:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04 16:59 N Jain
2016-01-04 19:22 ` Markus Wichmann
2016-01-04 20:52   ` Rich Felker
2016-01-04 20:59 ` Rich Felker
2016-01-05 16:45   ` N Jain
2016-01-05 17:32     ` Rich Felker
2016-01-05 18:00       ` N Jain
2016-01-05 18:23         ` Rich Felker
2016-01-07 23:29           ` N Jain
2016-01-08 11:09             ` Markus Wichmann
2016-01-11 17:03               ` N Jain
2016-01-12 16:24                 ` Markus Wichmann
2016-01-14 22:30                   ` Rich Felker [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=20160114223055.GV238@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).