This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target.ld does not contain our package's symbols


On Tue, 2002-11-12 at 22:08, Shivkumar J wrote:
> Hi,
> We have written our own package. In the init.cxx for this package we are
> calling an init function say "xxxxinit" which is present in a file called
> "support.c" in the same directory as init.cxx. But when I build the eCos
> library with my package, the libtarget.a contains the function "xxxxinit" but
> target.ld does not have it. So when I build a test application and link it
> with target.ld my function is lost. How do I get a correct target.ld. Any
> help would be appreciated.

'target.ld' is just a linker control file - it does not contain
mentions of specific file(s) [except for a few special ones].

You are probably running into problems with how libraries work.
How do you expect "xxxxinit" to be referenced/called?  This must
be from one of the ".o" files being linked, or a direct result
thereof, or else it will be not included (based on the linker's
handling of libraries)

Perhaps with a little more detail we can help more.

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]