[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] section flags .data
From: |
Torsten Mohr |
Subject: |
Re: [avr-gcc-list] section flags .data |
Date: |
Sun, 24 Jul 2005 09:52:41 +0200 |
User-agent: |
KMail/1.8 |
Hi,
to have the data that belong into .data somewhere in flash makes sense,
but the address of the section .data pointed to 0x800100.
I found out that the condition that this section gets copied from the
ELF file into the SREC file (section type == PROGBITS, allocate flag set)
is correct, but also the address needs to be changed according to the
mapping in the program header in the ELFs program header table.
Best regards,
Torsten.
> > It does not make sense to me to "download" the .data section into
> > flash memory.
>
> It makes a lot of sense to me though.
>
> After all, .data contains the *initialized* variables. Somehow, the
> initialization data need to be passed down. If not by ROM, how else?
>
> (Uninitialized data, i.e. those cleared out to 0, go into section
> ..bss.)
[avr-gcc-list] Announce: Avrora Beta 1.6.0 Released, Ben L. Titzer, 2005/07/23
Re: [avr-gcc-list] section flags .data, Torsten Mohr, 2005/07/23