This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Overlay sections, linking and copying
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Ignacio Subira <ignacio dot subira at gigle dot biz>
- Cc: binutils at sourceware dot org
- Date: Wed, 5 Aug 2009 15:38:03 +0930
- Subject: Re: Overlay sections, linking and copying
- References: <59100.10.1.30.13.1249383718.squirrel@mail.gigle.biz>
On Tue, Aug 04, 2009 at 01:01:58PM +0200, Ignacio Subira wrote:
> Until now, I've read enough to be able to design the overlay structure in
> the linker script and store the complete binary in the flash of my device.
> The problem comes now when I want to load the pieces of code, where do I
> have to look for them in flash?, where are them stored in the binary?, in
> what address do they start and end?.
As the ld info doc states, the linker defines __load_start_<secname>
and __load_stop_<secname> symbols for each overlay. You can reference
these symbols to build a table of load addresses.
--
Alan Modra
Australia Development Lab, IBM