<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 29, 2016 at 9:52 AM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 28/12/16 9:36 pm, Saeed Ehteshamifar wrote:<br>
> Dear Xuelin,<br>
><br>
> I share the pointers I emailed you here. Maybe it'd be useful for<br>
> someone else too.<br>
> Instructions on how to build a DL app via WAF can be found at:<br>
> <a href="http://rtems-fi.blogspot.com/2016/08/dynamic-linking-in-rtems.html" rel="noreferrer" target="_blank">http://rtems-fi.blogspot.com/<wbr>2016/08/dynamic-linking-in-<wbr>rtems.html</a><br>
<br>
</span>The blog post is not correct about loading being restricted due to<br>
transferring object files on the fly. RTEMS will load any available obj<br>
file and object files do not need to be bound into the base image using<br>
tar, they just need to be available in a suitable file system. The<br>
examples and tests bind the object files into the base image because we<br>
cannot assume available media on a target, eg a simulator. A target with<br>
a file system such as JFFS and networking could be updated externally<br>
and the object files loaded from the JFFS file system.<br></blockquote><div>Thanks. I updated the blog accordingly.<br></div><div> <span class=""><br><br></span><span class=""></span></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> Disclaimer: An "unresolved external" error was encountered at run-time,<br>
> after building the DL app via the above instructions.<br>
<br>
</span>The shell command should be able to print a list of unresolved symbols.<br>
<span class=""><br>
> The link also encompasses instructions on how to build a DL app via OMK,<br>
> as an alternative to WAF. The OMK DL app ran without an error.<br>
><br>
> It'd be nice if you, or anyone who successfully builds a DL app via WAF,<br>
> share the code/instructions here because AFAIK there's no such example<br>
> in the RTEMS repository/wiki.<br>
<br>
</span>The following is the waf build script I used to develop libdl.<br>
<br>
<a href="https://git.rtems.org/chrisj/rtl.git/tree/wscript" rel="noreferrer" target="_blank">https://git.rtems.org/chrisj/<wbr>rtl.git/tree/wscript</a><br>
<br>
The libdl support and building for it is complicated and there is a wide<br>
of things that are possible. Good documentation is needed and something<br>
I would like to see exist.<br></blockquote><div>I hope I can start it in the close future!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Chris<br>
</font></span></blockquote></div><br></div></div>