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:  None Priority:  5 - Normal
Status:  Done Privacy:  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
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by petrh (Submitted the item)

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

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-02 joerg_wunsch StatusNone => Done
        Assigned toNone => joerg_wunsch
        Open/ClosedOpen => Closed
    2010-09-11 petrh Attached File- => Added avrdude-elf-detection.patch, #21441

    Back to the top

    Powered by Savane 3.3