From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: [PATCH v3] move the definition of __pthread_tsd_main to the only compilation unit that references it
Date: Mon, 11 Feb 2013 13:51:11 +0100 [thread overview]
Message-ID: <20130211125111.GD6181@port70.net> (raw)
In-Reply-To: <1360585447.9132.70.camel@eris.loria.fr>
* Jens Gustedt <jens.gustedt@inria.fr> [2013-02-11 13:24:07 +0100]:
>
> In case of dynamic linking, this sounds a bit dangerous to me. Suppose
> I have a program that runs fine, without linking to the key stuff. Say
> it launches a new thread which then has the key table invalid.
>
> Then I dynamically load a module that uses keys. The thread that has
> an invalid table jumps into a function of that module that calles
> pthread_key_get() ?
>
> In such a scenario everything would simply crash, wouldn't it?
>
this weak alias magic only works for static linking
since the .so has non-weak version of the symbols
(the non-weak symbols will take precedence and only
those will be added to the .so, but in .a there will
be objects with weak symbols and objects with non-weak
ones and linker will do the right thing)
prev parent reply other threads:[~2013-02-11 12:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-11 10:44 Jens Gustedt
2013-02-11 11:14 ` Szabolcs Nagy
2013-02-11 12:24 ` Jens Gustedt
2013-02-11 12:51 ` Szabolcs Nagy [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=20130211125111.GD6181@port70.net \
--to=nsz@port70.net \
--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).