Skip to main content



      Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Problems with RTSC packages and legacy binary objects
Problems with RTSC packages and legacy binary objects [message #1670] Thu, 12 March 2009 21:10 Go to next message
Eclipse UserFriend
I have a RTSC package (say ti.mas.pkgA) that advertises some legacy
libraries (say lib1.a and lib2.a) in its getLibs() function in package.xs.
The problem is that there are circular references between lib1.a and
lib2.a. Another package ti.mas.pkgB is an application package needs to
link these libraries to build the application.

My getLibs looks like this:

function getLibs(prog)
{
var lib="";

lib = “lib1.a; lib2.a” ;

return (lib);

}


When pkgB is built, I get linker errors due to the circular references
between lib1 and lib2. To resolve this, I really want them to be placed in
a linker group like this:


-Wl,--start-group lib1.a lib2.a –Wl,--end-group


I cannot figure out how to do this in RTSC. Any ideas?
Re: Problems with RTSC packages and legacy binary objects [message #1702 is a reply to message #1670] Mon, 16 March 2009 11:23 Go to previous message
Eclipse UserFriend
Chander Raja wrote:
> I have a RTSC package (say ti.mas.pkgA) that advertises some legacy
> libraries (say lib1.a and lib2.a) in its getLibs() function in
> package.xs. The problem is that there are circular references between
> lib1.a and lib2.a. Another package ti.mas.pkgB is an application package
> needs to link these libraries to build the application.
>
> My getLibs looks like this:
> function getLibs(prog)
> {
> var lib="";
>
> lib = �lib1.a; lib2.a� ;
>
> return (lib);
> }
>
>
> When pkgB is built, I get linker errors due to the circular references
> between lib1 and lib2. To resolve this, I really want them to be placed
> in a linker group like this:
>
>
> -Wl,--start-group lib1.a lib2.a �Wl,--end-group
>
>
> I cannot figure out how to do this in RTSC. Any ideas?
>
Can you create a third library which places the object of both lib1 and
lib2 into a single library, say lib3? Legacy users can directly link
with lib1 and lib2 while getLibs returns lib3.

This should have the effect of the --startgroup --endgroup without
relying on a TI-specific linker feature.


>
>
Previous Topic:ISemaphore.getCount
Next Topic:How to handle error in Module_startup()?
Goto Forum:
  


Current Time: Fri May 09 08:07:36 EDT 2025

Powered by FUDForum. Page generated in 0.03711 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top