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


Hi Alan Modra,

I have some queries related to overlaying.

Is it possible to avoid loading overlay section by default ?
where I want load overlay sections from flash on demand.

What change we need to make in linker to call function stubs ( bring the actual function from flash) and in turn calls the actual function.

Thanks,
Siva Prasad

Alan Modra wrote:
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.




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