Dynamic loader usage in RTEMS 5.1

Gedare Bloom gedare at rtems.org
Wed Jan 25 16:05:19 UTC 2023


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 <john.clemens at jhuapl.edu> 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 <john.clemens at jhuapl.edu>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users


More information about the users mailing list