This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Overlay sections, linking and copying


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]