This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
85 Views 1 Replies Last post: Feb 8, 2010 5:08 AM by FrankL RSS
jsotack Newbie 1 posts since
Feb 5, 2010
Currently Being Moderated

Feb 5, 2010 2:44 PM

Two Applications Linking To Same Library in Flash.

My goal is to have two separate application images in Flash at the same time.  Both applications link to the same library also in Flash.  Any suggestions for doing this with HEW and / or the Renesas command line tools?

 

Also, is there documentation for the ln100?

 

The GNU linker has the -R options as follows.  Does ln100 have a similar option?

 

       -R filename
       --just-symbols=filename
           Read  symbol  names  and their addresses from filename, but do not
           relocate it or include it in the output.  This allows your  output
           file to refer symbolically to absolute locations of memory defined
           in other programs.  You may use this option more than once.

           For compatibility with other ELF linkers, if the -R option is fol-
           lowed  by a directory name, rather than a file name, it is treated
           as the -rpath option.

Does ln100 provides a means to put a library in a specified location and use a specified RAM area?

 

John

FrankL Apprentice 958 posts since
Mar 16, 2009
Currently Being Moderated
1. Feb 8, 2010 5:08 AM in response to: jsotack
Re: Two Applications Linking To Same Library in Flash.

There is no possibility that ln100 uses addresses of libraries provided by another application.

 

To place library code in defined addresses is done the same way as it is done for application code and data by using #pragma section commands and adding the sections either to sect100.inc if you have an assembler start-up or adding the sections to the linker section definition.

More Like This

  • Retrieving data ...

Bookmarked By (0)