$ avr-readelf -h timer.elf En-tête ELF: Magique: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Classe: ELF32 Données: complément à 2, poids faible d'abord (little endian) Version: 1 (current) OS/ABI: UNIX - System V Version ABI: 0 Type: EXEC (fichier exécutable) Machine: Atmel AVR 8-bit microcontroller Version: 0x1 Adresse du point d'entrée: 0x0 Début des en-têtes de programme : 52 (octets dans le fichier) Début des en-têtes de section : 6256 (octets dans le fichier) Fanions: 0x5, avr:5 Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 2 Size of section headers: 40 (bytes) Number of section headers: 12 Section header string table index: 9
$ avr-readelf -S timer.elf There are 12 section headers, starting at offset 0x1870: En-têtes de section : [Nr] Nom Type Adr Décala.Taille ES Fan LN Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .data PROGBITS 00800100 000182 000002 00 WA 0 0 1 [ 2] .text PROGBITS 00000000 000074 00010e 00 AX 0 0 2 [ 3] .comment PROGBITS 00000000 000184 000011 01 MS 0 0 1 [ 4] .note.gnu.avr.dev NOTE 00000000 000198 000040 00 0 0 4 [ 5] .debug_info PROGBITS 00000000 0001d8 0005f4 00 0 0 1 [ 6] .debug_abbrev PROGBITS 00000000 0007cc 0005a2 00 0 0 1 [ 7] .debug_line PROGBITS 00000000 000d6e 00001a 00 0 0 1 [ 8] .debug_str PROGBITS 00000000 000d88 000208 00 0 0 1 [ 9] .shstrtab STRTAB 00000000 0017f3 00007a 00 0 0 1 [10] .symtab SYMTAB 00000000 000f90 0004e0 10 11 17 4 [11] .strtab STRTAB 00000000 001470 000383 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)
$ avr-readelf -l timer.elf Type de fichier ELF est EXEC (fichier exécutable) Entry point 0x0 There are 2 program headers, starting at offset 52 En-têtes de programme : Type Décalage Adr. vir. Adr.phys. T.Fich. T.Mém. Fan Alignement LOAD 0x000074 0x00000000 0x00000000 0x0010e 0x0010e R E 0x2 LOAD 0x000182 0x00800100 0x0000010e 0x00002 0x00002 RW 0x1 Correspondance section/segment : Sections de segment... 00 .text 01 .data