From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4926A041.1000706@domain.hid> Date: Fri, 21 Nov 2008 12:49:21 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <49268C78.5010600@domain.hid> <492690A5.8010703@domain.hid> In-Reply-To: <492690A5.8010703@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH] Mark libs with nodlopen when using initial-exec TLS List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai-core Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Some naive optimist once claim that the dynamic linker would detect if >> we try to dlopen some Xenomai lib (directly or indirectly) which uses >> the optimised initial-exec TLS variables. He was wrong of course. It >> takes the special marker nodlopen to achieve this, and that's what the >> patch below does when and where required. > > Ok. But I think we should document somewhere the fact that dlopening > Xenomai libs will not work because of __thread. There will be a follow-up on this soon, because dlopen causes more problems, namely to the POSIX skin. Jan -- Siemens AG, Corporate Technology, CT SE 2 ES-OS Corporate Competence Center Embedded Linux