patchAVR Downloader/UploaDEr - Patches: patch #7314, detect ELF and COFF files and...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7314: detect ELF and COFF files and reject flashing them

Submitted by:  Petr Hluzin <petrh>
Submitted on:  Sat 11 Sep 2010 10:59:55 PM UTC  
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed

Thu 02 Feb 2012 05:00:19 PM UTC, comment #1:

ELF file reading has finally been implemented (SVN r1056). This will
become part of AVRDUDE version 6.

If not configured for ELF processing (since libelf(3) was missing when
compiling), the ELF file is rejected with a message.

AVR COFF has been long obsolete anyway. The only reason it has still
been kept around was that VMlab cannot handle ELF (alas). There no
other reason to walk the extra mile in creating a COFF file in the
first place (and besides, should the AVR-COFF patch for binutils ever
break due to massive changes inside binutils itself, I won't maintain
it any further).

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Sat 11 Sep 2010 10:59:55 PM UTC, original submission:

If user passes an an ELF file or an AVR COFF to avrdude-5.10 it will attempt to flash it as a binary file.
This leads to confusion [1] and blocks the path to ever implement the feature.

This patch adds code to recognize these file formats and print appropriate diagnostic message.
And will prevent flashing a garbage.


(A note for myself: avr-objcopy -O coff-ext-avr inputfile.elf outputfile.coff, task #5093)

Petr Hluzin <petrh>


Attached Files
file #21441:  avrdude-elf-detection.patch added by petrh (3KiB - text/x-diff - applies cleanly to today's trunk)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by petrh (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Feb 2012 05:00:19 PM UTCjoerg_wunschStatusNone=>Done
      Assigned toNone=>joerg_wunsch
    Sat 11 Sep 2010 10:59:55 PM UTCpetrhAttached File-=>Added avrdude-elf-detection.patch, #21441

    Back to the top

    Powered by Savane 3.1-cleanup1