Does L4Re support dynamic loading? Is there an elf loader or shell? If so how do I do it? I want to run directly with L4Re. No l4linux.
thanks
Hey,
Does L4Re support dynamic loading? Is there an elf loader or shell? If so how do I do it? I want to run directly with L4Re. No l4linux.
have a look at Ned's interactive mode, which provides a LUA-shell. You need to change the line ifeq(1,0) in Ned's Makefile to ifeq(1,1) and then recompile. In modules.list, start ned without any argument (e.g. roottask moe --init=rom/ned).
You can then enter the same LUA-commands that are used in the config-files.
Josef
On Wed Oct 15, 2014 at 11:38:50 -0400, teclis High Elf wrote:
Does L4Re support dynamic loading? Is there an elf loader or shell? If so how do I do it? I want to run directly with L4Re. No l4linux.
To answer the dynamic loading part: yes. Please look at the 'hello-shared' boot target.
Adam
I had similar question too. This is dynamic loading of an executable and all shared libraries, linked with it. For that, we're commonly using a Lua script in Ned, which is the case for init scripts. But the question may be another: What if I have my own OS personality with its own init mechanism, but with desire to use L4Re loader. Could we load an executable via RPC to loader (that is in moe or in ned), without using a Lua script? Or, even, maybe, there is a client library for calling loader from other programs? I mean, the C (maybe, but worse, C++ one) callable API, instead Lua bindings.
PS: what is the purpose of 'loader' package? We already have implementation of loader interface in moe and ned...
Sun, 19 Oct 2014 23:44:53 +0200 от Adam Lackorzynski adam@os.inf.tu-dresden.de:
On Wed Oct 15, 2014 at 11:38:50 -0400, teclis High Elf wrote:
Does L4Re support dynamic loading? Is there an elf loader or shell? If so how do I do it? I want to run directly with L4Re. No l4linux.
To answer the dynamic loading part: yes. Please look at the 'hello-shared' boot target.
Adam
Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
С уважением, Валерий Седлецкий _valerius@mail.ru
On Mon Oct 20, 2014 at 02:26:57 +0400, Valery V. Sedletski wrote:
I had similar question too. This is dynamic loading of an executable and all shared libraries, linked with it. For that, we're commonly using a Lua script in Ned, which is the case for init scripts. But the question may be another: What if I have my own OS personality with its own init mechanism, but with desire to use L4Re loader. Could we load an executable via RPC to loader (that is in moe or in ned), without using a Lua script?
Currently, ned has no interface to do that.
Or, even, maybe, there is a client library for calling loader from other programs? I mean, the C (maybe, but worse, C++ one) callable API, instead Lua bindings.
There is, it's libloader, which is used by moe and ned to implement application loading. Still, loading an ELF binary is not enough, the program needs services afterwards too (such as memory, logging channel, ..). In a standard setup, for example, moe is doing both memory and the logging channel.
PS: what is the purpose of 'loader' package? We already have implementation of loader interface in moe and ned...
It does not really have a purpose currently, but it might be an example for using libloader.
Adam
l4-hackers@os.inf.tu-dresden.de