Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Fri, 13 March 2009 01:10 Go to next message
Chander Raja is currently offline Chander RajaFriend
Messages: 1
Registered: July 2009
Junior Member
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 15:23 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
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: Thu Apr 25 02:07:58 GMT 2024

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

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

Back to the top