Re: Dynamic loader usage in RTEMS 5.1

2023-01-31 Thread Chris Johns
On 14/1/2023 7:58 am, John Clemens wrote:
> I'm trying to understand how to build/link code to use the dynamic loader in
> RTEMS v5.1. I'm using
> https://docs.rtems.org/releases/rtems-5.1/user/exe/loader.html as a reference.
> 
> My codebase has a core object and several components that will be loaded at 
> boot
> time.  I do the 2-pass linking step with the embedded global symbol table on 
> my
> core object, and then run rtems-syms to generate "*-sym.o" objects for my
> runtime files (but do -not- send them through a second linking pass).
> 
> Now I have a core object and several "fooX.o" and "fooX-sym.o" files.. what 
> do I
> do from here?  Are the fooX-sym.o files supposed to be linked into the core
> object somehow?
> 
> I'm sure I'm missing an obvious step.  Any pointers?

Have you read the documentation in the User Manual:

https://docs.rtems.org/branches/master/user/exe/loader.html

If you still have some questions, please ask.

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Dynamic loader usage in RTEMS 5.1

2023-01-25 Thread Gedare Bloom
Hi John,

Have you studied the libdl tests yet? Code is in
rtems.git/testsuites/libtests/dl* and build rules are in
rtems.git/spec/build/testsuites/libtests/dl*

You can probably get some hints from looking at the build log and the
command that gets created.

-Gedare

On Fri, Jan 13, 2023 at 1:58 PM John Clemens  wrote:
>
> I'm trying to understand how to build/link code to use the dynamic
> loader in RTEMS v5.1. I'm using
> https://docs.rtems.org/releases/rtems-5.1/user/exe/loader.html as a
> reference.
>
> My codebase has a core object and several components that will be loaded
> at boot time.  I do the 2-pass linking step with the embedded global
> symbol table on my core object, and then run rtems-syms to generate
> "*-sym.o" objects for my runtime files (but do -not- send them through a
> second linking pass).
>
> Now I have a core object and several "fooX.o" and "fooX-sym.o" files..
> what do I do from here?  Are the fooX-sym.o files supposed to be linked
> into the core object somehow?
>
> I'm sure I'm missing an obvious step.  Any pointers?
>
> Thanks!
> john.c
>
> --
> John Clemens 
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Dynamic loader usage in RTEMS 5.1

2023-01-13 Thread John Clemens
I'm trying to understand how to build/link code to use the dynamic 
loader in RTEMS v5.1. I'm using 
https://docs.rtems.org/releases/rtems-5.1/user/exe/loader.html as a 
reference.


My codebase has a core object and several components that will be loaded 
at boot time.  I do the 2-pass linking step with the embedded global 
symbol table on my core object, and then run rtems-syms to generate 
"*-sym.o" objects for my runtime files (but do -not- send them through a 
second linking pass).


Now I have a core object and several "fooX.o" and "fooX-sym.o" files.. 
what do I do from here?  Are the fooX-sym.o files supposed to be linked 
into the core object somehow?


I'm sure I'm missing an obvious step.  Any pointers?

Thanks!
john.c

--
John Clemens 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users