This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
what sections get objcopied into the SREC file?
- From: Torsten Mohr <tmohr at s dot netic dot de>
- To: binutils at sources dot redhat dot com
- Date: Sat, 23 Jul 2005 22:44:18 +0200
- Subject: what sections get objcopied into the SREC file?
Hi,
i once got the hint that a section needs to be of type
PROGBITS and the allocate bit needs to be set, then a
section gets copied from the ELF file into an SREC file.
avr-gcc/-ld produces ELF output where the .data section
meets these conditions. But when i avr-objcopy it to SREC,
the .data section is not contained in it.
This looks fine to me, i just wonder now what the condition
is that a section gets copied. I wrote a bootloader that
reads the ELF file and that now also tries to download the
section .data which makes no sense. I'd like to fix the
condition for my bootloader.
Best regards,
Torsten.