DSPRelated.com
Forums

Re: SHARC: Linker, libraries, etc. Advise needed

Started by Steve Holle March 21, 2005
If you do enable elimination in the ldf, be sure you have the following
KEEP command in our processor section :
PROCESSOR P0
{
KEEP( _main,___ctor_NULL_marker,___lib_end_of_heap_descriptions )
OUTPUT( $COMMAND_LINE_OUTPUT_FILE )

SECTIONS
{

Otherwise, necessary code will be eliminated, line the end of heap marker
which causes all kinds of strange behaviour.

At 02:15 PM 3/18/2005, Jaime Andres Aranguren Cardona wrote:
>Hi Steve,
>
>--- Steve Holle <> wrote:
> > At 09:42 PM 3/17/2005, Jaime Andres Aranguren
>
> > >One further question... when one uses a library
> > >function (sprintf, in this case for instance), the
> > >linker only links that function, and not the whole
> > >library. Am I right?
> >
> > Have you tried enabling elimination in your ldf
> > file?
>
>Yes. And it said it also eliminated some other stuff
>that I didn't expect it to eliminate. Well, to be
>honest I tried it on the linker options.
>
>Will see how it goes by enbling elimination on the
>LDF.
>
>Cheers,
>
>JaaC >Jaime Andr Aranguren Cardona >
>__________________________________
>
Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT 59101