This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]