This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: dynamic or static linking
- To: Jörg Preuß <joerg dot preuss at jmpreuss-edv dot de>,"newlib" <newlib at sources dot redhat dot com>
- Subject: Re: dynamic or static linking
- From: "more" <morezeng at certaingroup dot com>
- Date: Tue, 29 May 2001 21:03:31 +0800
- References: <B73955DD.881C%joerg.preuss@jmpreuss-edv.de>
- Reply-To: "more" <morezeng at certaingroup dot com>
> > You could still use static link library, burn all the text code in flash, and
> > use
> > ram as data section only.
> that seems to be a solution. could you tell me more about that. a little
> howto???
Just use the linker script, like the blow:
SECTIONS
{
.flash :
{
*(.text)
}
}
So all the text section will be in .flash section of the executable image.
Regards,
more.