On 2006-06-13, Yvan Castilloux <[email protected]> wrote:
> How can I make the variables and functions link without being visible to the
> application as they are not used? I don't want them to appear in any way in
> the .lst file.
>
> I have spent most of the day using the strip all option (-s), even with the
> keep (-K) option and it seems that I have to keep all the global variables
> and functions for it to link properly.
If you strip your object module after you've linked all your
files together, then I don't think you have to keep any globals
except those you want to make visible to the outside world. [I
haven't tried to do anything like that in a long time, so I'm
afraid I can't remember the details.] That way you end up with
a single object module.
However, if you want to keep your individual object modules
separate in the library, and still have "global" symbols that
they share, then those symbols are going to have to be visible
to the user, since it's the user that's going to be linking
them together.
Since your question is not specific to the MSP430, the best
place to ask about specific binutils usage would probably be on
the binutils mailing list.
--
Grant Edwards grante Yow! .. I wonder if I
at ought to tell them about my
visi.com PREVIOUS LIFE as a COMPLETE
STRANGER?