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.