<div>when use  dynamic load, RAP module should have unresolved symbol most time, </div><div>And maybe unresolved symbols scatter over 2 or more files,  one BaseImage is not enough.</div><div>So I suggest rtems-ld just throw a warning not a error.</div><div><div><br></div><div>Another suggestion is  option -e(--entry) is not essential.  We just use dlsym to find a entry.(or there is another way to run entry?)</div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Chris Johns"<chrisj@rtems.org>;</div><div><b>Date:</b> Thu, Sep 12, 2019 11:22 AM</div><div><b>To:</b> "jaeho jo"<hot486two@gmail.com>;"users"<users@rtems.org>;<wbr></div><div></div><div><b>Subject:</b> Re: symbol resolve between the two RAP files</div></div><div><br></div>On 10/9/19 10:23 am, jaeho jo wrote:<br>> I wonder if I can resolve the symbol between the two RAP files for dynamic load.<br>> <br>> ex)<br>> a.c. / b.c. / main.c.<br>> <br>> a.c. -> a.rap<br>> - define 'a_test_func()'<br>> <br>> b.c. -> b.rap<br>> - use 'a_test_func()'<br>> <br>> main.c -> BaseImage<br>> <br>> <br>> Attempting to generate b.c. as b.rap using rtems-ld, an error occurs <br>>    $ rtems-ld -b BaseImage -e b_main b.o -o b.rap<br>>    => error: b.o: symbol not found: a_test_func<br>> <br>> I already know why this problem occurs, since BaseImage does not have a symbol<br>> for 'a_test_func'><br>> Is there a way to solve this? Or is it impossible at all?<br>> <br><br>Have you tried ...<br><br>$ rtems-ld -b BaseImage -e b_main a.o b.o -o z.rap<br><br>?<br><br>You should be able to load modules with an unresolved error and when the module<br>with the symbol is loaded it is resolved.<br><br>Chris<br>_______________________________________________<br>users mailing list<br>users@rtems.org<br>http://lists.rtems.org/mailman/listinfo/users</div>