rtems dynamic loading with waf
xuelin.tian at qkmtech.com
xuelin.tian at qkmtech.com
Thu Dec 29 02:32:56 UTC 2016
It is my loaded one that causes this error. And I searched all the mails to seak solutions. Luckily, I found this,
https://lists.rtems.org/pipermail/users/2014-June/028000.html
This is the same error as mine. But I do not know how to solve it with rtems-syms. I just know that this tool is used to extract the symbol table from object file. Any hints? Thank you.
xuelin.tian at qkmtech.com
From: Saeed Ehteshamifar
Date: 2016-12-29 02:28
To: xuelin.tian at qkmtech.com
CC: users at rtems.org
Subject: Re: Re: rtems dynamic loading with waf
Dear Xuelin,
And today, I tried to generate my loadable RAP via rtems-ld, and got an error "dlopen failed: global symbol not found: puts" when I loaded my RAP into system. Have you ever encountered such a situation? Any ideas on this? Thank you.
Not this very specific "puts" not found error but I've encountered symbol not found errors in general. I usually dump the final executable file (objdump command) or extract the symbol table (nm command) and debug. Your case but, I believe, is a bit different because a standard function can't be found. Which object is calling puts, your base object or the loaded one?
xuelin.tian at qkmtech.com
From: Saeed Ehteshamifar
Date: 2016-12-28 18:36
To: xuelin.tian at qkmtech.com
CC: users at rtems.org
Subject: Re: rtems dynamic loading with waf
Dear Xuelin,
I share the pointers I emailed you here. Maybe it'd be useful for someone else too.
Instructions on how to build a DL app via WAF can be found at: http://rtems-fi.blogspot.com/2016/08/dynamic-linking-in-rtems.html
Disclaimer: An "unresolved external" error was encountered at run-time, after building the DL app via the above instructions.
The link also encompasses instructions on how to build a DL app via OMK, as an alternative to WAF. The OMK DL app ran without an error.
It'd be nice if you, or anyone who successfully builds a DL app via WAF, share the code/instructions here because AFAIK there's no such example in the RTEMS repository/wiki.
Best Regards,
Saeed
On Mon, Dec 26, 2016 at 7:42 AM, xuelin.tian at qkmtech.com <xuelin.tian at qkmtech.com> wrote:
Dear all,
Does any one use dynamic loading (i.e, dlopen ...) with waf instead of makefile?
xuelin.tian at qkmtech.com
_______________________________________________
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/20161229/06a9d5e2/attachment-0002.html>
More information about the users
mailing list