avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] GCC: Diffrence b/w lodable & allocatable sections ?


From: Erik Christiansen
Subject: Re: [avr-gcc-list] GCC: Diffrence b/w lodable & allocatable sections ?
Date: Tue, 23 Aug 2011 15:29:15 +1000
User-agent: Mutt/1.5.20 (2009-06-14)

On 22.08.11 21:20, Dinesh Guleria wrote:
> If some .data section is loaded in memory then definitely it should be
> allocated some memory. This link also specifies that some section are
> lodable but not allocatable. I am confused over here. What is the diffrence
> b/w lodable & allocatable sections  ?
> Can some someone suggest example related to it, so that it is clarified to
> me.

In addition to .bss, which is initialised by code, and (sometimes)
.noinit, an embedded system might also have RAM locations allocated to
memory mapped hardware. If these are FPGA registers, for example, it is
unlikely that LOAD will be a useful option. (See
http://lists.gnu.org/archive/html/avr-gcc-list/2005-11/msg00292.html for
a linker script fragment.)

Erik

-- 
It's so beautifully arranged on the plate ... you know someone's fingers
have been all over it.                                                        
                                      - Julia Child on nouvelle cuisine.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]