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

Submitter:  Petr Hluzin <petrh>
Submitted:  Sat 11 Sep 2010 10:59:55 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  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>
Group administrator
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.

[1] http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=80705

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

Petr Hluzin <petrh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-f8d8.
    Corresponding source code