Re: Dynamic linking in RTEMS

2016-07-27 Thread Chris Johns
On 27/07/2016 19:28, Pavel Pisa wrote: On Wednesday 27 of July 2016 02:57:06 Chris Johns wrote: Pavel, thanks for the excellent detail provided. I will try and expand on a couple of parts being discussed. You need to link list of symbols to the base executable image to inform runtime linker whi

Re: Dynamic linking in RTEMS

2016-07-27 Thread Saeed Ehteshamifar
> > The rtems_waf support (https://git.rtems.org/chrisj/rtems_waf.git/) now >> provides a simple way to add files via an embedded tar file to an >> executable. You can: > > How can I start using WAF build system? I found > https://devel.rtems.org/wiki/waf on the wiki but it wasn't helping much. > F

Re: Dynamic linking in RTEMS

2016-07-27 Thread Saeed Ehteshamifar
Interestingly, when I compiled and ran dl01 and dl02 manually, using the source files that were generated during making rtems (like dl-tar.c/h etc.), BUT with application development Makefile (from examples-v2 hello_world_c), AND CFLAGS from the generated Makefile for dl01 test, I got the following

Re: Dynamic linking in RTEMS

2016-07-27 Thread Saeed Ehteshamifar
Hello, Thanks for the answers Pavel, Chris. You need to link list of symbols to the base executable image > to inform runtime linker which symbols are available. I followed your instructions carefully and after building my app, I get an "untar failed: 1" error. How should I debug this error? My

Re: Dynamic linking in RTEMS

2016-07-27 Thread Pavel Pisa
Hello Chris, thanks for clarification. On Wednesday 27 of July 2016 02:57:06 Chris Johns wrote: > Pavel, thanks for the excellent detail provided. I will try and expand > on a couple of parts being discussed. > > You need to link list of symbols to the base executable image > > to inform runtime

Re: Dynamic linking in RTEMS

2016-07-26 Thread Chris Johns
Pavel, thanks for the excellent detail provided. I will try and expand on a couple of parts being discussed. On 27/07/2016 10:00, Pavel Pisa wrote: On Wednesday 27 of July 2016 01:01:29 Saeed Ehteshamifar wrote: 1. How to generate *tar* array? Since on top of dl-tar.c it's been noted that it's

Re: Dynamic linking in RTEMS

2016-07-26 Thread Pavel Pisa
Hello Saeed, On Wednesday 27 of July 2016 01:01:29 Saeed Ehteshamifar wrote: > Hello, > > Thanks Pavel for your answer. I tried to write an app myself that uses > dynamic loading and I ended up with the following questions: > > 1. How to generate *tar* array? Since on top of dl-tar.c it's been not

Re: Dynamic linking in RTEMS

2016-07-26 Thread Saeed Ehteshamifar
Hello, Thanks Pavel for your answer. I tried to write an app myself that uses dynamic loading and I ended up with the following questions: 1. How to generate *tar* array? Since on top of dl-tar.c it's been noted that it's automatically generated. If I'm not wrong, by making a tar image, RTEMS put

Re: Dynamic linking in RTEMS

2016-07-19 Thread Pavel Pisa
Hello Saeed, libdl had been merged to RTEMS mainline. https://git.rtems.org/rtems/tree/cpukit/libdl There is even example how to use it in mainline and shell functions for test from commandline int shell_dlopen (int argc, char* argv[]); int shell_dlclose (int argc, char* argv[]); int shell_dlsy

Dynamic linking in RTEMS

2016-07-19 Thread Saeed Ehteshamifar
Hi, For the slingshot (RTEMS fault-injection tool) I need to dynamically link test cases into the test suite(s) and execute them on-the-fly. With a google search on "rtems libdl", I found two pointers for libdl: 1. https://git.rtems.org/chrisj/rtl.git/ https://git.rtems.org/chrisj/rtl-host.git/