All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Borkhuis <j.borkhuis@domain.hid>
To: rpm@xenomai.org
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] Switch to secondary mode
Date: Mon, 02 Jul 2007 16:18:19 +0200	[thread overview]
Message-ID: <4689092B.6020903@domain.hid> (raw)
In-Reply-To: <1183377266.19565.14.camel@domain.hid>

Philippe,

Philippe Gerum wrote:
> Late binding to functions performed on behalf of the dynamic loader
> against shared libraries shall need the kernel during symbol resolution
> (internal syscalls) or execution (e.g. demand loading, COW), hence the
> switch. Unfortunately, the I-pipe patch for PPC does not support
> disabling all on-demand memory mappings for selected Linux tasks (only
> the x86 and ARM patches support this feature so far).
>   

Thank you for you answer.

Just for me to make sure I understand this correctly:
We are not using shared libraries for our application, our applications 
are linked against .a files, which are included in the final application 
(all symbols are resolved and available in the executable, so I expected 
that all symbols would have been resolved. This does apply to that as 
well to this type of applications?
(I tried linking using -static,  but that does still give the same problem.)

How can I avoid this problem? Is there a way to make sure all symbols 
are available in memory, or is there a way to instruct the 
compiler/linker/loader to perform the symbol-resolving during 
compile-time or on load?
One thing I am thinking of (but this may be completely wrong) is to have 
a Init function in all modules that are part of the library. When a 
library module is used, this Init function needs to be called before 
switching to RT-mode, so the symbols are made available to the 
application. Would this work (and solve the problem), or would this 
create a lot of other problems?

Where can I find some more information on this issue?

Kind regards,
    Johan Borkhuis


  reply	other threads:[~2007-07-02 14:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 11:25 [Xenomai-help] Switch to secondary mode Johan Borkhuis
2007-07-02 11:54 ` Philippe Gerum
2007-07-02 14:18   ` Johan Borkhuis [this message]
2007-07-02 14:48     ` Philippe Gerum
2007-07-03  9:09       ` Johan Borkhuis
2007-07-03 17:21         ` Philippe Gerum
2007-07-03 19:53       ` Jeff Koftinoff
2007-07-03 21:40         ` Philippe Gerum
2007-07-02 14:27   ` Johan Borkhuis

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=4689092B.6020903@domain.hid \
    --to=j.borkhuis@domain.hid \
    --cc=Xenomai-help@domain.hid \
    --cc=rpm@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.