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]

Redboot issue with Weak symbols


Hello,

I am working on bringing up Redboot on a new platform and architecture.

The issue I am running into is as follows:

The function cyg_start is declared as weak in startup.cxx.
The function cyg_start is strong in main.c (under redboot)

However, both of these object files are added to libtarget.a
in the above order.

When the linker starts searching for cyg_start it finds the first copy of
cyg_start (which is the weak version) and stops looking after that point.


If I were building an application I could simply provide the object file
that contained cyg_start on the link line, and all would be happy.  The
problem seems to appear because the linker stops searching the .a file
after it finds the first occurrence of cyg_start.

Surely someone has already figured out how to make this work on other
architectures (I know the MIPS code compiles just fine).

If someone could let me in on the secret, that would be great!

Thanks,

-John Newlin
 jnewlin@rawbw.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]