[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] section flags .data
From: |
Torsten Mohr |
Subject: |
[avr-gcc-list] section flags .data |
Date: |
Sat, 23 Jul 2005 22:30:19 +0200 |
User-agent: |
KMail/1.8 |
Hi,
i wrote a flash bootloader and directly download the ELF file.
This all works fine, except:
The section .data got the type PROGBITS and also got the allocate
bit "A" set in the section flags. This is the condition that is
needed to download a section into flash.
It does not make sense to me to "download" the .data section into
flash memory.
Are the section flags or type incorrectly set by avr-gcc/-ld or
is my condition for downloading a section into flash incorrect?
I once got the hint on the binutils mailing list that this is the
condition to download a section into flash, but it looks incorrect
to me.
Here's the output of avr-readelf -S:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .data PROGBITS 00800100 002204 00000c 00 WA 0 0 1
[ 2] .text PROGBITS 00000000 000094 002170 00 AX 0 0 1
[ 3] .bss NOBITS 0080010c 002210 00024b 00 WA 0 0 1
[ 4] .noinit PROGBITS 00800357 002210 000000 00 W 0 0 1
[ 5] .eeprom PROGBITS 00810000 002210 000000 00 W 0 0 1
[ 6] .stab PROGBITS 00000000 002210 00033c 0c 7 0 4
[ 7] .stabstr STRTAB 00000000 00254c 000043 00 0 0 1
Best regards,
Torsten.
- [avr-gcc-list] section flags .data,
Torsten Mohr <=
[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