From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>,
xenomai@xenomai.org
Subject: Re: [Xenomai] [Xenomai-git] Jan Kiszka : boilerplate: Allow for enabling Xenomai only in shared libs
Date: Mon, 22 Feb 2016 18:56:53 +0100 [thread overview]
Message-ID: <56CB4BE5.3090702@siemens.com> (raw)
In-Reply-To: <20160222174421.GD7398@hermes.click-hack.org>
[please CC me on replies, I've delivery turned off for all lists]
On 2016-02-22 18:44, Gilles Chanteperdrix wrote:
> On Mon, Feb 22, 2016 at 06:40:59PM +0100, git repository hosting wrote:
>> Module: xenomai-jki
>> Branch: for-forge
>> Commit: 4601286f7fedb8267ea314584fc68d2b35b818a4
>> URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=4601286f7fedb8267ea314584fc68d2b35b818a4
>>
>> Author: Jan Kiszka <jan.kiszka@siemens.com>
>> Date: Fri Feb 5 17:33:18 2016 +0100
>>
>> boilerplate: Allow for enabling Xenomai only in shared libs
>>
>> Normally, one builds shared libraries with Xenomai awareness by adding
>> --no-auto-init to xeno-config. This drops bootstrap.o from the linking
>> steps because - normally - the main application performs the
>> initialization.
>>
>> However, if the main application is Xenomai-free and only dlopen() would
>> pull in Xenomai services via a shared library, we face two problems:
>>
>> - bootstrap.o is not built with position-independence support
>>
>> - libboilerplate contains __real_main that expects the main symbol which
>> cannot be found from a shared library
>
> Does not the library find the program symbols if RTLD_GLOBAL is
> passed to dlopen?
Nope, just retried, didn't help. In fact, RTLD_GLOBAL affects only the
opened library's symbols, not the pre-existing ones. I think it is
simply not possible with dlopen to refer back to a symbol from the code
that loads the library.
Jan
--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2016-02-22 17:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1aXuTj-0000rZ-UQ@sd-51317.xenomai.org>
2016-02-22 17:44 ` [Xenomai] [Xenomai-git] Jan Kiszka : boilerplate: Allow for enabling Xenomai only in shared libs Gilles Chanteperdrix
2016-02-22 17:56 ` Jan Kiszka [this message]
[not found] <E1aybuF-000446-5i@sd-51317.xenomai.org>
2016-05-06 9:22 ` Gilles Chanteperdrix
2016-05-09 8:56 ` Jan Kiszka
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=56CB4BE5.3090702@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.