rtems dynamic library loading

Peng Fan van.freenix at gmail.com
Mon Jun 30 23:01:35 UTC 2014


Hi,

would you please have a try using rap format? does your elf  file symbol
table contain the "puts" symbol?
If using rap format, you can use rtems-syms to check it. I am not sure
whether your command is right since i did not work on  this for a long
time, I just downloaded the source code yesterday, and rebegin do
something:)


2014-06-30 20:15 GMT+08:00 Mihaela Panescu <mihaela.panescu at gmail.com>:

>
> Hi,
> I have a problem load a dynamic library using rtems and rtl.
> I have a basic dynamic library which should print "hello" using printf,
> but when the library is loaded with dlopen(), the "global symbol nout
> found: puts" message is returned.
>
> I compile the library in a similar way as rtld test:
>  arm-rtems4.11-ar -rcs libbasic_math.a basic_math.o
> rtems-ra --lib basic_math --output-path ./ --no-stdlibs --cc
> arm-rtems4.11-gcc -Wl,-static  -L$(RTEMS_TOOLCHAIN)/arm-rtems4.11/lib -l c
>  arm-rtems4.11-ar x libbasic_math.ra
>
> I also tried to compile it with:
> rtems-ld -o basic_math.elf -O a -n -b dll.exe -e Init --cc
> arm-rtems4.11-gcc basic_math.o -L$(RTEMS_TOOLCHAIN)/arm-rtems4.11/lib -l c
> , but no luck:
>
> Thank you,
> Mihaela
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140701/20dc6299/attachment-0002.html>


More information about the users mailing list