Overlay sections, linking and copying

Sivaprasad.pv sivaprasad.pv@redpinesignals.com
Wed Aug 5 07:18:00 GMT 2009


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.
>
>   




More information about the Binutils mailing list